Index: src/arm/stub-cache-arm.cc |
=================================================================== |
--- src/arm/stub-cache-arm.cc (revision 2701) |
+++ src/arm/stub-cache-arm.cc (working copy) |
@@ -395,8 +395,7 @@ |
__ mov(scratch, Operand(Handle<Object>(cell))); |
__ ldr(scratch, |
FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset)); |
- __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
- __ cmp(scratch, ip); |
+ __ cmp(scratch, Operand(Factory::the_hole_value())); |
__ b(ne, miss); |
} |
object = JSObject::cast(object->GetPrototype()); |
@@ -668,11 +667,9 @@ |
case BOOLEAN_CHECK: { |
Label fast; |
// Check that the object is a boolean. |
- __ LoadRoot(ip, Heap::kTrueValueRootIndex); |
- __ cmp(r1, ip); |
+ __ cmp(r1, Operand(Factory::true_value())); |
__ b(eq, &fast); |
- __ LoadRoot(ip, Heap::kFalseValueRootIndex); |
- __ cmp(r1, ip); |
+ __ cmp(r1, Operand(Factory::false_value())); |
__ b(ne, &miss); |
__ bind(&fast); |
// Check that the maps starting from the prototype haven't changed. |
@@ -691,8 +688,7 @@ |
__ ldr(r3, FieldMemOperand(r1, JSObject::kElementsOffset)); |
// Check that the object is in fast mode (not dictionary). |
__ ldr(r2, FieldMemOperand(r3, HeapObject::kMapOffset)); |
- __ LoadRoot(ip, Heap::kFixedArrayMapRootIndex); |
- __ cmp(r2, ip); |
+ __ cmp(r2, Operand(Factory::fixed_array_map())); |
__ b(ne, &miss); |
break; |
@@ -1112,8 +1108,7 @@ |
// Check for deleted property if property can actually be deleted. |
if (!is_dont_delete) { |
- __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
- __ cmp(r0, ip); |
+ __ cmp(r0, Operand(Factory::the_hole_value())); |
__ b(eq, &miss); |
} |