Index: src/arm/virtual-frame-arm.cc |
=================================================================== |
--- src/arm/virtual-frame-arm.cc (revision 2127) |
+++ src/arm/virtual-frame-arm.cc (working copy) |
@@ -156,9 +156,7 @@ |
__ b(ne, &map_check); |
__ stop("VirtualFrame::Enter - r1 is not a function (smi check)."); |
__ bind(&map_check); |
- __ ldr(r2, FieldMemOperand(r1, HeapObject::kMapOffset)); |
- __ ldrb(r2, FieldMemOperand(r2, Map::kInstanceTypeOffset)); |
- __ cmp(r2, Operand(JS_FUNCTION_TYPE)); |
+ __ CompareObjectType(r1, r2, r2, JS_FUNCTION_TYPE); |
__ b(eq, &done); |
__ stop("VirtualFrame::Enter - r1 is not a function (map check)."); |
__ bind(&done); |