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 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1838 } | 1838 } |
1839 | 1839 |
1840 int depth() const { return DepthBits::decode(minor_key_); } | 1840 int depth() const { return DepthBits::decode(minor_key_); } |
1841 LanguageMode language_mode() const { | 1841 LanguageMode language_mode() const { |
1842 return LanguageModeBits::decode(minor_key_); | 1842 return LanguageModeBits::decode(minor_key_); |
1843 } | 1843 } |
1844 | 1844 |
1845 private: | 1845 private: |
1846 class DepthBits : public BitField<int, 0, 4> {}; | 1846 class DepthBits : public BitField<int, 0, 4> {}; |
1847 STATIC_ASSERT(DepthBits::kMax == kMaximumDepth); | 1847 STATIC_ASSERT(DepthBits::kMax == kMaximumDepth); |
1848 class LanguageModeBits : public BitField<LanguageMode, 4, 1> {}; | 1848 class LanguageModeBits : public BitField<LanguageMode, 4, 2> {}; |
1849 STATIC_ASSERT(LANGUAGE_END == 2); | 1849 STATIC_ASSERT(LANGUAGE_END == 3); |
1850 | 1850 |
1851 DEFINE_CALL_INTERFACE_DESCRIPTOR(StoreGlobalViaContext); | 1851 DEFINE_CALL_INTERFACE_DESCRIPTOR(StoreGlobalViaContext); |
1852 DEFINE_PLATFORM_CODE_STUB(StoreGlobalViaContext, PlatformCodeStub); | 1852 DEFINE_PLATFORM_CODE_STUB(StoreGlobalViaContext, PlatformCodeStub); |
1853 }; | 1853 }; |
1854 | 1854 |
1855 class CallApiCallbackStub : public PlatformCodeStub { | 1855 class CallApiCallbackStub : public PlatformCodeStub { |
1856 public: | 1856 public: |
1857 static const int kArgBits = 3; | 1857 static const int kArgBits = 3; |
1858 static const int kArgMax = (1 << kArgBits) - 1; | 1858 static const int kArgMax = (1 << kArgBits) - 1; |
1859 | 1859 |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3210 #undef DEFINE_HYDROGEN_CODE_STUB | 3210 #undef DEFINE_HYDROGEN_CODE_STUB |
3211 #undef DEFINE_CODE_STUB | 3211 #undef DEFINE_CODE_STUB |
3212 #undef DEFINE_CODE_STUB_BASE | 3212 #undef DEFINE_CODE_STUB_BASE |
3213 | 3213 |
3214 extern Representation RepresentationFromType(Type* type); | 3214 extern Representation RepresentationFromType(Type* type); |
3215 | 3215 |
3216 } // namespace internal | 3216 } // namespace internal |
3217 } // namespace v8 | 3217 } // namespace v8 |
3218 | 3218 |
3219 #endif // V8_CODE_STUBS_H_ | 3219 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |