Index: src/compiler/code-assembler.cc |
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc |
index 7f8e2ffad0e5f4f1a97ed96db9e0adf542aab44f..d25ac15a0e9311412737072c7cfc4cd195a0fb4d 100644 |
--- a/src/compiler/code-assembler.cc |
+++ b/src/compiler/code-assembler.cc |
@@ -302,7 +302,8 @@ Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { |
DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); |
Node* roots_array_start = |
ExternalConstant(ExternalReference::roots_array_start(isolate())); |
- return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, |
+ return StoreNoWriteBarrier(MachineRepresentation::kTaggedPointer, |
+ roots_array_start, |
IntPtrConstant(root_index * kPointerSize), value); |
} |