MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / step

Method step

chapter18/src/test/java/com/seaofnodes/simple/Eval2.java:238–247  ·  view source on GitHub ↗
(Node n, SB trace)

Source from the content-addressed store, hash-verified

236
237 // Take a worklist step: one data op from the current Control is updated.
238 private static void step(Node n, SB trace) {
239 if( n instanceof PhiNode ) return;
240 // Compute new value
241 F.put0(n,compute(n));
242 traceData(n,trace);
243 // Also do any following projections, which are not in the local schedule otherwise
244 if( n instanceof MultiNode )
245 for( Node use : n._outputs )
246 step(use,trace);
247 }
248
249 // From here down shamelessly copied from Evaluator, written by @Xmilia
250 private static Object compute( Node n ) {

Callers 1

evalMethod · 0.95

Calls 3

computeMethod · 0.95
traceDataMethod · 0.95
put0Method · 0.45

Tested by

no test coverage detected