Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 46d6c82f856b1b94073a42d9112e93a33428d363..c663cd8878944431daf67e8a20a43e8264fb208b 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -511,9 +511,7 @@ void AllocateHeapNumberStub::GenerateAssembly( |
const { \ |
compiler::Node* result = \ |
assembler->Allocate(Simd128Value::kSize, CodeStubAssembler::kNone); \ |
- compiler::Node* map_offset = \ |
- assembler->IntPtrConstant(HeapObject::kMapOffset - kHeapObjectTag); \ |
- compiler::Node* map = assembler->IntPtrAdd(result, map_offset); \ |
+ compiler::Node* map = assembler->LoadMap(result); \ |
assembler->StoreNoWriteBarrier( \ |
MachineRepresentation::kTagged, map, \ |
assembler->HeapConstant(isolate()->factory()->type##_map())); \ |
@@ -598,7 +596,7 @@ compiler::Node* AddStub::Generate(CodeStubAssembler* assembler, |
assembler->Bind(&if_rhsisnotsmi); |
{ |
// Load the map of {rhs}. |
- Node* rhs_map = assembler->LoadObjectField(rhs, HeapObject::kMapOffset); |
+ Node* rhs_map = assembler->LoadMap(rhs); |
// Check if the {rhs} is a HeapNumber. |
Label if_rhsisnumber(assembler), |