| 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 27 matching lines...) Expand all Loading... |
| 38 V(CallConstruct) \ | 38 V(CallConstruct) \ |
| 39 V(CallIC) \ | 39 V(CallIC) \ |
| 40 V(CEntry) \ | 40 V(CEntry) \ |
| 41 V(CompareIC) \ | 41 V(CompareIC) \ |
| 42 V(DoubleToI) \ | 42 V(DoubleToI) \ |
| 43 V(InternalArrayConstructor) \ | 43 V(InternalArrayConstructor) \ |
| 44 V(JSEntry) \ | 44 V(JSEntry) \ |
| 45 V(MathPow) \ | 45 V(MathPow) \ |
| 46 V(ProfileEntryHook) \ | 46 V(ProfileEntryHook) \ |
| 47 V(RecordWrite) \ | 47 V(RecordWrite) \ |
| 48 V(RegExpExec) \ | |
| 49 V(StoreBufferOverflow) \ | 48 V(StoreBufferOverflow) \ |
| 50 V(StoreSlowElement) \ | 49 V(StoreSlowElement) \ |
| 51 V(SubString) \ | 50 V(SubString) \ |
| 52 V(NameDictionaryLookup) \ | 51 V(NameDictionaryLookup) \ |
| 53 /* This can be removed once there are no */ \ | 52 /* This can be removed once there are no */ \ |
| 54 /* more deopting Hydrogen stubs. */ \ | 53 /* more deopting Hydrogen stubs. */ \ |
| 55 V(StubFailureTrampoline) \ | 54 V(StubFailureTrampoline) \ |
| 56 /* These are only called from FCG */ \ | 55 /* These are only called from FCG */ \ |
| 57 /* They can be removed when only the TF */ \ | 56 /* They can be removed when only the TF */ \ |
| 58 /* version of the corresponding stub is */ \ | 57 /* version of the corresponding stub is */ \ |
| (...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 } | 1128 } |
| 1130 | 1129 |
| 1131 class StackFrameTypeBits : public BitField<StackFrame::Type, 0, 5> {}; | 1130 class StackFrameTypeBits : public BitField<StackFrame::Type, 0, 5> {}; |
| 1132 | 1131 |
| 1133 int handler_offset_; | 1132 int handler_offset_; |
| 1134 | 1133 |
| 1135 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 1134 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
| 1136 DEFINE_PLATFORM_CODE_STUB(JSEntry, PlatformCodeStub); | 1135 DEFINE_PLATFORM_CODE_STUB(JSEntry, PlatformCodeStub); |
| 1137 }; | 1136 }; |
| 1138 | 1137 |
| 1139 | |
| 1140 class RegExpExecStub: public PlatformCodeStub { | |
| 1141 public: | |
| 1142 explicit RegExpExecStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | |
| 1143 | |
| 1144 DEFINE_CALL_INTERFACE_DESCRIPTOR(RegExpExec); | |
| 1145 DEFINE_PLATFORM_CODE_STUB(RegExpExec, PlatformCodeStub); | |
| 1146 }; | |
| 1147 | |
| 1148 // TODO(bmeurer/mvstanton): Turn CallConstructStub into ConstructICStub. | 1138 // TODO(bmeurer/mvstanton): Turn CallConstructStub into ConstructICStub. |
| 1149 class CallConstructStub final : public PlatformCodeStub { | 1139 class CallConstructStub final : public PlatformCodeStub { |
| 1150 public: | 1140 public: |
| 1151 explicit CallConstructStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 1141 explicit CallConstructStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 1152 | 1142 |
| 1153 DEFINE_CALL_INTERFACE_DESCRIPTOR(CallConstruct); | 1143 DEFINE_CALL_INTERFACE_DESCRIPTOR(CallConstruct); |
| 1154 DEFINE_PLATFORM_CODE_STUB(CallConstruct, PlatformCodeStub); | 1144 DEFINE_PLATFORM_CODE_STUB(CallConstruct, PlatformCodeStub); |
| 1155 }; | 1145 }; |
| 1156 | 1146 |
| 1157 | 1147 |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1700 #undef DEFINE_PLATFORM_CODE_STUB | 1690 #undef DEFINE_PLATFORM_CODE_STUB |
| 1701 #undef DEFINE_HANDLER_CODE_STUB | 1691 #undef DEFINE_HANDLER_CODE_STUB |
| 1702 #undef DEFINE_HYDROGEN_CODE_STUB | 1692 #undef DEFINE_HYDROGEN_CODE_STUB |
| 1703 #undef DEFINE_CODE_STUB | 1693 #undef DEFINE_CODE_STUB |
| 1704 #undef DEFINE_CODE_STUB_BASE | 1694 #undef DEFINE_CODE_STUB_BASE |
| 1705 | 1695 |
| 1706 } // namespace internal | 1696 } // namespace internal |
| 1707 } // namespace v8 | 1697 } // namespace v8 |
| 1708 | 1698 |
| 1709 #endif // V8_CODE_STUBS_H_ | 1699 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |