Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.jruby.ir.instructions;

import org.jruby.ir.IRFlags;
import org.jruby.ir.IRScope;
import org.jruby.ir.IRVisitor;
import org.jruby.ir.Operation;
import org.jruby.ir.operands.Variable;
@@ -61,4 +63,11 @@ public Object interpret(ThreadContext context, StaticScope currScope, DynamicSco
public void visit(IRVisitor visitor) {
visitor.BuildBackrefInstr(this);
}

@Override
public boolean computeScopeFlags(IRScope scope) {
scope.getFlags().add(IRFlags.REQUIRES_FRAME);

return true;
}
}

0 comments on commit 75a39d3

Please sign in to comment.