public static CallSite getCallSite(String name) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); CallSite callSite = null; // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) { callSite = getFastFixnumOpsCallSite(name); } return callSite != null ? callSite : new NormalCachingCallSite(name); }
public IRubyObject call(ThreadContext ctx, IRubyObject[] largs, Block blk) { IRubyObject larg = packEnumValues(ctx, largs); result[0] = result[0] == null ? larg : site.call(ctx, self, result[0], larg); return ctx.nil; } });
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_lshift(context, fixnum); } return super.call(context, caller, self, fixnum); }
public static CallSite getCallSite(String name) { // fast and safe respond_to? call site logic if (name.equals("respond_to?")) return new RespondToCallSite(); // only use fast ops if we're not tracing if (RubyInstanceConfig.FASTOPS_COMPILE_ENABLED && !(RubyInstanceConfig.FULL_TRACE_ENABLED)) return getFastFixnumOpsCallSite(name); return new NormalCachingCallSite(name); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_or(context, fixnum); } return super.call(context, caller, self, fixnum); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_div(context, fixnum); } return super.call(context, caller, self, fixnum); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_div(context, arg); } return super.call(context, caller, self, arg); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_or(context, arg); } return super.call(context, caller, self, arg); } }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_equal(context, flote); } return super.call(context, caller, self, flote); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_and(context, arg); } return super.call(context, caller, self, arg); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_mod(context, fixnum); } return super.call(context, caller, self, fixnum); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_mod(context, arg); } return super.call(context, caller, self, arg); } }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_xor(context, fixnum); } return super.call(context, caller, self, fixnum); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_mul(context, flote); } return super.call(context, caller, self, flote); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_div(context, arg); } return super.call(context, caller, self, arg); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_or(context, arg); } return super.call(context, caller, self, arg); } }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_minus(context, flote); } return super.call(context, caller, self, flote); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, flote); } return super.call(context, caller, self, flote); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_gt(context, flote); } return super.call(context, caller, self, flote); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_and(context, fixnum); } return super.call(context, caller, self, fixnum); }