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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 return LanguageModeBits::decode(sub_minor_key()); | 990 return LanguageModeBits::decode(sub_minor_key()); |
991 } | 991 } |
992 | 992 |
993 FunctionKind kind() const { | 993 FunctionKind kind() const { |
994 return FunctionKindBits::decode(sub_minor_key()); | 994 return FunctionKindBits::decode(sub_minor_key()); |
995 } | 995 } |
996 | 996 |
997 private: | 997 private: |
998 STATIC_ASSERT(LANGUAGE_END == 3); | 998 STATIC_ASSERT(LANGUAGE_END == 3); |
999 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; | 999 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; |
1000 class FunctionKindBits : public BitField<FunctionKind, 2, 8> {}; | 1000 class FunctionKindBits : public BitField<FunctionKind, 2, 14> {}; |
1001 | 1001 |
1002 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); | 1002 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); |
1003 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); | 1003 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); |
1004 }; | 1004 }; |
1005 | 1005 |
1006 | 1006 |
1007 class FastNewContextStub final : public HydrogenCodeStub { | 1007 class FastNewContextStub final : public HydrogenCodeStub { |
1008 public: | 1008 public: |
1009 static const int kMaximumSlots = 64; | 1009 static const int kMaximumSlots = 64; |
1010 | 1010 |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3160 #undef DEFINE_HYDROGEN_CODE_STUB | 3160 #undef DEFINE_HYDROGEN_CODE_STUB |
3161 #undef DEFINE_CODE_STUB | 3161 #undef DEFINE_CODE_STUB |
3162 #undef DEFINE_CODE_STUB_BASE | 3162 #undef DEFINE_CODE_STUB_BASE |
3163 | 3163 |
3164 extern Representation RepresentationFromType(Type* type); | 3164 extern Representation RepresentationFromType(Type* type); |
3165 | 3165 |
3166 } // namespace internal | 3166 } // namespace internal |
3167 } // namespace v8 | 3167 } // namespace v8 |
3168 | 3168 |
3169 #endif // V8_CODE_STUBS_H_ | 3169 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |