Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index 1283ac075818f1562178738d42f9cb7885f4e0e4..babe97807b828e39fea14a6eac896b433f58a24f 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -2998,9 +2998,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); |