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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_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 // ---------------------------------------------------------------------------- | 16 // ---------------------------------------------------------------------------- |
17 // Static helper functions | 17 // Static helper functions |
18 | 18 |
19 // Generate a MemOperand for loading a field from an object. | 19 // Generate a MemOperand for loading a field from an object. |
20 inline MemOperand FieldMemOperand(Register object, int offset) { | 20 inline MemOperand FieldMemOperand(Register object, int offset) { |
21 return MemOperand(object, offset - kHeapObjectTag); | 21 return MemOperand(object, offset - kHeapObjectTag); |
22 } | 22 } |
23 | 23 |
24 | 24 |
25 // Give alias names to registers | 25 // Give alias names to registers |
26 const Register cp = { kRegister_r7_Code }; // JavaScript context pointer. | 26 const Register cp = { kRegister_r7_Code }; // JavaScript context pointer. |
27 const Register pp = { kRegister_r8_Code }; // Constant pool pointer. | 27 const Register pp = { kRegister_r8_Code }; // Constant pool pointer. |
28 const Register kRootRegister = { kRegister_r10_Code }; // Roots array pointer. | 28 const Register kRootRegister = { kRegister_r10_Code }; // Roots array pointer. |
| 29 const Register kInterpreterBytecodeOffsetRegister = { |
| 30 kRegister_r5_Code // Interpreter bytecode offset. |
| 31 }; |
| 32 const Register kInterpreterBytecodeArrayRegister = { |
| 33 kRegister_r6_Code // Interpreter bytecode array pointer. |
| 34 }; |
| 35 const Register kInterpreterDispatchTableRegister = { |
| 36 kRegister_r8_Code // Interpreter dispatch table. |
| 37 }; |
29 | 38 |
30 // Flags used for AllocateHeapNumber | 39 // Flags used for AllocateHeapNumber |
31 enum TaggingMode { | 40 enum TaggingMode { |
32 // Tag the result. | 41 // Tag the result. |
33 TAG_RESULT, | 42 TAG_RESULT, |
34 // Don't tag | 43 // Don't tag |
35 DONT_TAG_RESULT | 44 DONT_TAG_RESULT |
36 }; | 45 }; |
37 | 46 |
38 | 47 |
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1573 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1565 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1574 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1566 #else | 1575 #else |
1567 #define ACCESS_MASM(masm) masm-> | 1576 #define ACCESS_MASM(masm) masm-> |
1568 #endif | 1577 #endif |
1569 | 1578 |
1570 | 1579 |
1571 } } // namespace v8::internal | 1580 } } // namespace v8::internal |
1572 | 1581 |
1573 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1582 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |