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 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1849 class TypeBits : public BitField<Type, 0, 2> {}; | 1849 class TypeBits : public BitField<Type, 0, 2> {}; |
1850 | 1850 |
1851 DEFINE_PLATFORM_CODE_STUB(ArgumentsAccess, PlatformCodeStub); | 1851 DEFINE_PLATFORM_CODE_STUB(ArgumentsAccess, PlatformCodeStub); |
1852 }; | 1852 }; |
1853 | 1853 |
1854 | 1854 |
1855 class RestParamAccessStub : public PlatformCodeStub { | 1855 class RestParamAccessStub : public PlatformCodeStub { |
1856 public: | 1856 public: |
1857 explicit RestParamAccessStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 1857 explicit RestParamAccessStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
1858 | 1858 |
1859 CallInterfaceDescriptor GetCallInterfaceDescriptor() const override { | |
1860 return ContextOnlyDescriptor(isolate()); | |
1861 } | |
1862 | |
1863 private: | 1859 private: |
1864 void GenerateNew(MacroAssembler* masm); | 1860 void GenerateNew(MacroAssembler* masm); |
1865 | 1861 |
1866 void PrintName(std::ostream& os) const override; // NOLINT | 1862 void PrintName(std::ostream& os) const override; // NOLINT |
1867 | 1863 |
| 1864 DEFINE_CALL_INTERFACE_DESCRIPTOR(RestParamAccess); |
1868 DEFINE_PLATFORM_CODE_STUB(RestParamAccess, PlatformCodeStub); | 1865 DEFINE_PLATFORM_CODE_STUB(RestParamAccess, PlatformCodeStub); |
1869 }; | 1866 }; |
1870 | 1867 |
1871 | 1868 |
1872 class RegExpExecStub: public PlatformCodeStub { | 1869 class RegExpExecStub: public PlatformCodeStub { |
1873 public: | 1870 public: |
1874 explicit RegExpExecStub(Isolate* isolate) : PlatformCodeStub(isolate) { } | 1871 explicit RegExpExecStub(Isolate* isolate) : PlatformCodeStub(isolate) { } |
1875 | 1872 |
1876 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); | 1873 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); |
1877 DEFINE_PLATFORM_CODE_STUB(RegExpExec, PlatformCodeStub); | 1874 DEFINE_PLATFORM_CODE_STUB(RegExpExec, PlatformCodeStub); |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2977 #undef DEFINE_HYDROGEN_CODE_STUB | 2974 #undef DEFINE_HYDROGEN_CODE_STUB |
2978 #undef DEFINE_CODE_STUB | 2975 #undef DEFINE_CODE_STUB |
2979 #undef DEFINE_CODE_STUB_BASE | 2976 #undef DEFINE_CODE_STUB_BASE |
2980 | 2977 |
2981 extern Representation RepresentationFromType(Type* type); | 2978 extern Representation RepresentationFromType(Type* type); |
2982 | 2979 |
2983 } // namespace internal | 2980 } // namespace internal |
2984 } // namespace v8 | 2981 } // namespace v8 |
2985 | 2982 |
2986 #endif // V8_CODE_STUBS_H_ | 2983 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |