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

Side by Side Diff: src/x64/deoptimizer-x64.cc

Issue 132233027: Revert some movq->movp changes under the _WIN64 macro for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months 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/codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Allocate a new deoptimizer object. 179 // Allocate a new deoptimizer object.
180 __ PrepareCallCFunction(6); 180 __ PrepareCallCFunction(6);
181 __ movp(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 181 __ movp(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
182 __ movp(arg_reg_1, rax); 182 __ movp(arg_reg_1, rax);
183 __ Set(arg_reg_2, type()); 183 __ Set(arg_reg_2, type());
184 // Args 3 and 4 are already in the right registers. 184 // Args 3 and 4 are already in the right registers.
185 185
186 // On windows put the arguments on the stack (PrepareCallCFunction 186 // On windows put the arguments on the stack (PrepareCallCFunction
187 // has created space for this). On linux pass the arguments in r8 and r9. 187 // has created space for this). On linux pass the arguments in r8 and r9.
188 #ifdef _WIN64 188 #ifdef _WIN64
189 __ movp(Operand(rsp, 4 * kPointerSize), arg5); 189 __ movq(Operand(rsp, 4 * kRegisterSize), arg5);
190 __ LoadAddress(arg5, ExternalReference::isolate_address(isolate())); 190 __ LoadAddress(arg5, ExternalReference::isolate_address(isolate()));
191 __ movp(Operand(rsp, 5 * kPointerSize), arg5); 191 __ movq(Operand(rsp, 5 * kRegisterSize), arg5);
192 #else 192 #else
193 __ movp(r8, arg5); 193 __ movp(r8, arg5);
194 __ LoadAddress(r9, ExternalReference::isolate_address(isolate())); 194 __ LoadAddress(r9, ExternalReference::isolate_address(isolate()));
195 #endif 195 #endif
196 196
197 { AllowExternalCallThatCantCauseGC scope(masm()); 197 { AllowExternalCallThatCantCauseGC scope(masm());
198 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6); 198 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6);
199 } 199 }
200 // Preserve deoptimizer object in register rax and get the input 200 // Preserve deoptimizer object in register rax and get the input
201 // frame descriptor pointer. 201 // frame descriptor pointer.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 SetFrameSlot(offset, value); 334 SetFrameSlot(offset, value);
335 } 335 }
336 336
337 337
338 #undef __ 338 #undef __
339 339
340 340
341 } } // namespace v8::internal 341 } } // namespace v8::internal
342 342
343 #endif // V8_TARGET_ARCH_X64 343 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698