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 7a95bc3ce073e3d5d78fd6ece173c014963e4b52..b1eb2af2f39c57e1150b4d4f102ef5d73649f667 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); |