Index: src/arm/full-codegen-arm.cc |
=================================================================== |
--- src/arm/full-codegen-arm.cc (revision 6935) |
+++ src/arm/full-codegen-arm.cc (working copy) |
@@ -880,10 +880,6 @@ |
ForIn loop_statement(this, stmt); |
increment_loop_depth(); |
- // Load null value as it is used several times below. |
- Register null_value = r5; |
- __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
- |
// Get the object to enumerate over. Both SpiderMonkey and JSC |
// ignore null and undefined in contrast to the specification; see |
// ECMA-262 section 12.6.4. |
@@ -891,6 +887,8 @@ |
__ LoadRoot(ip, Heap::kUndefinedValueRootIndex); |
__ cmp(r0, ip); |
__ b(eq, &exit); |
+ Register null_value = r5; |
+ __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
__ cmp(r0, null_value); |
__ b(eq, &exit); |