Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use cloned flags rather than master copy for interpreter.
  • Loading branch information
headius committed Oct 20, 2014
1 parent efabe06 commit 65b77b0
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -24,6 +24,8 @@
import org.jruby.util.log.Logger;
import org.jruby.util.log.LoggerFactory;

import static org.jruby.ir.IRFlags.HAS_EXPLICIT_CALL_PROTOCOL;

public class InterpretedIRMethod extends DynamicMethod implements IRMethodArgs, PositionAware {
private static final Logger LOG = LoggerFactory.getLogger("InterpretedIRMethod");

Expand Down Expand Up @@ -92,7 +94,7 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz

if (IRRuntimeHelpers.isDebug()) doDebug();

if (method.hasExplicitCallProtocol()) return Interpreter.INTERPRET_METHOD(context, this, self, name, args, block);
if (ic.getFlags().contains(HAS_EXPLICIT_CALL_PROTOCOL)) return Interpreter.INTERPRET_METHOD(context, this, self, name, args, block);

pre(ic, context, self, name, block);

Expand Down

0 comments on commit 65b77b0

Please sign in to comment.