OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_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/frames.h" | 10 #include "src/frames.h" |
11 #include "src/globals.h" | 11 #include "src/globals.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 // Give alias names to registers for calling conventions. | 16 // Give alias names to registers for calling conventions. |
17 const Register kReturnRegister0 = {kRegister_r3_Code}; | 17 const Register kReturnRegister0 = {kRegister_r3_Code}; |
18 const Register kReturnRegister1 = {kRegister_r4_Code}; | 18 const Register kReturnRegister1 = {kRegister_r4_Code}; |
19 const Register kJSFunctionRegister = {kRegister_r4_Code}; | 19 const Register kJSFunctionRegister = {kRegister_r4_Code}; |
20 const Register kContextRegister = {kRegister_r30_Code}; | 20 const Register kContextRegister = {kRegister_r30_Code}; |
21 const Register kInterpreterBytecodeOffsetRegister = {kRegister_r14_Code}; | 21 const Register kInterpreterAccumulatorRegister = {kRegister_r3_Code}; |
22 const Register kInterpreterBytecodeArrayRegister = {kRegister_r15_Code}; | 22 const Register kInterpreterRegisterFileRegister = {kRegister_r14_Code}; |
23 const Register kInterpreterDispatchTableRegister = {kRegister_r16_Code}; | 23 const Register kInterpreterBytecodeOffsetRegister = {kRegister_r15_Code}; |
| 24 const Register kInterpreterBytecodeArrayRegister = {kRegister_r16_Code}; |
| 25 const Register kInterpreterDispatchTableRegister = {kRegister_r17_Code}; |
24 const Register kRuntimeCallFunctionRegister = {kRegister_r4_Code}; | 26 const Register kRuntimeCallFunctionRegister = {kRegister_r4_Code}; |
25 const Register kRuntimeCallArgCountRegister = {kRegister_r3_Code}; | 27 const Register kRuntimeCallArgCountRegister = {kRegister_r3_Code}; |
26 | 28 |
27 // ---------------------------------------------------------------------------- | 29 // ---------------------------------------------------------------------------- |
28 // Static helper functions | 30 // Static helper functions |
29 | 31 |
30 // Generate a MemOperand for loading a field from an object. | 32 // Generate a MemOperand for loading a field from an object. |
31 inline MemOperand FieldMemOperand(Register object, int offset) { | 33 inline MemOperand FieldMemOperand(Register object, int offset) { |
32 return MemOperand(object, offset - kHeapObjectTag); | 34 return MemOperand(object, offset - kHeapObjectTag); |
33 } | 35 } |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 #define ACCESS_MASM(masm) \ | 1580 #define ACCESS_MASM(masm) \ |
1579 masm->stop(__FILE_LINE__); \ | 1581 masm->stop(__FILE_LINE__); \ |
1580 masm-> | 1582 masm-> |
1581 #else | 1583 #else |
1582 #define ACCESS_MASM(masm) masm-> | 1584 #define ACCESS_MASM(masm) masm-> |
1583 #endif | 1585 #endif |
1584 } | 1586 } |
1585 } // namespace v8::internal | 1587 } // namespace v8::internal |
1586 | 1588 |
1587 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1589 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |