Skip to content

Commit

Permalink
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -27,7 +27,18 @@ public class CachedYieldDispatchNode extends YieldDispatchNode {

public CachedYieldDispatchNode(RubyContext context, RubyProc block, YieldDispatchNode next) {
super(context);

callNode = Truffle.getRuntime().createDirectCallNode(block.getCallTarget());
insert(callNode);

if (callNode.isSplittable()) {
callNode.split();
}

if (callNode.isInlinable()) {
callNode.forceInlining();
}

this.next = next;
}

0 comments on commit f2c36e6

Please sign in to comment.