| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 V(ProfileEntryHook) \ | 93 V(ProfileEntryHook) \ |
| 94 V(StoreGlobal) \ | 94 V(StoreGlobal) \ |
| 95 V(CallApiFunction) \ | 95 V(CallApiFunction) \ |
| 96 V(CallApiGetter) \ | 96 V(CallApiGetter) \ |
| 97 /* IC Handler stubs */ \ | 97 /* IC Handler stubs */ \ |
| 98 V(LoadField) \ | 98 V(LoadField) \ |
| 99 V(KeyedLoadField) \ | 99 V(KeyedLoadField) \ |
| 100 V(StringLength) \ | 100 V(StringLength) \ |
| 101 V(KeyedStringLength) | 101 V(KeyedStringLength) |
| 102 | 102 |
| 103 // List of code stubs only used on ARM platforms. | 103 // List of code stubs only used on ARM 32 bits platforms. |
| 104 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_ARM64) | 104 #if V8_TARGET_ARCH_ARM |
| 105 #define CODE_STUB_LIST_ARM(V) \ | 105 #define CODE_STUB_LIST_ARM(V) \ |
| 106 V(GetProperty) \ | 106 V(GetProperty) \ |
| 107 V(SetProperty) \ | 107 V(SetProperty) \ |
| 108 V(InvokeBuiltin) \ | 108 V(InvokeBuiltin) \ |
| 109 V(DirectCEntry) | 109 V(DirectCEntry) |
| 110 #else | 110 #else |
| 111 #define CODE_STUB_LIST_ARM(V) | 111 #define CODE_STUB_LIST_ARM(V) |
| 112 #endif | 112 #endif |
| 113 | 113 |
| 114 // List of code stubs only used on ARM 64 bits platforms. |
| 115 #if V8_TARGET_ARCH_ARM64 |
| 116 #define CODE_STUB_LIST_ARM64(V) \ |
| 117 V(GetProperty) \ |
| 118 V(SetProperty) \ |
| 119 V(InvokeBuiltin) \ |
| 120 V(DirectCEntry) \ |
| 121 V(StoreRegistersState) \ |
| 122 V(RestoreRegistersState) |
| 123 #else |
| 124 #define CODE_STUB_LIST_ARM64(V) |
| 125 #endif |
| 126 |
| 114 // List of code stubs only used on MIPS platforms. | 127 // List of code stubs only used on MIPS platforms. |
| 115 #if V8_TARGET_ARCH_MIPS | 128 #if V8_TARGET_ARCH_MIPS |
| 116 #define CODE_STUB_LIST_MIPS(V) \ | 129 #define CODE_STUB_LIST_MIPS(V) \ |
| 117 V(RegExpCEntry) \ | 130 V(RegExpCEntry) \ |
| 118 V(DirectCEntry) \ | 131 V(DirectCEntry) \ |
| 119 V(StoreRegistersState) \ | 132 V(StoreRegistersState) \ |
| 120 V(RestoreRegistersState) | 133 V(RestoreRegistersState) |
| 121 #else | 134 #else |
| 122 #define CODE_STUB_LIST_MIPS(V) | 135 #define CODE_STUB_LIST_MIPS(V) |
| 123 #endif | 136 #endif |
| 124 | 137 |
| 125 // Combined list of code stubs. | 138 // Combined list of code stubs. |
| 126 #define CODE_STUB_LIST(V) \ | 139 #define CODE_STUB_LIST(V) \ |
| 127 CODE_STUB_LIST_ALL_PLATFORMS(V) \ | 140 CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
| 128 CODE_STUB_LIST_ARM(V) \ | 141 CODE_STUB_LIST_ARM(V) \ |
| 142 CODE_STUB_LIST_ARM64(V) \ |
| 129 CODE_STUB_LIST_MIPS(V) | 143 CODE_STUB_LIST_MIPS(V) |
| 130 | 144 |
| 131 // Stub is base classes of all stubs. | 145 // Stub is base classes of all stubs. |
| 132 class CodeStub BASE_EMBEDDED { | 146 class CodeStub BASE_EMBEDDED { |
| 133 public: | 147 public: |
| 134 enum Major { | 148 enum Major { |
| 135 UninitializedMajorKey = 0, | 149 UninitializedMajorKey = 0, |
| 136 #define DEF_ENUM(name) name, | 150 #define DEF_ENUM(name) name, |
| 137 CODE_STUB_LIST(DEF_ENUM) | 151 CODE_STUB_LIST(DEF_ENUM) |
| 138 #undef DEF_ENUM | 152 #undef DEF_ENUM |
| (...skipping 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2510 | 2524 |
| 2511 | 2525 |
| 2512 class CallDescriptors { | 2526 class CallDescriptors { |
| 2513 public: | 2527 public: |
| 2514 static void InitializeForIsolate(Isolate* isolate); | 2528 static void InitializeForIsolate(Isolate* isolate); |
| 2515 }; | 2529 }; |
| 2516 | 2530 |
| 2517 } } // namespace v8::internal | 2531 } } // namespace v8::internal |
| 2518 | 2532 |
| 2519 #endif // V8_CODE_STUBS_H_ | 2533 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |