Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 75edac5844d24335921bd0c9c78f0f921e3aab9a..ffad7b26487f1ff4017f697b2c8c0685ff6f4c92 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -2098,11 +2098,7 @@ void Builtins::Generate_MathSqrt(compiler::CodeStubAssembler* assembler) { |
{ |
Node* x = var_fsqrt_x.value(); |
Node* value = assembler->Float64Sqrt(x); |
- Node* result = assembler->Allocate(HeapNumber::kSize, |
- compiler::CodeStubAssembler::kNone); |
- assembler->StoreMapNoWriteBarrier(result, |
- assembler->HeapNumberMapConstant()); |
- assembler->StoreHeapNumberValue(result, value); |
+ Node* result = assembler->AllocateHeapNumberWithValue(value); |
assembler->Return(result); |
} |
} |