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