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

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

Issue 1387543002: Revert of [Interpreter] Add CallRuntime support to the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/interface-descriptors-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 save_doubles.GetCode(); 2261 save_doubles.GetCode();
2262 } 2262 }
2263 2263
2264 2264
2265 void CEntryStub::Generate(MacroAssembler* masm) { 2265 void CEntryStub::Generate(MacroAssembler* masm) {
2266 // rax: number of arguments including receiver 2266 // rax: number of arguments including receiver
2267 // rbx: pointer to C function (C callee-saved) 2267 // rbx: pointer to C function (C callee-saved)
2268 // rbp: frame pointer of calling JS frame (restored after C call) 2268 // rbp: frame pointer of calling JS frame (restored after C call)
2269 // rsp: stack pointer (restored after C call) 2269 // rsp: stack pointer (restored after C call)
2270 // rsi: current context (restored) 2270 // rsi: current context (restored)
2271 //
2272 // If argv_in_register():
2273 // r15: pointer to the first argument
2274 2271
2275 ProfileEntryHookStub::MaybeCallEntryHook(masm); 2272 ProfileEntryHookStub::MaybeCallEntryHook(masm);
2276 2273
2277 // Enter the exit frame that transitions from JavaScript to C++. 2274 // Enter the exit frame that transitions from JavaScript to C++.
2278 #ifdef _WIN64 2275 #ifdef _WIN64
2279 int arg_stack_space = (result_size() < 2 ? 2 : 4); 2276 int arg_stack_space = (result_size() < 2 ? 2 : 4);
2280 #else // _WIN64 2277 #else // _WIN64
2281 int arg_stack_space = 0; 2278 int arg_stack_space = 0;
2282 #endif // _WIN64 2279 #endif // _WIN64
2283 if (argv_in_register()) { 2280 __ EnterExitFrame(arg_stack_space, save_doubles());
2284 DCHECK(!save_doubles());
2285 __ EnterApiExitFrame(arg_stack_space);
2286 // Move argc into r14 (argv is already in r15).
2287 __ movp(r14, rax);
2288 } else {
2289 __ EnterExitFrame(arg_stack_space, save_doubles());
2290 }
2291 2281
2292 // rbx: pointer to builtin function (C callee-saved). 2282 // rbx: pointer to builtin function (C callee-saved).
2293 // rbp: frame pointer of exit frame (restored after C call). 2283 // rbp: frame pointer of exit frame (restored after C call).
2294 // rsp: stack pointer (restored after C call). 2284 // rsp: stack pointer (restored after C call).
2295 // r14: number of arguments including receiver (C callee-saved). 2285 // r14: number of arguments including receiver (C callee-saved).
2296 // r15: argv pointer (C callee-saved). 2286 // r15: argv pointer (C callee-saved).
2297 2287
2298 // Simple results returned in rax (both AMD64 and Win64 calling conventions). 2288 // Simple results returned in rax (both AMD64 and Win64 calling conventions).
2299 // Complex results must be written to address passed as first argument. 2289 // Complex results must be written to address passed as first argument.
2300 // AMD64 calling convention: a struct of two pointers in rax+rdx 2290 // AMD64 calling convention: a struct of two pointers in rax+rdx
(...skipping 3275 matching lines...) Expand 10 before | Expand all | Expand 10 after
5576 kStackSpace, nullptr, return_value_operand, NULL); 5566 kStackSpace, nullptr, return_value_operand, NULL);
5577 } 5567 }
5578 5568
5579 5569
5580 #undef __ 5570 #undef __
5581 5571
5582 } // namespace internal 5572 } // namespace internal
5583 } // namespace v8 5573 } // namespace v8
5584 5574
5585 #endif // V8_TARGET_ARCH_X64 5575 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698