| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 /* IC Handler stubs */ \ | 101 /* IC Handler stubs */ \ |
| 102 V(ArrayBufferViewLoadField) \ | 102 V(ArrayBufferViewLoadField) \ |
| 103 V(LoadConstant) \ | 103 V(LoadConstant) \ |
| 104 V(LoadFastElement) \ | 104 V(LoadFastElement) \ |
| 105 V(LoadField) \ | 105 V(LoadField) \ |
| 106 V(KeyedLoadSloppyArguments) \ | 106 V(KeyedLoadSloppyArguments) \ |
| 107 V(KeyedStoreSloppyArguments) \ | 107 V(KeyedStoreSloppyArguments) \ |
| 108 V(StoreField) \ | 108 V(StoreField) \ |
| 109 V(StoreGlobal) \ | 109 V(StoreGlobal) \ |
| 110 V(StoreTransition) \ | 110 V(StoreTransition) \ |
| 111 V(StringLength) \ | 111 V(StringLength) |
| 112 V(RestParamAccess) | |
| 113 | 112 |
| 114 // List of code stubs only used on ARM 32 bits platforms. | 113 // List of code stubs only used on ARM 32 bits platforms. |
| 115 #if V8_TARGET_ARCH_ARM | 114 #if V8_TARGET_ARCH_ARM |
| 116 #define CODE_STUB_LIST_ARM(V) V(DirectCEntry) | 115 #define CODE_STUB_LIST_ARM(V) V(DirectCEntry) |
| 117 | 116 |
| 118 #else | 117 #else |
| 119 #define CODE_STUB_LIST_ARM(V) | 118 #define CODE_STUB_LIST_ARM(V) |
| 120 #endif | 119 #endif |
| 121 | 120 |
| 122 // List of code stubs only used on ARM 64 bits platforms. | 121 // List of code stubs only used on ARM 64 bits platforms. |
| (...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1908 void GenerateNewSloppySlow(MacroAssembler* masm); | 1907 void GenerateNewSloppySlow(MacroAssembler* masm); |
| 1909 | 1908 |
| 1910 void PrintName(std::ostream& os) const override; // NOLINT | 1909 void PrintName(std::ostream& os) const override; // NOLINT |
| 1911 | 1910 |
| 1912 class TypeBits : public BitField<Type, 0, 2> {}; | 1911 class TypeBits : public BitField<Type, 0, 2> {}; |
| 1913 | 1912 |
| 1914 DEFINE_PLATFORM_CODE_STUB(ArgumentsAccess, PlatformCodeStub); | 1913 DEFINE_PLATFORM_CODE_STUB(ArgumentsAccess, PlatformCodeStub); |
| 1915 }; | 1914 }; |
| 1916 | 1915 |
| 1917 | 1916 |
| 1918 class RestParamAccessStub: public PlatformCodeStub { | |
| 1919 public: | |
| 1920 explicit RestParamAccessStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | |
| 1921 | |
| 1922 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { | |
| 1923 return ContextOnlyDescriptor(isolate()); | |
| 1924 } | |
| 1925 | |
| 1926 private: | |
| 1927 void GenerateNew(MacroAssembler* masm); | |
| 1928 | |
| 1929 void PrintName(std::ostream& os) const override; // NOLINT | |
| 1930 | |
| 1931 DEFINE_PLATFORM_CODE_STUB(RestParamAccess, PlatformCodeStub); | |
| 1932 }; | |
| 1933 | |
| 1934 | |
| 1935 class RegExpExecStub: public PlatformCodeStub { | 1917 class RegExpExecStub: public PlatformCodeStub { |
| 1936 public: | 1918 public: |
| 1937 explicit RegExpExecStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | 1919 explicit RegExpExecStub(Isolate* isolate) : PlatformCodeStub(isolate) { } |
| 1938 | 1920 |
| 1939 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); | 1921 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); |
| 1940 DEFINE_PLATFORM_CODE_STUB(RegExpExec, PlatformCodeStub); | 1922 DEFINE_PLATFORM_CODE_STUB(RegExpExec, PlatformCodeStub); |
| 1941 }; | 1923 }; |
| 1942 | 1924 |
| 1943 | 1925 |
| 1944 class RegExpConstructResultStub final : public HydrogenCodeStub { | 1926 class RegExpConstructResultStub final : public HydrogenCodeStub { |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3083 #undef DEFINE_PLATFORM_CODE_STUB | 3065 #undef DEFINE_PLATFORM_CODE_STUB |
| 3084 #undef DEFINE_HANDLER_CODE_STUB | 3066 #undef DEFINE_HANDLER_CODE_STUB |
| 3085 #undef DEFINE_HYDROGEN_CODE_STUB | 3067 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3086 #undef DEFINE_CODE_STUB | 3068 #undef DEFINE_CODE_STUB |
| 3087 #undef DEFINE_CODE_STUB_BASE | 3069 #undef DEFINE_CODE_STUB_BASE |
| 3088 | 3070 |
| 3089 extern Representation RepresentationFromType(Type* type); | 3071 extern Representation RepresentationFromType(Type* type); |
| 3090 } } // namespace v8::internal | 3072 } } // namespace v8::internal |
| 3091 | 3073 |
| 3092 #endif // V8_CODE_STUBS_H_ | 3074 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |