| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 | 658 |
| 659 Label check_negative, process_64_bits, done, done_no_stash; | 659 Label check_negative, process_64_bits, done, done_no_stash; |
| 660 | 660 |
| 661 int double_offset = offset(); | 661 int double_offset = offset(); |
| 662 | 662 |
| 663 // Account for return address and saved regs if input is esp. | 663 // Account for return address and saved regs if input is esp. |
| 664 if (input_reg.is(esp)) double_offset += 3 * kPointerSize; | 664 if (input_reg.is(esp)) double_offset += 3 * kPointerSize; |
| 665 | 665 |
| 666 MemOperand mantissa_operand(MemOperand(input_reg, double_offset)); | 666 MemOperand mantissa_operand(MemOperand(input_reg, double_offset)); |
| 667 MemOperand exponent_operand(MemOperand(input_reg, | 667 MemOperand exponent_operand(MemOperand(input_reg, |
| 668 double_offset + kPointerSize)); | 668 double_offset + kDoubleSize / 2)); |
| 669 | 669 |
| 670 Register scratch1; | 670 Register scratch1; |
| 671 { | 671 { |
| 672 Register scratch_candidates[3] = { ebx, edx, edi }; | 672 Register scratch_candidates[3] = { ebx, edx, edi }; |
| 673 for (int i = 0; i < 3; i++) { | 673 for (int i = 0; i < 3; i++) { |
| 674 scratch1 = scratch_candidates[i]; | 674 scratch1 = scratch_candidates[i]; |
| 675 if (!final_result_reg.is(scratch1) && !input_reg.is(scratch1)) break; | 675 if (!final_result_reg.is(scratch1) && !input_reg.is(scratch1)) break; |
| 676 } | 676 } |
| 677 } | 677 } |
| 678 // Since we must use ecx for shifts below, use some other register (eax) | 678 // Since we must use ecx for shifts below, use some other register (eax) |
| (...skipping 7091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7770 __ bind(&fast_elements_case); | 7770 __ bind(&fast_elements_case); |
| 7771 GenerateCase(masm, FAST_ELEMENTS); | 7771 GenerateCase(masm, FAST_ELEMENTS); |
| 7772 } | 7772 } |
| 7773 | 7773 |
| 7774 | 7774 |
| 7775 #undef __ | 7775 #undef __ |
| 7776 | 7776 |
| 7777 } } // namespace v8::internal | 7777 } } // namespace v8::internal |
| 7778 | 7778 |
| 7779 #endif // V8_TARGET_ARCH_IA32 | 7779 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |