Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index 2392a2660098cc6afadde68e1dd989d27275d132..741ce521e7c94ce2126581e036bedd8d407d5112 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -243,6 +243,12 @@ Node* CodeStubAssembler::LoadHeapNumberValue(Node* object) { |
IntPtrConstant(HeapNumber::kValueOffset - kHeapObjectTag)); |
} |
+Node* CodeStubAssembler::StoreHeapNumberValue(Node* object, Node* value) { |
+ return StoreNoWriteBarrier( |
+ MachineRepresentation::kFloat64, object, |
+ IntPtrConstant(HeapNumber::kValueOffset - kHeapObjectTag), value); |
+} |
+ |
Node* CodeStubAssembler::LoadMapBitField(Node* map) { |
return Load(MachineType::Uint8(), map, |
IntPtrConstant(Map::kBitFieldOffset - kHeapObjectTag)); |
@@ -459,6 +465,12 @@ Node* CodeStubAssembler::LoadMap(Node* object) { |
return LoadObjectField(object, HeapObject::kMapOffset); |
} |
+Node* CodeStubAssembler::StoreMapNoWriteBarrier(Node* object, Node* map) { |
+ return StoreNoWriteBarrier( |
+ MachineRepresentation::kTagged, object, |
+ IntPtrConstant(HeapNumber::kMapOffset - kHeapObjectTag), map); |
+} |
+ |
Node* CodeStubAssembler::LoadInstanceType(Node* object) { |
return LoadMapInstanceType(LoadMap(object)); |
} |