Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 628c061e43be14ef8a5f5d8cbf2075d64137741f..87bb2966b09796d050ce1a264e1ee3d3fb42f77b 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1403,6 +1403,7 @@ void MacroAssembler::LoadRoot(CPURegister destination, |
void MacroAssembler::StoreRoot(Register source, |
Heap::RootListIndex index) { |
+ DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
Str(source, MemOperand(root, index << kPointerSizeLog2)); |
} |