OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 __ movsd(xmm0, double_base); | 1129 __ movsd(xmm0, double_base); |
1130 ASSERT(double_exponent.is(xmm1)); | 1130 ASSERT(double_exponent.is(xmm1)); |
1131 { | 1131 { |
1132 AllowExternalCallThatCantCauseGC scope(masm); | 1132 AllowExternalCallThatCantCauseGC scope(masm); |
1133 __ PrepareCallCFunction(2); | 1133 __ PrepareCallCFunction(2); |
1134 __ CallCFunction( | 1134 __ CallCFunction( |
1135 ExternalReference::power_double_double_function(masm->isolate()), 2); | 1135 ExternalReference::power_double_double_function(masm->isolate()), 2); |
1136 } | 1136 } |
1137 // Return value is in xmm0. | 1137 // Return value is in xmm0. |
1138 __ movsd(double_result, xmm0); | 1138 __ movsd(double_result, xmm0); |
1139 // Restore context register. | |
1140 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | |
1141 | 1139 |
1142 __ bind(&done); | 1140 __ bind(&done); |
1143 __ IncrementCounter(counters->math_pow(), 1); | 1141 __ IncrementCounter(counters->math_pow(), 1); |
1144 __ ret(0); | 1142 __ ret(0); |
1145 } | 1143 } |
1146 } | 1144 } |
1147 | 1145 |
1148 | 1146 |
1149 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | 1147 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
1150 Label miss; | 1148 Label miss; |
(...skipping 4664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5815 __ bind(&fast_elements_case); | 5813 __ bind(&fast_elements_case); |
5816 GenerateCase(masm, FAST_ELEMENTS); | 5814 GenerateCase(masm, FAST_ELEMENTS); |
5817 } | 5815 } |
5818 | 5816 |
5819 | 5817 |
5820 #undef __ | 5818 #undef __ |
5821 | 5819 |
5822 } } // namespace v8::internal | 5820 } } // namespace v8::internal |
5823 | 5821 |
5824 #endif // V8_TARGET_ARCH_X64 | 5822 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |