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. |
| 17 const Register kReturnRegister0 = {kRegister_r3_Code}; |
| 18 const Register kReturnRegister1 = {kRegister_r4_Code}; |
| 19 const Register kJSFunctionRegister = {kRegister_r4_Code}; |
| 20 const Register kContextRegister = {kRegister_r30_Code}; |
| 21 const Register kInterpreterBytecodeOffsetRegister = {kRegister_r14_Code}; |
| 22 const Register kInterpreterBytecodeArrayRegister = {kRegister_r15_Code}; |
| 23 const Register kInterpreterDispatchTableRegister = {kRegister_r16_Code}; |
| 24 const Register kRuntimeCallFunctionRegister = {kRegister_r4_Code}; |
| 25 const Register kRuntimeCallArgCountRegister = {kRegister_r3_Code}; |
| 26 |
16 // ---------------------------------------------------------------------------- | 27 // ---------------------------------------------------------------------------- |
17 // Static helper functions | 28 // Static helper functions |
18 | 29 |
19 // Generate a MemOperand for loading a field from an object. | 30 // Generate a MemOperand for loading a field from an object. |
20 inline MemOperand FieldMemOperand(Register object, int offset) { | 31 inline MemOperand FieldMemOperand(Register object, int offset) { |
21 return MemOperand(object, offset - kHeapObjectTag); | 32 return MemOperand(object, offset - kHeapObjectTag); |
22 } | 33 } |
23 | 34 |
24 | 35 |
25 // Flags used for AllocateHeapNumber | 36 // Flags used for AllocateHeapNumber |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 #define ACCESS_MASM(masm) \ | 1578 #define ACCESS_MASM(masm) \ |
1568 masm->stop(__FILE_LINE__); \ | 1579 masm->stop(__FILE_LINE__); \ |
1569 masm-> | 1580 masm-> |
1570 #else | 1581 #else |
1571 #define ACCESS_MASM(masm) masm-> | 1582 #define ACCESS_MASM(masm) masm-> |
1572 #endif | 1583 #endif |
1573 } | 1584 } |
1574 } // namespace v8::internal | 1585 } // namespace v8::internal |
1575 | 1586 |
1576 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1587 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |