| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 V(GetProperty) \ | 94 V(GetProperty) \ |
| 95 V(SetProperty) \ | 95 V(SetProperty) \ |
| 96 V(InvokeBuiltin) \ | 96 V(InvokeBuiltin) \ |
| 97 V(DirectCEntry) \ | 97 V(DirectCEntry) \ |
| 98 V(StoreRegistersState) \ | 98 V(StoreRegistersState) \ |
| 99 V(RestoreRegistersState) | 99 V(RestoreRegistersState) |
| 100 #else | 100 #else |
| 101 #define CODE_STUB_LIST_ARM64(V) | 101 #define CODE_STUB_LIST_ARM64(V) |
| 102 #endif | 102 #endif |
| 103 | 103 |
| 104 // List of code stubs only used on PPC platforms. |
| 105 #ifdef V8_TARGET_ARCH_PPC |
| 106 #define CODE_STUB_LIST_PPC(V) \ |
| 107 V(GetProperty) \ |
| 108 V(SetProperty) \ |
| 109 V(InvokeBuiltin) \ |
| 110 V(DirectCEntry) |
| 111 #else |
| 112 #define CODE_STUB_LIST_PPC(V) |
| 113 #endif |
| 114 |
| 104 // List of code stubs only used on MIPS platforms. | 115 // List of code stubs only used on MIPS platforms. |
| 105 #if V8_TARGET_ARCH_MIPS | 116 #if V8_TARGET_ARCH_MIPS |
| 106 #define CODE_STUB_LIST_MIPS(V) \ | 117 #define CODE_STUB_LIST_MIPS(V) \ |
| 107 V(RegExpCEntry) \ | 118 V(RegExpCEntry) \ |
| 108 V(DirectCEntry) \ | 119 V(DirectCEntry) \ |
| 109 V(StoreRegistersState) \ | 120 V(StoreRegistersState) \ |
| 110 V(RestoreRegistersState) | 121 V(RestoreRegistersState) |
| 111 #elif V8_TARGET_ARCH_MIPS64 | 122 #elif V8_TARGET_ARCH_MIPS64 |
| 112 #define CODE_STUB_LIST_MIPS(V) \ | 123 #define CODE_STUB_LIST_MIPS(V) \ |
| 113 V(RegExpCEntry) \ | 124 V(RegExpCEntry) \ |
| 114 V(DirectCEntry) \ | 125 V(DirectCEntry) \ |
| 115 V(StoreRegistersState) \ | 126 V(StoreRegistersState) \ |
| 116 V(RestoreRegistersState) | 127 V(RestoreRegistersState) |
| 117 #else | 128 #else |
| 118 #define CODE_STUB_LIST_MIPS(V) | 129 #define CODE_STUB_LIST_MIPS(V) |
| 119 #endif | 130 #endif |
| 120 | 131 |
| 121 // Combined list of code stubs. | 132 // Combined list of code stubs. |
| 122 #define CODE_STUB_LIST(V) \ | 133 #define CODE_STUB_LIST(V) \ |
| 123 CODE_STUB_LIST_ALL_PLATFORMS(V) \ | 134 CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
| 124 CODE_STUB_LIST_ARM(V) \ | 135 CODE_STUB_LIST_ARM(V) \ |
| 125 CODE_STUB_LIST_ARM64(V) \ | 136 CODE_STUB_LIST_ARM64(V) \ |
| 137 CODE_STUB_LIST_PPC(V) \ |
| 126 CODE_STUB_LIST_MIPS(V) | 138 CODE_STUB_LIST_MIPS(V) |
| 127 | 139 |
| 128 // Stub is base classes of all stubs. | 140 // Stub is base classes of all stubs. |
| 129 class CodeStub BASE_EMBEDDED { | 141 class CodeStub BASE_EMBEDDED { |
| 130 public: | 142 public: |
| 131 enum Major { | 143 enum Major { |
| 132 UninitializedMajorKey = 0, | 144 UninitializedMajorKey = 0, |
| 133 #define DEF_ENUM(name) name, | 145 #define DEF_ENUM(name) name, |
| 134 CODE_STUB_LIST(DEF_ENUM) | 146 CODE_STUB_LIST(DEF_ENUM) |
| 135 #undef DEF_ENUM | 147 #undef DEF_ENUM |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 } } // namespace v8::internal | 512 } } // namespace v8::internal |
| 501 | 513 |
| 502 #if V8_TARGET_ARCH_IA32 | 514 #if V8_TARGET_ARCH_IA32 |
| 503 #include "src/ia32/code-stubs-ia32.h" | 515 #include "src/ia32/code-stubs-ia32.h" |
| 504 #elif V8_TARGET_ARCH_X64 | 516 #elif V8_TARGET_ARCH_X64 |
| 505 #include "src/x64/code-stubs-x64.h" | 517 #include "src/x64/code-stubs-x64.h" |
| 506 #elif V8_TARGET_ARCH_ARM64 | 518 #elif V8_TARGET_ARCH_ARM64 |
| 507 #include "src/arm64/code-stubs-arm64.h" | 519 #include "src/arm64/code-stubs-arm64.h" |
| 508 #elif V8_TARGET_ARCH_ARM | 520 #elif V8_TARGET_ARCH_ARM |
| 509 #include "src/arm/code-stubs-arm.h" | 521 #include "src/arm/code-stubs-arm.h" |
| 522 #elif V8_TARGET_ARCH_PPC |
| 523 #include "src/ppc/code-stubs-ppc.h" |
| 510 #elif V8_TARGET_ARCH_MIPS | 524 #elif V8_TARGET_ARCH_MIPS |
| 511 #include "src/mips/code-stubs-mips.h" | 525 #include "src/mips/code-stubs-mips.h" |
| 512 #elif V8_TARGET_ARCH_MIPS64 | 526 #elif V8_TARGET_ARCH_MIPS64 |
| 513 #include "src/mips64/code-stubs-mips64.h" | 527 #include "src/mips64/code-stubs-mips64.h" |
| 514 #elif V8_TARGET_ARCH_X87 | 528 #elif V8_TARGET_ARCH_X87 |
| 515 #include "src/x87/code-stubs-x87.h" | 529 #include "src/x87/code-stubs-x87.h" |
| 516 #else | 530 #else |
| 517 #error Unsupported target architecture. | 531 #error Unsupported target architecture. |
| 518 #endif | 532 #endif |
| 519 | 533 |
| (...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2529 | 2543 |
| 2530 | 2544 |
| 2531 class CallDescriptors { | 2545 class CallDescriptors { |
| 2532 public: | 2546 public: |
| 2533 static void InitializeForIsolate(Isolate* isolate); | 2547 static void InitializeForIsolate(Isolate* isolate); |
| 2534 }; | 2548 }; |
| 2535 | 2549 |
| 2536 } } // namespace v8::internal | 2550 } } // namespace v8::internal |
| 2537 | 2551 |
| 2538 #endif // V8_CODE_STUBS_H_ | 2552 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |