Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index 77d8a415711a810507d6325df1908878c22eb828..4d4fc3aa93fd35498ed830b11566f863bf1b84c2 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -48,11 +48,9 @@ class ArmOperandConverter final : public InstructionOperandConverter { |
case Constant::kInt32: |
return Operand(constant.ToInt32()); |
case Constant::kFloat32: |
- return Operand( |
- isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); |
+ return Operand::EmbeddedNumber(constant.ToFloat32()); |
case Constant::kFloat64: |
- return Operand( |
- isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); |
+ return Operand::EmbeddedNumber(constant.ToFloat64()); |
case Constant::kInt64: |
case Constant::kExternalReference: |
case Constant::kHeapObject: |
@@ -2974,12 +2972,10 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
UNREACHABLE(); |
break; |
case Constant::kFloat32: |
- __ Move(dst, |
- isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); |
+ __ mov(dst, Operand::EmbeddedNumber(src.ToFloat32())); |
break; |
case Constant::kFloat64: |
- __ Move(dst, |
- isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); |
+ __ mov(dst, Operand::EmbeddedNumber(src.ToFloat64())); |
break; |
case Constant::kExternalReference: |
__ mov(dst, Operand(src.ToExternalReference())); |