Index: src/arm/codegen-arm.cc |
=================================================================== |
--- src/arm/codegen-arm.cc (revision 3712) |
+++ src/arm/codegen-arm.cc (working copy) |
@@ -1890,8 +1890,8 @@ |
node->break_target()->set_direction(JumpTarget::FORWARD_ONLY); |
node->continue_target()->set_direction(JumpTarget::FORWARD_ONLY); |
- __ ldr(r0, frame_->ElementAt(0)); // load the current count |
- __ ldr(r1, frame_->ElementAt(1)); // load the length |
+ // load the current count to r0, load the length to r1 |
Erik Corry
2010/05/04 07:06:13
When we are reformatting comments we should take t
zhangk
2010/05/07 05:32:14
On 2010/05/04 07:06:13, Erik Corry wrote:
Done.
|
+ __ ldrd(r0, frame_->ElementAt(0)); |
__ cmp(r0, Operand(r1)); // compare to the array length |
node->break_target()->Branch(hs); |
@@ -5369,8 +5369,7 @@ |
__ vldr(d7, r7, HeapNumber::kValueOffset); |
} else { |
// Calling convention says that second double is in r2 and r3. |
- __ ldr(r2, FieldMemOperand(r0, HeapNumber::kValueOffset)); |
- __ ldr(r3, FieldMemOperand(r0, HeapNumber::kValueOffset + 4)); |
+ __ ldrd(r2, FieldMemOperand(r0, HeapNumber::kValueOffset)); |
} |
__ jmp(&finished_loading_r0); |
__ bind(&r0_is_smi); |
@@ -5411,8 +5410,7 @@ |
__ vldr(d6, r7, HeapNumber::kValueOffset); |
} else { |
// Calling convention says that first double is in r0 and r1. |
- __ ldr(r0, FieldMemOperand(r1, HeapNumber::kValueOffset)); |
- __ ldr(r1, FieldMemOperand(r1, HeapNumber::kValueOffset + 4)); |
+ __ ldrd(r0, FieldMemOperand(r1, HeapNumber::kValueOffset)); |
} |
__ jmp(&finished_loading_r1); |
__ bind(&r1_is_smi); |
@@ -5493,8 +5491,7 @@ |
__ stc(p1, cr8, MemOperand(r5, HeapNumber::kValueOffset)); |
#else |
// Double returned in registers 0 and 1. |
- __ str(r0, FieldMemOperand(r4, HeapNumber::kValueOffset)); |
- __ str(r1, FieldMemOperand(r4, HeapNumber::kValueOffset + 4)); |
+ __ strd(r0, FieldMemOperand(r4, HeapNumber::kValueOffset)); |
#endif |
__ mov(r0, Operand(r4)); |
// And we are done. |