Index: src/arm/virtual-frame-arm.cc |
=================================================================== |
--- src/arm/virtual-frame-arm.cc (revision 2758) |
+++ src/arm/virtual-frame-arm.cc (working copy) |
@@ -102,7 +102,8 @@ |
#ifdef DEBUG |
// Verify that r1 contains a JS function. The following code relies |
// on r2 being available for use. |
- { Label map_check, done; |
+ if (FLAG_debug_code) { |
+ Label map_check, done; |
__ tst(r1, Operand(kSmiTagMask)); |
__ b(ne, &map_check); |
__ stop("VirtualFrame::Enter - r1 is not a function (smi check)."); |