| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2556 | 2556 |
| 2557 __ bind(&call); | 2557 __ bind(&call); |
| 2558 __ PrepareCallCFunction(2); | 2558 __ PrepareCallCFunction(2); |
| 2559 // Move arguments to correct registers xmm0 and xmm1. | 2559 // Move arguments to correct registers xmm0 and xmm1. |
| 2560 __ movsd(xmm0, left_reg); | 2560 __ movsd(xmm0, left_reg); |
| 2561 // Right argument is already in xmm1. | 2561 // Right argument is already in xmm1. |
| 2562 __ CallCFunction(ExternalReference::power_double_double_function(), 2); | 2562 __ CallCFunction(ExternalReference::power_double_double_function(), 2); |
| 2563 } | 2563 } |
| 2564 // Return value is in xmm0. | 2564 // Return value is in xmm0. |
| 2565 __ movsd(result_reg, xmm0); | 2565 __ movsd(result_reg, xmm0); |
| 2566 // Restore context register. |
| 2567 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
| 2566 } | 2568 } |
| 2567 | 2569 |
| 2568 | 2570 |
| 2569 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { | 2571 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { |
| 2570 ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); | 2572 ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); |
| 2571 TranscendentalCacheStub stub(TranscendentalCache::LOG, | 2573 TranscendentalCacheStub stub(TranscendentalCache::LOG, |
| 2572 TranscendentalCacheStub::UNTAGGED); | 2574 TranscendentalCacheStub::UNTAGGED); |
| 2573 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 2575 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
| 2574 } | 2576 } |
| 2575 | 2577 |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3654 RegisterEnvironmentForDeoptimization(environment); | 3656 RegisterEnvironmentForDeoptimization(environment); |
| 3655 ASSERT(osr_pc_offset_ == -1); | 3657 ASSERT(osr_pc_offset_ == -1); |
| 3656 osr_pc_offset_ = masm()->pc_offset(); | 3658 osr_pc_offset_ = masm()->pc_offset(); |
| 3657 } | 3659 } |
| 3658 | 3660 |
| 3659 #undef __ | 3661 #undef __ |
| 3660 | 3662 |
| 3661 } } // namespace v8::internal | 3663 } } // namespace v8::internal |
| 3662 | 3664 |
| 3663 #endif // V8_TARGET_ARCH_X64 | 3665 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |