Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index a100823eec42b8161743d1bbb32f2b62b1e2a681..847a645587d2c43eea09939a6273aca6217537a2 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -859,8 +859,7 @@ void AddStub::GenerateAssembly(compiler::CodeStubAssembler* assembler) const { |
Node* lhs_value = var_fadd_lhs.value(); |
Node* rhs_value = var_fadd_rhs.value(); |
Node* value = assembler->Float64Add(lhs_value, rhs_value); |
- // TODO(bmeurer): Introduce a ChangeFloat64ToTagged. |
- Node* result = assembler->AllocateHeapNumberWithValue(value); |
+ Node* result = assembler->ChangeFloat64ToTagged(value); |
assembler->Return(result); |
} |
} |
@@ -1027,8 +1026,7 @@ void SubtractStub::GenerateAssembly( |
Node* lhs_value = var_fsub_lhs.value(); |
Node* rhs_value = var_fsub_rhs.value(); |
Node* value = assembler->Float64Sub(lhs_value, rhs_value); |
- // TODO(bmeurer): Introduce a ChangeFloat64ToTagged. |
- Node* result = assembler->AllocateHeapNumberWithValue(value); |
+ Node* result = assembler->ChangeFloat64ToTagged(value); |
assembler->Return(result); |
} |
} |