Chromium Code Reviews| Index: src/arm/lithium-codegen-arm.cc |
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
| index e1e35d251ec58c3172e6b696de0a6e0f3d352799..eab9f3d96271bff9e864cf46fd5caf0591520c81 100644 |
| --- a/src/arm/lithium-codegen-arm.cc |
| +++ b/src/arm/lithium-codegen-arm.cc |
| @@ -2141,7 +2141,11 @@ void LCodeGen::DoInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr) { |
| // We use Factory::the_hole_value() on purpose instead of loading from the |
| // root array to force relocation to be able to later patch with |
| // the cached map. |
| - __ mov(ip, Operand(factory()->the_hole_value())); |
| + Handle<JSGlobalPropertyCell> cell = |
| + isolate()->factory()->NewJSGlobalPropertyCell( |
|
Michael Starzinger
2012/01/11 09:35:09
Can we use factory() instead of isolate()->factory
|
| + factory()->the_hole_value()); |
| + __ mov(ip, Operand(Handle<Object>(cell))); |
| + __ ldr(ip, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); |
| __ cmp(map, Operand(ip)); |
| __ b(ne, &cache_miss); |
| // We use Factory::the_hole_value() on purpose instead of loading from the |