| 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 27 matching lines...) Expand all Loading... |
| 38 V(CallICTrampoline) \ | 38 V(CallICTrampoline) \ |
| 39 V(LoadIndexedString) \ | 39 V(LoadIndexedString) \ |
| 40 V(MathPow) \ | 40 V(MathPow) \ |
| 41 V(ProfileEntryHook) \ | 41 V(ProfileEntryHook) \ |
| 42 V(RecordWrite) \ | 42 V(RecordWrite) \ |
| 43 V(RegExpExec) \ | 43 V(RegExpExec) \ |
| 44 V(StoreBufferOverflow) \ | 44 V(StoreBufferOverflow) \ |
| 45 V(StoreElement) \ | 45 V(StoreElement) \ |
| 46 V(StubFailureTrampoline) \ | 46 V(StubFailureTrampoline) \ |
| 47 V(SubString) \ | 47 V(SubString) \ |
| 48 V(ToNumber) \ | |
| 49 V(NonNumberToNumber) \ | |
| 50 V(ToString) \ | 48 V(ToString) \ |
| 51 V(ToName) \ | 49 V(ToName) \ |
| 52 V(ToObject) \ | 50 V(ToObject) \ |
| 53 V(VectorStoreICTrampoline) \ | 51 V(VectorStoreICTrampoline) \ |
| 54 V(VectorKeyedStoreICTrampoline) \ | 52 V(VectorKeyedStoreICTrampoline) \ |
| 55 V(VectorStoreIC) \ | 53 V(VectorStoreIC) \ |
| 56 V(VectorKeyedStoreIC) \ | 54 V(VectorKeyedStoreIC) \ |
| 57 /* HydrogenCodeStubs */ \ | 55 /* HydrogenCodeStubs */ \ |
| 58 V(ArrayNArgumentsConstructor) \ | 56 V(ArrayNArgumentsConstructor) \ |
| 59 V(BinaryOpIC) \ | 57 V(BinaryOpIC) \ |
| (...skipping 3148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3208 | 3206 |
| 3209 | 3207 |
| 3210 class SubStringStub : public PlatformCodeStub { | 3208 class SubStringStub : public PlatformCodeStub { |
| 3211 public: | 3209 public: |
| 3212 explicit SubStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 3210 explicit SubStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 3213 | 3211 |
| 3214 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); | 3212 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); |
| 3215 DEFINE_PLATFORM_CODE_STUB(SubString, PlatformCodeStub); | 3213 DEFINE_PLATFORM_CODE_STUB(SubString, PlatformCodeStub); |
| 3216 }; | 3214 }; |
| 3217 | 3215 |
| 3218 | |
| 3219 class ToNumberStub final : public PlatformCodeStub { | |
| 3220 public: | |
| 3221 explicit ToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | |
| 3222 | |
| 3223 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | |
| 3224 DEFINE_PLATFORM_CODE_STUB(ToNumber, PlatformCodeStub); | |
| 3225 }; | |
| 3226 | |
| 3227 class NonNumberToNumberStub final : public PlatformCodeStub { | |
| 3228 public: | |
| 3229 explicit NonNumberToNumberStub(Isolate* isolate) | |
| 3230 : PlatformCodeStub(isolate) {} | |
| 3231 | |
| 3232 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | |
| 3233 DEFINE_PLATFORM_CODE_STUB(NonNumberToNumber, PlatformCodeStub); | |
| 3234 }; | |
| 3235 | |
| 3236 class ToStringStub final : public PlatformCodeStub { | 3216 class ToStringStub final : public PlatformCodeStub { |
| 3237 public: | 3217 public: |
| 3238 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 3218 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 3239 | 3219 |
| 3240 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3220 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 3241 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); | 3221 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); |
| 3242 }; | 3222 }; |
| 3243 | 3223 |
| 3244 | |
| 3245 class ToNameStub final : public PlatformCodeStub { | 3224 class ToNameStub final : public PlatformCodeStub { |
| 3246 public: | 3225 public: |
| 3247 explicit ToNameStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 3226 explicit ToNameStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 3248 | 3227 |
| 3249 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3228 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 3250 DEFINE_PLATFORM_CODE_STUB(ToName, PlatformCodeStub); | 3229 DEFINE_PLATFORM_CODE_STUB(ToName, PlatformCodeStub); |
| 3251 }; | 3230 }; |
| 3252 | 3231 |
| 3253 | 3232 |
| 3254 class ToObjectStub final : public HydrogenCodeStub { | 3233 class ToObjectStub final : public HydrogenCodeStub { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3265 #undef DEFINE_HYDROGEN_CODE_STUB | 3244 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3266 #undef DEFINE_CODE_STUB | 3245 #undef DEFINE_CODE_STUB |
| 3267 #undef DEFINE_CODE_STUB_BASE | 3246 #undef DEFINE_CODE_STUB_BASE |
| 3268 | 3247 |
| 3269 extern Representation RepresentationFromType(Type* type); | 3248 extern Representation RepresentationFromType(Type* type); |
| 3270 | 3249 |
| 3271 } // namespace internal | 3250 } // namespace internal |
| 3272 } // namespace v8 | 3251 } // namespace v8 |
| 3273 | 3252 |
| 3274 #endif // V8_CODE_STUBS_H_ | 3253 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |