Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index e4203618fcaa818bdb4441ac3345e3c4d43f0e4f..c5d639755c746ed5e5279017d67912aa7fbf587e 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -177,6 +177,7 @@ void MacroAssembler::LoadRootIndexed(Register destination, |
void MacroAssembler::StoreRoot(Register source, Heap::RootListIndex index) { |
+ DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
DCHECK(root_array_available_); |
movp(Operand(kRootRegister, (index << kPointerSizeLog2) - kRootRegisterBias), |
source); |