Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index e544d82d7d205a39e21e9c10e42c06d013cf78f6..579641b60d10da04253b3b1873ca806208cfa49a 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -192,6 +192,16 @@ Node* CodeStubAssembler::LoadFixedArrayElementConstantIndex(Node* object, |
return raw_assembler_->Load(MachineType::AnyTagged(), object, offset); |
} |
+Node* CodeStubAssembler::StoreFixedArrayElementNoWriteBarrier(Node* object, |
+ Node* index, |
+ Node* value) { |
+ Node* offset = |
+ IntPtrAdd(WordShl(index, IntPtrConstant(kPointerSizeLog2)), |
+ IntPtrConstant(FixedArray::kHeaderSize - kHeapObjectTag)); |
+ return StoreNoWriteBarrier(MachineRepresentation::kTagged, object, offset, |
+ value); |
+} |
+ |
Node* CodeStubAssembler::LoadRoot(Heap::RootListIndex root_index) { |
if (isolate()->heap()->RootCanBeTreatedAsConstant(root_index)) { |
Handle<Object> root = isolate()->heap()->root_handle(root_index); |