| Index: test/cctest/test-assembler-ia32.cc
|
| ===================================================================
|
| --- test/cctest/test-assembler-ia32.cc (revision 9531)
|
| +++ test/cctest/test-assembler-ia32.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -93,15 +93,15 @@
|
| Label L, C;
|
|
|
| __ mov(edx, Operand(esp, 4));
|
| - __ xor_(eax, Operand(eax)); // clear eax
|
| + __ xor_(eax, eax); // clear eax
|
| __ jmp(&C);
|
|
|
| __ bind(&L);
|
| - __ add(eax, Operand(edx));
|
| - __ sub(Operand(edx), Immediate(1));
|
| + __ add(eax, edx);
|
| + __ sub(edx, Immediate(1));
|
|
|
| __ bind(&C);
|
| - __ test(edx, Operand(edx));
|
| + __ test(edx, edx);
|
| __ j(not_zero, &L);
|
| __ ret(0);
|
|
|
| @@ -135,11 +135,11 @@
|
| __ jmp(&C);
|
|
|
| __ bind(&L);
|
| - __ imul(eax, Operand(edx));
|
| - __ sub(Operand(edx), Immediate(1));
|
| + __ imul(eax, edx);
|
| + __ sub(edx, Immediate(1));
|
|
|
| __ bind(&C);
|
| - __ test(edx, Operand(edx));
|
| + __ test(edx, edx);
|
| __ j(not_zero, &L);
|
| __ ret(0);
|
|
|
| @@ -275,10 +275,10 @@
|
| __ subsd(xmm0, xmm1);
|
| __ divsd(xmm0, xmm1);
|
| // Copy xmm0 to st(0) using eight bytes of stack.
|
| - __ sub(Operand(esp), Immediate(8));
|
| + __ sub(esp, Immediate(8));
|
| __ movdbl(Operand(esp, 0), xmm0);
|
| __ fld_d(Operand(esp, 0));
|
| - __ add(Operand(esp), Immediate(8));
|
| + __ add(esp, Immediate(8));
|
| __ ret(0);
|
|
|
| CodeDesc desc;
|
| @@ -314,12 +314,12 @@
|
| v8::internal::byte buffer[256];
|
| Assembler assm(Isolate::Current(), buffer, sizeof buffer);
|
| __ mov(eax, Operand(esp, 4));
|
| - __ cvtsi2sd(xmm0, Operand(eax));
|
| + __ cvtsi2sd(xmm0, eax);
|
| // Copy xmm0 to st(0) using eight bytes of stack.
|
| - __ sub(Operand(esp), Immediate(8));
|
| + __ sub(esp, Immediate(8));
|
| __ movdbl(Operand(esp, 0), xmm0);
|
| __ fld_d(Operand(esp, 0));
|
| - __ add(Operand(esp), Immediate(8));
|
| + __ add(esp, Immediate(8));
|
| __ ret(0);
|
| CodeDesc desc;
|
| assm.GetCode(&desc);
|
|
|