public void Float(org.jruby.ir.operands.Float flote) { print(flote.getValue()); } public void UnboxedFloat(org.jruby.ir.operands.UnboxedFloat flote) { print(flote.getValue()); }
public void Float(org.jruby.ir.operands.Float flote) { print(flote.getValue()); } public void UnboxedFloat(org.jruby.ir.operands.UnboxedFloat flote) { print(flote.getValue()); }
@Override public void Float(org.jruby.ir.operands.Float flote) { jvmMethod().pushFloat(flote.getValue()); }
@Override public void Float(org.jruby.ir.operands.Float flote) { jvmMethod().pushFloat(flote.getValue()); }
@Override public void Float(org.jruby.ir.operands.Float flote) { jvm.method().pushFloat(flote.getValue()); }
@Override public void Float(org.jruby.ir.operands.Float flote) { jvm.method().pushFloat(flote.getValue()); }
private Operand getUnboxedOperand(UnboxState state, Map<Variable, TemporaryLocalVariable> unboxMap, Operand arg) { if (arg instanceof Variable) { Variable v = (Variable)arg; Class unboxedType = state.unboxedVars.get(v); return unboxedType == null ? arg : getUnboxedVar(unboxedType, unboxMap, v); } else if (arg instanceof Float) { return new UnboxedFloat(((Float)arg).getValue()); } else if (arg instanceof Fixnum) { return new UnboxedFixnum(((Fixnum)arg).getValue()); } else if (arg instanceof Boolean) { return new UnboxedBoolean(((Boolean)arg).isTrue()); } // This has to be a known operand like (UnboxedBoolean, etc.) return arg; }
private Operand getUnboxedOperand(UnboxState state, Map<Variable, TemporaryLocalVariable> unboxMap, Operand arg) { if (arg instanceof Variable) { Variable v = (Variable)arg; Class unboxedType = state.unboxedVars.get(v); return unboxedType == null ? arg : getUnboxedVar(unboxedType, unboxMap, v); } else if (arg instanceof Float) { return new UnboxedFloat(((Float)arg).getValue()); } else if (arg instanceof Fixnum) { return new UnboxedFixnum(((Fixnum)arg).getValue()); } else if (arg instanceof Boolean) { return new UnboxedBoolean(((Boolean)arg).isTrue()); } // This has to be a known operand like (UnboxedBoolean, etc.) return arg; }
private Operand unboxOperand(UnboxState state, Class reqdType, Map<Variable, TemporaryLocalVariable> unboxMap, Operand arg, List<Instr> newInstrs) { if (arg instanceof Variable) { Variable v = (Variable)arg; boolean isUnboxed = state.unboxedVars.get(v) == reqdType; // Get a temp var for 'v' if we dont already have one TemporaryLocalVariable unboxedVar = getUnboxedVar(reqdType, unboxMap, v); // Unbox if 'v' is not already unboxed if (!isUnboxed) { unboxVar(state, reqdType, unboxMap, v, newInstrs); } return unboxedVar; } else if (arg instanceof Float) { return new UnboxedFloat(((Float)arg).getValue()); } else if (arg instanceof Fixnum) { return new UnboxedFixnum(((Fixnum)arg).getValue()); } else if (arg instanceof Boolean) { return new UnboxedBoolean(((Boolean)arg).isTrue()); } // This has to be a known operand like (UnboxedBoolean, etc.) return arg; }
private Operand unboxOperand(UnboxState state, Class reqdType, Map<Variable, TemporaryLocalVariable> unboxMap, Operand arg, List<Instr> newInstrs) { if (arg instanceof Variable) { Variable v = (Variable)arg; boolean isUnboxed = state.unboxedVars.get(v) == reqdType; // Get a temp var for 'v' if we dont already have one TemporaryLocalVariable unboxedVar = getUnboxedVar(reqdType, unboxMap, v); // Unbox if 'v' is not already unboxed if (!isUnboxed) { unboxVar(state, reqdType, unboxMap, v, newInstrs); } return unboxedVar; } else if (arg instanceof Float) { return new UnboxedFloat(((Float)arg).getValue()); } else if (arg instanceof Fixnum) { return new UnboxedFixnum(((Fixnum)arg).getValue()); } else if (arg instanceof Boolean) { return new UnboxedBoolean(((Boolean)arg).isTrue()); } // This has to be a known operand like (UnboxedBoolean, etc.) return arg; }