comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultTruffleRuntime.java @ 16916:534a87f866dc

Truffle: new experimental LoopNode API.
author Christian Humer <christian.humer@gmail.com>
date Sat, 23 Aug 2014 19:31:40 +0200
parents ada0a7729b6f
children 5a1d764f6afc
comparison
equal deleted inserted replaced
16915:5ede308adf68 16916:534a87f866dc
136 return currentFrames.get(); 136 return currentFrames.get();
137 } 137 }
138 138
139 public void notifyTransferToInterpreter() { 139 public void notifyTransferToInterpreter() {
140 } 140 }
141
142 public LoopNode createLoopNode(RepeatingNode repeating) {
143 if (!(repeating instanceof Node)) {
144 throw new IllegalArgumentException("Repeating node must be of type Node.");
145 }
146 return new DefaultLoopNode(repeating);
147 }
141 } 148 }