From 38e2b5c97be5977435bf499b6f63b23aa660e16a Mon Sep 17 00:00:00 2001 From: "kbr@chromium.org" Date: Thu, 22 Oct 2009 15:21:00 +0000 Subject: [PATCH] Fix lint errors. Review URL: http://codereview.chromium.org/307037 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3114 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ia32/ic-ia32.cc | 7 +++---- src/x64/ic-x64.cc | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ia32/ic-ia32.cc b/src/ia32/ic-ia32.cc index 58603d4630..3aa3c34673 100644 --- a/src/ia32/ic-ia32.cc +++ b/src/ia32/ic-ia32.cc @@ -430,7 +430,6 @@ void KeyedLoadIC::GenerateExternalArray(MacroAssembler* masm, if (array_type == kExternalIntArray || array_type == kExternalUnsignedIntArray) { - // For the Int and UnsignedInt array types, we need to see whether // the value can be represented in a Smi. If not, we need to convert // it to a HeapNumber. @@ -755,15 +754,15 @@ void KeyedStoreIC::GenerateExternalArray(MacroAssembler* masm, __ j(parity_even, &is_nan); if (array_type != kExternalUnsignedIntArray) { - __ push(eax); // Make room on stack + __ push(eax); // Make room on stack __ fistp_s(Operand(esp, 0)); __ pop(eax); } else { // fistp stores values as signed integers. // To represent the entire range, we need to store as a 64-bit // int and discard the high 32 bits. - __ push(eax); // Make room on stack - __ push(eax); // Make room on stack + __ push(eax); // Make room on stack + __ push(eax); // Make room on stack __ fistp_d(Operand(esp, 0)); __ pop(eax); __ mov(Operand(esp, 0), eax); diff --git a/src/x64/ic-x64.cc b/src/x64/ic-x64.cc index 391d1594d0..2812df1561 100644 --- a/src/x64/ic-x64.cc +++ b/src/x64/ic-x64.cc @@ -442,7 +442,6 @@ void KeyedLoadIC::GenerateExternalArray(MacroAssembler* masm, if (array_type == kExternalIntArray || array_type == kExternalUnsignedIntArray) { - // For the Int and UnsignedInt array types, we need to see whether // the value can be represented in a Smi. If not, we need to convert // it to a HeapNumber. @@ -798,7 +797,7 @@ void KeyedStoreIC::GenerateExternalArray(MacroAssembler* masm, __ fucomi(0); __ j(parity_even, &is_nan); - __ push(rax); // Make room on stack + __ push(rax); // Make room on stack __ fistp_d(Operand(rsp, 0)); __ pop(rax); // rax: untagged integer value