| 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 2726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2737 __ movsd(xmm0, left_reg); | 2737 __ movsd(xmm0, left_reg); |
| 2738 #ifdef _WIN64 | 2738 #ifdef _WIN64 |
| 2739 ASSERT(ToRegister(right).is(rdx)); | 2739 ASSERT(ToRegister(right).is(rdx)); |
| 2740 #else | 2740 #else |
| 2741 ASSERT(ToRegister(right).is(rdi)); | 2741 ASSERT(ToRegister(right).is(rdi)); |
| 2742 #endif | 2742 #endif |
| 2743 __ CallCFunction( | 2743 __ CallCFunction( |
| 2744 ExternalReference::power_double_int_function(isolate()), 2); | 2744 ExternalReference::power_double_int_function(isolate()), 2); |
| 2745 } else { | 2745 } else { |
| 2746 ASSERT(exponent_type.IsTagged()); | 2746 ASSERT(exponent_type.IsTagged()); |
| 2747 CpuFeatures::Scope scope(SSE2); |
| 2747 Register right_reg = ToRegister(right); | 2748 Register right_reg = ToRegister(right); |
| 2748 | 2749 |
| 2749 Label non_smi, call; | 2750 Label non_smi, call; |
| 2750 __ JumpIfNotSmi(right_reg, &non_smi); | 2751 __ JumpIfNotSmi(right_reg, &non_smi); |
| 2751 __ SmiToInteger32(right_reg, right_reg); | 2752 __ SmiToInteger32(right_reg, right_reg); |
| 2752 __ cvtlsi2sd(xmm1, right_reg); | 2753 __ cvtlsi2sd(xmm1, right_reg); |
| 2753 __ jmp(&call); | 2754 __ jmp(&call); |
| 2754 | 2755 |
| 2755 __ bind(&non_smi); | 2756 __ bind(&non_smi); |
| 2756 __ CmpObjectType(right_reg, HEAP_NUMBER_TYPE , kScratchRegister); | 2757 __ CmpObjectType(right_reg, HEAP_NUMBER_TYPE , kScratchRegister); |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3951 RegisterEnvironmentForDeoptimization(environment); | 3952 RegisterEnvironmentForDeoptimization(environment); |
| 3952 ASSERT(osr_pc_offset_ == -1); | 3953 ASSERT(osr_pc_offset_ == -1); |
| 3953 osr_pc_offset_ = masm()->pc_offset(); | 3954 osr_pc_offset_ = masm()->pc_offset(); |
| 3954 } | 3955 } |
| 3955 | 3956 |
| 3956 #undef __ | 3957 #undef __ |
| 3957 | 3958 |
| 3958 } } // namespace v8::internal | 3959 } } // namespace v8::internal |
| 3959 | 3960 |
| 3960 #endif // V8_TARGET_ARCH_X64 | 3961 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |