| 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 __ movsd(result, Operand(kScratchRegister, 2 * kDoubleSize)); | 600 __ movsd(result, Operand(kScratchRegister, 2 * kDoubleSize)); |
| 601 __ j(above_equal, &done); | 601 __ j(above_equal, &done); |
| 602 __ movsd(double_scratch, Operand(kScratchRegister, 3 * kDoubleSize)); | 602 __ movsd(double_scratch, Operand(kScratchRegister, 3 * kDoubleSize)); |
| 603 __ movsd(result, Operand(kScratchRegister, 4 * kDoubleSize)); | 603 __ movsd(result, Operand(kScratchRegister, 4 * kDoubleSize)); |
| 604 __ mulsd(double_scratch, input); | 604 __ mulsd(double_scratch, input); |
| 605 __ addsd(double_scratch, result); | 605 __ addsd(double_scratch, result); |
| 606 __ movq(temp2, double_scratch); | 606 __ movq(temp2, double_scratch); |
| 607 __ subsd(double_scratch, result); | 607 __ subsd(double_scratch, result); |
| 608 __ movsd(result, Operand(kScratchRegister, 6 * kDoubleSize)); | 608 __ movsd(result, Operand(kScratchRegister, 6 * kDoubleSize)); |
| 609 __ leaq(temp1, Operand(temp2, 0x1ff800)); | 609 __ leaq(temp1, Operand(temp2, 0x1ff800)); |
| 610 __ and_(temp2, Immediate(0x7ff)); | 610 __ andq(temp2, Immediate(0x7ff)); |
| 611 __ shr(temp1, Immediate(11)); | 611 __ shr(temp1, Immediate(11)); |
| 612 __ mulsd(double_scratch, Operand(kScratchRegister, 5 * kDoubleSize)); | 612 __ mulsd(double_scratch, Operand(kScratchRegister, 5 * kDoubleSize)); |
| 613 __ Move(kScratchRegister, ExternalReference::math_exp_log_table()); | 613 __ Move(kScratchRegister, ExternalReference::math_exp_log_table()); |
| 614 __ shl(temp1, Immediate(52)); | 614 __ shl(temp1, Immediate(52)); |
| 615 __ or_(temp1, Operand(kScratchRegister, temp2, times_8, 0)); | 615 __ orq(temp1, Operand(kScratchRegister, temp2, times_8, 0)); |
| 616 __ Move(kScratchRegister, ExternalReference::math_exp_constants(0)); | 616 __ Move(kScratchRegister, ExternalReference::math_exp_constants(0)); |
| 617 __ subsd(double_scratch, input); | 617 __ subsd(double_scratch, input); |
| 618 __ movsd(input, double_scratch); | 618 __ movsd(input, double_scratch); |
| 619 __ subsd(result, double_scratch); | 619 __ subsd(result, double_scratch); |
| 620 __ mulsd(input, double_scratch); | 620 __ mulsd(input, double_scratch); |
| 621 __ mulsd(result, input); | 621 __ mulsd(result, input); |
| 622 __ movq(input, temp1); | 622 __ movq(input, temp1); |
| 623 __ mulsd(result, Operand(kScratchRegister, 7 * kDoubleSize)); | 623 __ mulsd(result, Operand(kScratchRegister, 7 * kDoubleSize)); |
| 624 __ subsd(result, double_scratch); | 624 __ subsd(result, double_scratch); |
| 625 __ addsd(result, Operand(kScratchRegister, 8 * kDoubleSize)); | 625 __ addsd(result, Operand(kScratchRegister, 8 * kDoubleSize)); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize. | 710 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize. |
| 711 return Operand(base_reg_, argument_count_reg_, times_pointer_size, | 711 return Operand(base_reg_, argument_count_reg_, times_pointer_size, |
| 712 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize); | 712 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize); |
| 713 } | 713 } |
| 714 } | 714 } |
| 715 | 715 |
| 716 | 716 |
| 717 } } // namespace v8::internal | 717 } } // namespace v8::internal |
| 718 | 718 |
| 719 #endif // V8_TARGET_ARCH_X64 | 719 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |