| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 /* IC Handler stubs */ \ | 102 /* IC Handler stubs */ \ |
| 103 V(ArrayBufferViewLoadField) \ | 103 V(ArrayBufferViewLoadField) \ |
| 104 V(LoadConstant) \ | 104 V(LoadConstant) \ |
| 105 V(LoadFastElement) \ | 105 V(LoadFastElement) \ |
| 106 V(LoadField) \ | 106 V(LoadField) \ |
| 107 V(KeyedLoadSloppyArguments) \ | 107 V(KeyedLoadSloppyArguments) \ |
| 108 V(KeyedStoreSloppyArguments) \ | 108 V(KeyedStoreSloppyArguments) \ |
| 109 V(StoreField) \ | 109 V(StoreField) \ |
| 110 V(StoreGlobal) \ | 110 V(StoreGlobal) \ |
| 111 V(StoreTransition) \ | 111 V(StoreTransition) \ |
| 112 V(StringLength) \ | 112 V(StringLength) |
| 113 V(RestParamAccess) | |
| 114 | 113 |
| 115 // List of code stubs only used on ARM 32 bits platforms. | 114 // List of code stubs only used on ARM 32 bits platforms. |
| 116 #if V8_TARGET_ARCH_ARM | 115 #if V8_TARGET_ARCH_ARM |
| 117 #define CODE_STUB_LIST_ARM(V) V(DirectCEntry) | 116 #define CODE_STUB_LIST_ARM(V) V(DirectCEntry) |
| 118 | 117 |
| 119 #else | 118 #else |
| 120 #define CODE_STUB_LIST_ARM(V) | 119 #define CODE_STUB_LIST_ARM(V) |
| 121 #endif | 120 #endif |
| 122 | 121 |
| 123 // List of code stubs only used on ARM 64 bits platforms. | 122 // List of code stubs only used on ARM 64 bits platforms. |
| (...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 void GenerateNewSloppySlow(MacroAssembler* masm); | 1921 void GenerateNewSloppySlow(MacroAssembler* masm); |
| 1923 | 1922 |
| 1924 void PrintName(std::ostream& os) const override; // NOLINT | 1923 void PrintName(std::ostream& os) const override; // NOLINT |
| 1925 | 1924 |
| 1926 class TypeBits : public BitField<Type, 0, 2> {}; | 1925 class TypeBits : public BitField<Type, 0, 2> {}; |
| 1927 | 1926 |
| 1928 DEFINE_PLATFORM_CODE_STUB(ArgumentsAccess, PlatformCodeStub); | 1927 DEFINE_PLATFORM_CODE_STUB(ArgumentsAccess, PlatformCodeStub); |
| 1929 }; | 1928 }; |
| 1930 | 1929 |
| 1931 | 1930 |
| 1932 class RestParamAccessStub: public PlatformCodeStub { | |
| 1933 public: | |
| 1934 explicit RestParamAccessStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | |
| 1935 | |
| 1936 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { | |
| 1937 return ContextOnlyDescriptor(isolate()); | |
| 1938 } | |
| 1939 | |
| 1940 private: | |
| 1941 void GenerateNew(MacroAssembler* masm); | |
| 1942 | |
| 1943 void PrintName(std::ostream& os) const override; // NOLINT | |
| 1944 | |
| 1945 DEFINE_PLATFORM_CODE_STUB(RestParamAccess, PlatformCodeStub); | |
| 1946 }; | |
| 1947 | |
| 1948 | |
| 1949 class RegExpExecStub: public PlatformCodeStub { | 1931 class RegExpExecStub: public PlatformCodeStub { |
| 1950 public: | 1932 public: |
| 1951 explicit RegExpExecStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | 1933 explicit RegExpExecStub(Isolate* isolate) : PlatformCodeStub(isolate) { } |
| 1952 | 1934 |
| 1953 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); | 1935 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); |
| 1954 DEFINE_PLATFORM_CODE_STUB(RegExpExec, PlatformCodeStub); | 1936 DEFINE_PLATFORM_CODE_STUB(RegExpExec, PlatformCodeStub); |
| 1955 }; | 1937 }; |
| 1956 | 1938 |
| 1957 | 1939 |
| 1958 class RegExpConstructResultStub final : public HydrogenCodeStub { | 1940 class RegExpConstructResultStub final : public HydrogenCodeStub { |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3104 #undef DEFINE_PLATFORM_CODE_STUB | 3086 #undef DEFINE_PLATFORM_CODE_STUB |
| 3105 #undef DEFINE_HANDLER_CODE_STUB | 3087 #undef DEFINE_HANDLER_CODE_STUB |
| 3106 #undef DEFINE_HYDROGEN_CODE_STUB | 3088 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3107 #undef DEFINE_CODE_STUB | 3089 #undef DEFINE_CODE_STUB |
| 3108 #undef DEFINE_CODE_STUB_BASE | 3090 #undef DEFINE_CODE_STUB_BASE |
| 3109 | 3091 |
| 3110 extern Representation RepresentationFromType(Type* type); | 3092 extern Representation RepresentationFromType(Type* type); |
| 3111 } } // namespace v8::internal | 3093 } } // namespace v8::internal |
| 3112 | 3094 |
| 3113 #endif // V8_CODE_STUBS_H_ | 3095 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |