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

Method step

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

Source from the content-addressed store, hash-verified

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