@Override public void invokeOtherOneFixnum(String file, int line, CallBase call, long fixnum) { String id = call.getId(); if (!MethodIndex.hasFastFixnumOps(id)) { pushFixnum(fixnum); if (call.getCallType() == CallType.NORMAL) { invokeOther(file, line, null, call, 1); } else { invokeSelf(file, line, null, call, 1); } return; } String signature = sig(IRubyObject.class, params(ThreadContext.class, IRubyObject.class, IRubyObject.class)); adapter.invokedynamic( "fixnumOperator:" + JavaNameMangler.mangleMethodName(id), signature, Bootstrap.getFixnumOperatorHandle(), fixnum, call.getCallType().ordinal(), "", 0); }
@Override public void invokeOtherOneFixnum(String file, int line, CallBase call, long fixnum) { String id = call.getId(); if (!MethodIndex.hasFastFixnumOps(id)) { pushFixnum(fixnum); if (call.getCallType() == CallType.NORMAL) { invokeOther(file, line, null, call, 1); } else { invokeSelf(file, line, null, call, 1); } return; } String signature = sig(IRubyObject.class, params(ThreadContext.class, IRubyObject.class, IRubyObject.class)); adapter.invokedynamic( "fixnumOperator:" + JavaNameMangler.mangleMethodName(id), signature, Bootstrap.getFixnumOperatorHandle(), fixnum, call.getCallType().ordinal(), "", 0); }
Node argument = callNode.getArgsNode().childNodes().get(0); if (argument instanceof FixnumNode) { if (MethodIndex.hasFastFixnumOps(name)) { context.getInvocationCompiler().invokeBinaryFixnumRHS(name, receiverCallback, ((FixnumNode)argument).getValue()); if (!expr) context.consumeCurrentValue();
Node argument = callNode.getArgsNode().childNodes().get(0); if (argument instanceof FixnumNode) { if (MethodIndex.hasFastFixnumOps(name)) { context.getInvocationCompiler().invokeBinaryFixnumRHS(name, receiverCallback, ((FixnumNode)argument).getValue()); if (!expr) context.consumeCurrentValue();
@Override public void invokeOtherOneFixnum(String file, int line, CallBase call, long fixnum) { String id = call.getId(); if (!MethodIndex.hasFastFixnumOps(id)) { pushFixnum(fixnum); if (call.getCallType() == CallType.NORMAL) {
@Override public void invokeOtherOneFixnum(String file, int line, CallBase call, long fixnum) { String id = call.getId(); if (!MethodIndex.hasFastFixnumOps(id)) { pushFixnum(fixnum); if (call.getCallType() == CallType.NORMAL) {