| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 V(ProfileEntryHook) \ | 42 V(ProfileEntryHook) \ |
| 43 V(RecordWrite) \ | 43 V(RecordWrite) \ |
| 44 V(RegExpExec) \ | 44 V(RegExpExec) \ |
| 45 V(StoreBufferOverflow) \ | 45 V(StoreBufferOverflow) \ |
| 46 V(StoreElement) \ | 46 V(StoreElement) \ |
| 47 V(StubFailureTrampoline) \ | 47 V(StubFailureTrampoline) \ |
| 48 V(SubString) \ | 48 V(SubString) \ |
| 49 V(ToNumber) \ | 49 V(ToNumber) \ |
| 50 V(NonNumberToNumber) \ | 50 V(NonNumberToNumber) \ |
| 51 V(StringToNumber) \ | 51 V(StringToNumber) \ |
| 52 V(ToLength) \ | |
| 53 V(ToString) \ | 52 V(ToString) \ |
| 54 V(ToName) \ | 53 V(ToName) \ |
| 55 V(ToObject) \ | 54 V(ToObject) \ |
| 56 V(VectorStoreICTrampoline) \ | 55 V(VectorStoreICTrampoline) \ |
| 57 V(VectorKeyedStoreICTrampoline) \ | 56 V(VectorKeyedStoreICTrampoline) \ |
| 58 V(VectorStoreIC) \ | 57 V(VectorStoreIC) \ |
| 59 V(VectorKeyedStoreIC) \ | 58 V(VectorKeyedStoreIC) \ |
| 60 /* HydrogenCodeStubs */ \ | 59 /* HydrogenCodeStubs */ \ |
| 61 V(AllocateInNewSpace) \ | 60 V(AllocateInNewSpace) \ |
| 62 V(ArrayNArgumentsConstructor) \ | 61 V(ArrayNArgumentsConstructor) \ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 V(NotEqual) \ | 123 V(NotEqual) \ |
| 125 V(StrictEqual) \ | 124 V(StrictEqual) \ |
| 126 V(StrictNotEqual) \ | 125 V(StrictNotEqual) \ |
| 127 V(StringEqual) \ | 126 V(StringEqual) \ |
| 128 V(StringNotEqual) \ | 127 V(StringNotEqual) \ |
| 129 V(StringLessThan) \ | 128 V(StringLessThan) \ |
| 130 V(StringLessThanOrEqual) \ | 129 V(StringLessThanOrEqual) \ |
| 131 V(StringGreaterThan) \ | 130 V(StringGreaterThan) \ |
| 132 V(StringGreaterThanOrEqual) \ | 131 V(StringGreaterThanOrEqual) \ |
| 133 V(ToBoolean) \ | 132 V(ToBoolean) \ |
| 133 V(ToLength) \ |
| 134 /* IC Handler stubs */ \ | 134 /* IC Handler stubs */ \ |
| 135 V(ArrayBufferViewLoadField) \ | 135 V(ArrayBufferViewLoadField) \ |
| 136 V(LoadConstant) \ | 136 V(LoadConstant) \ |
| 137 V(LoadFastElement) \ | 137 V(LoadFastElement) \ |
| 138 V(LoadField) \ | 138 V(LoadField) \ |
| 139 V(LoadIndexedInterceptor) \ | 139 V(LoadIndexedInterceptor) \ |
| 140 V(KeyedLoadSloppyArguments) \ | 140 V(KeyedLoadSloppyArguments) \ |
| 141 V(KeyedStoreSloppyArguments) \ | 141 V(KeyedStoreSloppyArguments) \ |
| 142 V(StoreField) \ | 142 V(StoreField) \ |
| 143 V(StoreInterceptor) \ | 143 V(StoreInterceptor) \ |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 }; | 829 }; |
| 830 | 830 |
| 831 class ToBooleanStub final : public TurboFanCodeStub { | 831 class ToBooleanStub final : public TurboFanCodeStub { |
| 832 public: | 832 public: |
| 833 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 833 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 834 | 834 |
| 835 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 835 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 836 DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); | 836 DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); |
| 837 }; | 837 }; |
| 838 | 838 |
| 839 class ToLengthStub final : public TurboFanCodeStub { |
| 840 public: |
| 841 explicit ToLengthStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 842 |
| 843 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 844 DEFINE_TURBOFAN_CODE_STUB(ToLength, TurboFanCodeStub); |
| 845 }; |
| 846 |
| 839 class StoreInterceptorStub : public TurboFanCodeStub { | 847 class StoreInterceptorStub : public TurboFanCodeStub { |
| 840 public: | 848 public: |
| 841 explicit StoreInterceptorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 849 explicit StoreInterceptorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 842 | 850 |
| 843 void GenerateAssembly(compiler::CodeStubAssembler* assember) const override; | 851 void GenerateAssembly(compiler::CodeStubAssembler* assember) const override; |
| 844 | 852 |
| 845 Code::Kind GetCodeKind() const override { return Code::HANDLER; } | 853 Code::Kind GetCodeKind() const override { return Code::HANDLER; } |
| 846 | 854 |
| 847 DEFINE_CALL_INTERFACE_DESCRIPTOR(Store); | 855 DEFINE_CALL_INTERFACE_DESCRIPTOR(Store); |
| 848 DEFINE_CODE_STUB(StoreInterceptor, TurboFanCodeStub); | 856 DEFINE_CODE_STUB(StoreInterceptor, TurboFanCodeStub); |
| (...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3046 }; | 3054 }; |
| 3047 | 3055 |
| 3048 class StringToNumberStub final : public PlatformCodeStub { | 3056 class StringToNumberStub final : public PlatformCodeStub { |
| 3049 public: | 3057 public: |
| 3050 explicit StringToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 3058 explicit StringToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 3051 | 3059 |
| 3052 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3060 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 3053 DEFINE_PLATFORM_CODE_STUB(StringToNumber, PlatformCodeStub); | 3061 DEFINE_PLATFORM_CODE_STUB(StringToNumber, PlatformCodeStub); |
| 3054 }; | 3062 }; |
| 3055 | 3063 |
| 3056 class ToLengthStub final : public PlatformCodeStub { | |
| 3057 public: | |
| 3058 explicit ToLengthStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | |
| 3059 | |
| 3060 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | |
| 3061 DEFINE_PLATFORM_CODE_STUB(ToLength, PlatformCodeStub); | |
| 3062 }; | |
| 3063 | |
| 3064 | 3064 |
| 3065 class ToStringStub final : public PlatformCodeStub { | 3065 class ToStringStub final : public PlatformCodeStub { |
| 3066 public: | 3066 public: |
| 3067 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 3067 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 3068 | 3068 |
| 3069 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3069 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 3070 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); | 3070 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); |
| 3071 }; | 3071 }; |
| 3072 | 3072 |
| 3073 | 3073 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3094 #undef DEFINE_HYDROGEN_CODE_STUB | 3094 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3095 #undef DEFINE_CODE_STUB | 3095 #undef DEFINE_CODE_STUB |
| 3096 #undef DEFINE_CODE_STUB_BASE | 3096 #undef DEFINE_CODE_STUB_BASE |
| 3097 | 3097 |
| 3098 extern Representation RepresentationFromType(Type* type); | 3098 extern Representation RepresentationFromType(Type* type); |
| 3099 | 3099 |
| 3100 } // namespace internal | 3100 } // namespace internal |
| 3101 } // namespace v8 | 3101 } // namespace v8 |
| 3102 | 3102 |
| 3103 #endif // V8_CODE_STUBS_H_ | 3103 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |