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

Method step

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

Source from the content-addressed store, hash-verified

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