@Deprecated public IRubyObject op_or19(ThreadContext context, IRubyObject other) { return op_or(context, other); }
@Deprecated public IRubyObject op_or19(ThreadContext context, IRubyObject other) { return op_or(context, other); }
private IRubyObject op_or19(ThreadContext context, IRubyObject other) { if (!((other = bitCoerce(other)) instanceof RubyFixnum)) { return ((RubyBignum) other).op_or(context, this); } return op_or18(context, other); }
private IRubyObject op_or18(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum || (other = fixCoerce(other)) instanceof RubyFixnum) { return newFixnum(context.runtime, value | ((RubyFixnum) other).value); } return ((RubyBignum) other).op_or(context, this); }
private IRubyObject op_or19(ThreadContext context, IRubyObject other) { if (!((other = bitCoerce(other)) instanceof RubyFixnum)) { return ((RubyBignum) other).op_or(context, this); } return op_or18(context, other); }
private IRubyObject op_or18(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum || (other = fixCoerce(other)) instanceof RubyFixnum) { return newFixnum(context.runtime, value | ((RubyFixnum) other).value); } return ((RubyBignum) other).op_or(context, this); }
@JRubyMethod(name = "|", required = 1, compat = RUBY1_9) public IRubyObject op_or19(ThreadContext context, IRubyObject other) { return op_or(context, convertToInteger(context, other)); }
@JRubyMethod(name = "|", required = 1, compat = RUBY1_9) public IRubyObject op_or19(ThreadContext context, IRubyObject other) { return op_or(context, convertToInteger(context, other)); }
/** fix_or * */ @Override public IRubyObject op_or(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum) { return context.runtime.newFixnum(value | ((RubyFixnum) other).value); } if (other instanceof RubyBignum) { return ((RubyBignum) other).op_or(context, this); } return coerceBit(context, sites(context).checked_op_or, other); }
/** fix_or * */ @Override public IRubyObject op_or(ThreadContext context, IRubyObject other) { if (other instanceof RubyFixnum) { return context.runtime.newFixnum(value | ((RubyFixnum) other).value); } if (other instanceof RubyBignum) { return ((RubyBignum) other).op_or(context, this); } return coerceBit(context, sites(context).checked_op_or, other); }
/** rb_big_or * */ @Override public IRubyObject op_or(ThreadContext context, IRubyObject other) { if (other instanceof RubyBignum) { return bignorm(context.runtime, value.or(((RubyBignum) other).value)); } if (other instanceof RubyFixnum) { // no bignorm here needed return op_or(context, (RubyFixnum) other); } return coerceBit(context, sites(context).checked_op_or, other); }
/** rb_big_or * */ @Override public IRubyObject op_or(ThreadContext context, IRubyObject other) { if (other instanceof RubyBignum) { return bignorm(context.runtime, value.or(((RubyBignum) other).value)); } if (other instanceof RubyFixnum) { // no bignorm here needed return op_or(context, (RubyFixnum) other); } return coerceBit(context, sites(context).checked_op_or, other); }