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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 return LanguageModeBits::decode(sub_minor_key()); | 1020 return LanguageModeBits::decode(sub_minor_key()); |
1021 } | 1021 } |
1022 | 1022 |
1023 FunctionKind kind() const { | 1023 FunctionKind kind() const { |
1024 return FunctionKindBits::decode(sub_minor_key()); | 1024 return FunctionKindBits::decode(sub_minor_key()); |
1025 } | 1025 } |
1026 | 1026 |
1027 private: | 1027 private: |
1028 STATIC_ASSERT(LANGUAGE_END == 3); | 1028 STATIC_ASSERT(LANGUAGE_END == 3); |
1029 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; | 1029 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; |
1030 class FunctionKindBits : public BitField<FunctionKind, 2, 8> {}; | 1030 class FunctionKindBits : public BitField<FunctionKind, 2, 14> {}; |
1031 | 1031 |
1032 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); | 1032 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); |
1033 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); | 1033 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); |
1034 }; | 1034 }; |
1035 | 1035 |
1036 | 1036 |
1037 class FastNewContextStub final : public HydrogenCodeStub { | 1037 class FastNewContextStub final : public HydrogenCodeStub { |
1038 public: | 1038 public: |
1039 static const int kMaximumSlots = 64; | 1039 static const int kMaximumSlots = 64; |
1040 | 1040 |
(...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3206 #undef DEFINE_HYDROGEN_CODE_STUB | 3206 #undef DEFINE_HYDROGEN_CODE_STUB |
3207 #undef DEFINE_CODE_STUB | 3207 #undef DEFINE_CODE_STUB |
3208 #undef DEFINE_CODE_STUB_BASE | 3208 #undef DEFINE_CODE_STUB_BASE |
3209 | 3209 |
3210 extern Representation RepresentationFromType(Type* type); | 3210 extern Representation RepresentationFromType(Type* type); |
3211 | 3211 |
3212 } // namespace internal | 3212 } // namespace internal |
3213 } // namespace v8 | 3213 } // namespace v8 |
3214 | 3214 |
3215 #endif // V8_CODE_STUBS_H_ | 3215 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |