Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 50863002: Use register allocator for context on x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added comment to test case Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698