OLD | NEW |
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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_r14}; | 27 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_r14}; |
28 const Register kInterpreterDispatchTableRegister = {Register::kCode_r15}; | 28 const Register kInterpreterDispatchTableRegister = {Register::kCode_r15}; |
29 const Register kJavaScriptCallArgCountRegister = {Register::kCode_rax}; | 29 const Register kJavaScriptCallArgCountRegister = {Register::kCode_rax}; |
30 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_rdx}; | 30 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_rdx}; |
31 const Register kRuntimeCallFunctionRegister = {Register::kCode_rbx}; | 31 const Register kRuntimeCallFunctionRegister = {Register::kCode_rbx}; |
32 const Register kRuntimeCallArgCountRegister = {Register::kCode_rax}; | 32 const Register kRuntimeCallArgCountRegister = {Register::kCode_rax}; |
33 | 33 |
34 // Default scratch register used by MacroAssembler (and other code that needs | 34 // Default scratch register used by MacroAssembler (and other code that needs |
35 // a spare register). The register isn't callee save, and not used by the | 35 // a spare register). The register isn't callee save, and not used by the |
36 // function calling convention. | 36 // function calling convention. |
37 const Register kScratchRegister = { 10 }; // r10. | 37 const Register kScratchRegister = {10}; // r10. |
38 const Register kRootRegister = { 13 }; // r13 (callee save). | 38 const XMMRegister kScratchDoubleReg = {15}; // xmm15. |
| 39 const Register kRootRegister = {13}; // r13 (callee save). |
39 // Actual value of root register is offset from the root array's start | 40 // Actual value of root register is offset from the root array's start |
40 // to take advantage of negitive 8-bit displacement values. | 41 // to take advantage of negitive 8-bit displacement values. |
41 const int kRootRegisterBias = 128; | 42 const int kRootRegisterBias = 128; |
42 | 43 |
43 // Convenience for platform-independent signatures. | 44 // Convenience for platform-independent signatures. |
44 typedef Operand MemOperand; | 45 typedef Operand MemOperand; |
45 | 46 |
46 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; | 47 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; |
47 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; | 48 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; |
48 enum PointersToHereCheck { | 49 enum PointersToHereCheck { |
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 } \ | 1774 } \ |
1774 masm-> | 1775 masm-> |
1775 #else | 1776 #else |
1776 #define ACCESS_MASM(masm) masm-> | 1777 #define ACCESS_MASM(masm) masm-> |
1777 #endif | 1778 #endif |
1778 | 1779 |
1779 } // namespace internal | 1780 } // namespace internal |
1780 } // namespace v8 | 1781 } // namespace v8 |
1781 | 1782 |
1782 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1783 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |