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_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 V(LoadConstant) \ | 85 V(LoadConstant) \ |
86 V(LoadField) \ | 86 V(LoadField) \ |
87 V(KeyedLoadSloppyArguments) \ | 87 V(KeyedLoadSloppyArguments) \ |
88 V(StoreField) \ | 88 V(StoreField) \ |
89 V(StoreGlobal) \ | 89 V(StoreGlobal) \ |
90 V(StoreTransition) \ | 90 V(StoreTransition) \ |
91 V(StringLength) | 91 V(StringLength) |
92 | 92 |
93 // List of code stubs only used on ARM 32 bits platforms. | 93 // List of code stubs only used on ARM 32 bits platforms. |
94 #if V8_TARGET_ARCH_ARM | 94 #if V8_TARGET_ARCH_ARM |
95 #define CODE_STUB_LIST_ARM(V) \ | 95 #define CODE_STUB_LIST_ARM(V) V(DirectCEntry) |
96 V(DirectCEntry) \ | |
97 V(WriteInt32ToHeapNumber) | |
98 | 96 |
99 #else | 97 #else |
100 #define CODE_STUB_LIST_ARM(V) | 98 #define CODE_STUB_LIST_ARM(V) |
101 #endif | 99 #endif |
102 | 100 |
103 // List of code stubs only used on ARM 64 bits platforms. | 101 // List of code stubs only used on ARM 64 bits platforms. |
104 #if V8_TARGET_ARCH_ARM64 | 102 #if V8_TARGET_ARCH_ARM64 |
105 #define CODE_STUB_LIST_ARM64(V) \ | 103 #define CODE_STUB_LIST_ARM64(V) \ |
106 V(DirectCEntry) \ | 104 V(DirectCEntry) \ |
107 V(RestoreRegistersState) \ | 105 V(RestoreRegistersState) \ |
108 V(StoreRegistersState) | 106 V(StoreRegistersState) |
109 | 107 |
110 #else | 108 #else |
111 #define CODE_STUB_LIST_ARM64(V) | 109 #define CODE_STUB_LIST_ARM64(V) |
112 #endif | 110 #endif |
113 | 111 |
114 // List of code stubs only used on MIPS platforms. | 112 // List of code stubs only used on MIPS platforms. |
115 #if V8_TARGET_ARCH_MIPS | 113 #if V8_TARGET_ARCH_MIPS |
116 #define CODE_STUB_LIST_MIPS(V) \ | 114 #define CODE_STUB_LIST_MIPS(V) \ |
117 V(DirectCEntry) \ | 115 V(DirectCEntry) \ |
118 V(RestoreRegistersState) \ | 116 V(RestoreRegistersState) \ |
119 V(StoreRegistersState) \ | 117 V(StoreRegistersState) |
120 V(WriteInt32ToHeapNumber) | |
121 #elif V8_TARGET_ARCH_MIPS64 | 118 #elif V8_TARGET_ARCH_MIPS64 |
122 #define CODE_STUB_LIST_MIPS(V) \ | 119 #define CODE_STUB_LIST_MIPS(V) \ |
123 V(DirectCEntry) \ | 120 V(DirectCEntry) \ |
124 V(RestoreRegistersState) \ | 121 V(RestoreRegistersState) \ |
125 V(StoreRegistersState) \ | 122 V(StoreRegistersState) |
126 V(WriteInt32ToHeapNumber) | |
127 #else | 123 #else |
128 #define CODE_STUB_LIST_MIPS(V) | 124 #define CODE_STUB_LIST_MIPS(V) |
129 #endif | 125 #endif |
130 | 126 |
131 // Combined list of code stubs. | 127 // Combined list of code stubs. |
132 #define CODE_STUB_LIST(V) \ | 128 #define CODE_STUB_LIST(V) \ |
133 CODE_STUB_LIST_ALL_PLATFORMS(V) \ | 129 CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
134 CODE_STUB_LIST_ARM(V) \ | 130 CODE_STUB_LIST_ARM(V) \ |
135 CODE_STUB_LIST_ARM64(V) \ | 131 CODE_STUB_LIST_ARM64(V) \ |
136 CODE_STUB_LIST_MIPS(V) | 132 CODE_STUB_LIST_MIPS(V) |
(...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2552 | 2548 |
2553 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2549 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
2554 #undef DEFINE_PLATFORM_CODE_STUB | 2550 #undef DEFINE_PLATFORM_CODE_STUB |
2555 #undef DEFINE_HANDLER_CODE_STUB | 2551 #undef DEFINE_HANDLER_CODE_STUB |
2556 #undef DEFINE_HYDROGEN_CODE_STUB | 2552 #undef DEFINE_HYDROGEN_CODE_STUB |
2557 #undef DEFINE_CODE_STUB | 2553 #undef DEFINE_CODE_STUB |
2558 #undef DEFINE_CODE_STUB_BASE | 2554 #undef DEFINE_CODE_STUB_BASE |
2559 } } // namespace v8::internal | 2555 } } // namespace v8::internal |
2560 | 2556 |
2561 #endif // V8_CODE_STUBS_H_ | 2557 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |