summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/SpillStats.java
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-08-10 11:11:18 -0700
committerCliff Click <cliffc@acm.org>2026-10-24 15:56:44 -0700
commit7914681413f3e3562733786aa02b1fc7adfbe9b0 (patch)
treea33a763882a3b65712835c71bdabb9873ceee55c /src/test/java/com/seaofnodes/simple/SpillStats.java
parent741d78b6e840c88b7b183010c812ad982b342da1 (diff)
downloadSimple-linear-chapter28b.tar.gz
Simple-linear-chapter28b.zip
Chapter 28b: Separate Compilationlinear-chapter28blinear
Co-authored-by: Hsiang-Ying Fu <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: fuhsnn <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: Symious <14933944+symious@users.noreply.github.com> Co-authored-by: Jun Kawasaki <jun784@gmail.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/SpillStats.java')
-rw-r--r--src/test/java/com/seaofnodes/simple/SpillStats.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/com/seaofnodes/simple/SpillStats.java b/src/test/java/com/seaofnodes/simple/SpillStats.java
index 944f7ef5..d43f1a36 100644
--- a/src/test/java/com/seaofnodes/simple/SpillStats.java
+++ b/src/test/java/com/seaofnodes/simple/SpillStats.java
@@ -20,7 +20,7 @@ public class SpillStats extends RunListener {
@Override public void testFinished(Description test) { _test = null; }
public static void record25(CodeGen code) {
- if( ACTIVE==null || ACTIVE._test==null || ACTIVE._test.getTestClass()!=ModulesTest.class ) return;
+ if( ACTIVE==null || ACTIVE._test==null || ACTIVE._test.getTestClass()!=Chapter25Test.class ) return;
ACTIVE.record(code,"Chapter25",ACTIVE._test.getMethodName(),code._mach.getClass().getSimpleName(),code._callingConv);
}
@@ -54,7 +54,7 @@ public class SpillStats extends RunListener {
String[] row = line.split("\t");
try {
String src = Files.readString(dir.resolve(row[5]));
- CodeGen code = new CheckedCodeGen(null,null,null,src,123L,true,TypeInteger.BOT)
+ CodeGen code = new CheckedCodeGen(null,null,null,null,src,123L,true,TypeInteger.BOT)
.driver(CodeGen.Phase.RegAlloc,row[2],row[3]);
ACTIVE.record(code,row[0],row[1],row[2],row[3]);
} catch( Throwable error ) {
@@ -65,7 +65,7 @@ public class SpillStats extends RunListener {
}
// Include the library's allocation even when make's sys.o is up to date.
try {
- CodeGen code = new CheckedCodeGen("src/main/smp","build/spill-sys","sys",
+ CodeGen code = new CheckedCodeGen("src/main/smp","build/spill-sys",null,"sys",
Files.readString(Path.of("src/main/smp/sys.smp")),456L,true,TypeInteger.BOT)
.driver(CodeGen.Phase.Encoding,TestC.CPU_PORT,TestC.CALL_CONVENTION);
ACTIVE.record(code,"Chapter25","sys",TestC.CPU_PORT,TestC.CALL_CONVENTION);
@@ -75,7 +75,7 @@ public class SpillStats extends RunListener {
}
JUnitCore junit = new JUnitCore();
junit.addListener(ACTIVE);
- Result result = junit.run(ModulesTest.class);
+ Result result = junit.run(Chapter25Test.class);
for( Failure failure : result.getFailures() ) System.err.println(failure.getTrace());
failures += result.getFailureCount();
if( failures!=0 ) System.out.println("FAILED: totals are not a complete comparison.");
@@ -89,4 +89,4 @@ public class SpillStats extends RunListener {
ACTIVE = null;
if( failures!=0 ) System.exit(1);
}
-}
+} \ No newline at end of file