Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index 513827b7b3af92156dff6e8ffa9715edd1572008..7a6228be88295c6c484df7d94243af12f87b0254 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -273,6 +273,7 @@ void MacroAssembler::LoadRoot(Register destination, Heap::RootListIndex index, |
void MacroAssembler::StoreRoot(Register source, Heap::RootListIndex index, |
Condition cond) { |
+ DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
DCHECK(cond == al); |
StoreP(source, MemOperand(kRootRegister, index << kPointerSizeLog2), r0); |
} |