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/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 V(JSEntry) \ | 37 V(JSEntry) \ |
38 V(LoadIndexedString) \ | 38 V(LoadIndexedString) \ |
39 V(MathPow) \ | 39 V(MathPow) \ |
40 V(ProfileEntryHook) \ | 40 V(ProfileEntryHook) \ |
41 V(RecordWrite) \ | 41 V(RecordWrite) \ |
42 V(RegExpExec) \ | 42 V(RegExpExec) \ |
43 V(StoreBufferOverflow) \ | 43 V(StoreBufferOverflow) \ |
44 V(StoreElement) \ | 44 V(StoreElement) \ |
45 V(SubString) \ | 45 V(SubString) \ |
46 V(ToString) \ | 46 V(ToString) \ |
47 V(ToName) \ | |
48 V(StoreIC) \ | 47 V(StoreIC) \ |
49 V(KeyedStoreIC) \ | 48 V(KeyedStoreIC) \ |
50 V(KeyedLoadIC) \ | 49 V(KeyedLoadIC) \ |
51 V(LoadIC) \ | 50 V(LoadIC) \ |
52 V(LoadGlobalIC) \ | 51 V(LoadGlobalIC) \ |
53 V(FastNewObject) \ | 52 V(FastNewObject) \ |
54 V(FastNewRestParameter) \ | 53 V(FastNewRestParameter) \ |
55 V(FastNewSloppyArguments) \ | 54 V(FastNewSloppyArguments) \ |
56 V(FastNewStrictArguments) \ | 55 V(FastNewStrictArguments) \ |
57 V(NameDictionaryLookup) \ | 56 V(NameDictionaryLookup) \ |
(...skipping 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3196 }; | 3195 }; |
3197 | 3196 |
3198 class ToStringStub final : public PlatformCodeStub { | 3197 class ToStringStub final : public PlatformCodeStub { |
3199 public: | 3198 public: |
3200 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 3199 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
3201 | 3200 |
3202 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3201 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
3203 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); | 3202 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); |
3204 }; | 3203 }; |
3205 | 3204 |
3206 class ToNameStub final : public PlatformCodeStub { | |
3207 public: | |
3208 explicit ToNameStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | |
3209 | |
3210 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | |
3211 DEFINE_PLATFORM_CODE_STUB(ToName, PlatformCodeStub); | |
3212 }; | |
3213 | |
3214 class ToObjectStub final : public TurboFanCodeStub { | 3205 class ToObjectStub final : public TurboFanCodeStub { |
3215 public: | 3206 public: |
3216 explicit ToObjectStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 3207 explicit ToObjectStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
3217 | 3208 |
3218 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3209 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
3219 DEFINE_TURBOFAN_CODE_STUB(ToObject, TurboFanCodeStub); | 3210 DEFINE_TURBOFAN_CODE_STUB(ToObject, TurboFanCodeStub); |
3220 }; | 3211 }; |
3221 | 3212 |
3222 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 3213 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
3223 #undef DEFINE_PLATFORM_CODE_STUB | 3214 #undef DEFINE_PLATFORM_CODE_STUB |
3224 #undef DEFINE_HANDLER_CODE_STUB | 3215 #undef DEFINE_HANDLER_CODE_STUB |
3225 #undef DEFINE_HYDROGEN_CODE_STUB | 3216 #undef DEFINE_HYDROGEN_CODE_STUB |
3226 #undef DEFINE_CODE_STUB | 3217 #undef DEFINE_CODE_STUB |
3227 #undef DEFINE_CODE_STUB_BASE | 3218 #undef DEFINE_CODE_STUB_BASE |
3228 | 3219 |
3229 extern Representation RepresentationFromMachineType(MachineType type); | 3220 extern Representation RepresentationFromMachineType(MachineType type); |
3230 | 3221 |
3231 } // namespace internal | 3222 } // namespace internal |
3232 } // namespace v8 | 3223 } // namespace v8 |
3233 | 3224 |
3234 #endif // V8_CODE_STUBS_H_ | 3225 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |