From 62db70539965abbe84f66c2e395d8c240e89177d Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Wed, 28 Oct 2026 09:43:58 -0700 Subject: Phases back to bneing driven top-down only --- chapter28b/src/test/java/com/seaofnodes/simple/Eval2.java | 5 ++--- chapter28b/src/test/java/com/seaofnodes/simple/PhaseTest.java | 4 ++-- .../src/test/java/com/seaofnodes/simple/SeparateCompilationTest.java | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'chapter28b/src/test/java/com/seaofnodes') diff --git a/chapter28b/src/test/java/com/seaofnodes/simple/Eval2.java b/chapter28b/src/test/java/com/seaofnodes/simple/Eval2.java index fc87c13a..eea5b023 100644 --- a/chapter28b/src/test/java/com/seaofnodes/simple/Eval2.java +++ b/chapter28b/src/test/java/com/seaofnodes/simple/Eval2.java @@ -118,9 +118,8 @@ public abstract class Eval2 { SB trace = null; // new SB(); // TRACE, set to null for off, new SB() for on // Set global, so don't have to pass everywhere CODE = code; - // Eval uses checked ideal IR, including CLInit, and does not run Lower. - // Objects loaded later are scheduled independently of this graph. - if( code._phase.ordinal()(new String[]{lib.toString()}), "Client","return Callbacks.run(arg);",123,true,TypeInteger.BOT) .driver(CodeGen.Phase.Opto); - code.loadAllIR(); // This assertion inspects a body, not just its saved summary. + // This assertion inspects a body, not just its saved summary. + ParseAll.loadCompUnit(code,code._compunits.get("Callbacks")); assertNull(code._compunits.get("Callbacks")._src); ParmNode base=code._start.walk(n -> n instanceof ParmNode p && p._label.equals("base") ? p : null); assertNotNull(base); -- cgit v1.2.3