Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 7f6c60d2af60103b3fa0edf8e0a212ea5415bfb7..5c064c1c21611888c5f65393373e76c2ae0e73cf 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -423,7 +423,8 @@ void MacroAssembler::LoadRoot(Register destination, |
Heap::RootListIndex index, |
Condition cond) { |
if (CpuFeatures::IsSupported(MOVW_MOVT_IMMEDIATE_LOADS) && |
- !Heap::RootCanBeWrittenAfterInitialization(index)) { |
+ !Heap::RootCanBeWrittenAfterInitialization(index) && |
+ !predictable_code_size()) { |
Handle<Object> root(isolate()->heap()->roots_array_start()[index]); |
if (!isolate()->heap()->InNewSpace(*root)) { |
// The CPU supports fast immediate values, and this root will never |