Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/src/main/java/org/jruby/ir/IRBuilder.java
Original file line number Diff line number Diff line change
@@ -1665,9 +1665,6 @@ protected void defineMethodInner(MethodDefNode defNode, IRScope parent) {
// Build IR for arguments (including the block arg)
receiveMethodArgs(defNode.getArgsNode());

// Thread poll on entry to method
addInstr(new ThreadPollInstr());

// Build IR for body
Operand rv = build(defNode.getBodyNode());

@@ -2355,7 +2352,6 @@ private void buildForIterInner(ForNode forNode) {
if (varNode != null && varNode.getNodeType() != null) receiveBlockArgs(forNode);

addCurrentScopeAndModule(); // %current_scope/%current_module
addInstr(new ThreadPollInstr()); // Thread poll on entry of closure
addInstr(new LabelInstr(((IRClosure) scope).startLabel)); // Start label -- used by redo!

// Build closure body and return the result of the closure
@@ -2498,7 +2494,6 @@ private void buildIterInner(IterNode iterNode) {
if (iterNode.getVarNode().getNodeType() != null) receiveBlockArgs(iterNode);

addCurrentScopeAndModule(); // %current_scope/%current_module
addInstr(new ThreadPollInstr()); // Thread poll on entry of closure
addInstr(new LabelInstr(((IRClosure) scope).startLabel)); // start label -- used by redo!

// Build closure body and return the result of the closure

0 comments on commit 2a123a0

Please sign in to comment.