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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 1289863003: [interpreter]: Changes to interpreter builtins for accumulator and register file registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix_interpreter_initialization
Patch Set: Rename incoming_accumulator Created 5 years, 4 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') | test/cctest/interpreter/test-interpreter.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/flags.h" 10 #include "src/base/flags.h"
11 #include "src/frames.h" 11 #include "src/frames.h"
12 #include "src/globals.h" 12 #include "src/globals.h"
13 #include "src/x64/frames-x64.h" 13 #include "src/x64/frames-x64.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 17
18 // Give alias names to registers for calling conventions. 18 // Give alias names to registers for calling conventions.
19 const Register kReturnRegister0 = {kRegister_rax_Code}; 19 const Register kReturnRegister0 = {kRegister_rax_Code};
20 const Register kReturnRegister1 = {kRegister_rdx_Code}; 20 const Register kReturnRegister1 = {kRegister_rdx_Code};
21 const Register kJSFunctionRegister = {kRegister_rdi_Code}; 21 const Register kJSFunctionRegister = {kRegister_rdi_Code};
22 const Register kContextRegister = {kRegister_rsi_Code}; 22 const Register kContextRegister = {kRegister_rsi_Code};
23 const Register kInterpreterAccumulatorRegister = {kRegister_rax_Code};
24 const Register kInterpreterRegisterFileRegister = {kRegister_r11_Code};
23 const Register kInterpreterBytecodeOffsetRegister = {kRegister_r12_Code}; 25 const Register kInterpreterBytecodeOffsetRegister = {kRegister_r12_Code};
24 const Register kInterpreterBytecodeArrayRegister = {kRegister_r14_Code}; 26 const Register kInterpreterBytecodeArrayRegister = {kRegister_r14_Code};
25 const Register kInterpreterDispatchTableRegister = {kRegister_r15_Code}; 27 const Register kInterpreterDispatchTableRegister = {kRegister_r15_Code};
26 const Register kRuntimeCallFunctionRegister = {kRegister_rbx_Code}; 28 const Register kRuntimeCallFunctionRegister = {kRegister_rbx_Code};
27 const Register kRuntimeCallArgCountRegister = {kRegister_rax_Code}; 29 const Register kRuntimeCallArgCountRegister = {kRegister_rax_Code};
28 30
29 // Default scratch register used by MacroAssembler (and other code that needs 31 // Default scratch register used by MacroAssembler (and other code that needs
30 // a spare register). The register isn't callee save, and not used by the 32 // a spare register). The register isn't callee save, and not used by the
31 // function calling convention. 33 // function calling convention.
32 const Register kScratchRegister = { 10 }; // r10. 34 const Register kScratchRegister = { 10 }; // r10.
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 masm->popfq(); \ 1624 masm->popfq(); \
1623 } \ 1625 } \
1624 masm-> 1626 masm->
1625 #else 1627 #else
1626 #define ACCESS_MASM(masm) masm-> 1628 #define ACCESS_MASM(masm) masm->
1627 #endif 1629 #endif
1628 1630
1629 } } // namespace v8::internal 1631 } } // namespace v8::internal
1630 1632
1631 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1633 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | test/cctest/interpreter/test-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698