Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index 436521ae1dd77be824bc32b7a2746e71b61c40a8..5c4404518968d94007b15392e7e059b69cc6a672 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -2727,9 +2727,9 @@ void LCodeGen::DoLoadKeyedFixedArray(LLoadKeyed* instr) { |
__ j(not_equal, &done); |
if (info()->IsStub()) { |
// A stub can safely convert the hole to undefined only if the array |
- // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise |
- // it needs to bail out. |
- __ mov(result, isolate()->factory()->array_protector()); |
+ // protector cell contains (Smi) Isolate::kArrayProtectorValid. |
+ // Otherwise it needs to bail out. |
+ __ LoadRoot(result, Heap::kArrayProtectorRootIndex); |
__ cmp(FieldOperand(result, PropertyCell::kValueOffset), |
Immediate(Smi::FromInt(Isolate::kArrayProtectorValid))); |
DeoptimizeIf(not_equal, instr, Deoptimizer::kHole); |