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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 return FunctionKindBits::decode(sub_minor_key()); | 588 return FunctionKindBits::decode(sub_minor_key()); |
589 } | 589 } |
590 bool is_arrow() const { return IsArrowFunction(kind()); } | 590 bool is_arrow() const { return IsArrowFunction(kind()); } |
591 bool is_generator() const { return IsGeneratorFunction(kind()); } | 591 bool is_generator() const { return IsGeneratorFunction(kind()); } |
592 bool is_concise_method() const { return IsConciseMethod(kind()); } | 592 bool is_concise_method() const { return IsConciseMethod(kind()); } |
593 bool is_default_constructor() const { return IsDefaultConstructor(kind()); } | 593 bool is_default_constructor() const { return IsDefaultConstructor(kind()); } |
594 | 594 |
595 private: | 595 private: |
596 STATIC_ASSERT(LANGUAGE_END == 2); | 596 STATIC_ASSERT(LANGUAGE_END == 2); |
597 class LanguageModeBits : public BitField<LanguageMode, 0, 1> {}; | 597 class LanguageModeBits : public BitField<LanguageMode, 0, 1> {}; |
598 class FunctionKindBits : public BitField<FunctionKind, 1, 4> {}; | 598 class FunctionKindBits : public BitField<FunctionKind, 1, 6> {}; |
599 | 599 |
600 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); | 600 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); |
601 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); | 601 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); |
602 }; | 602 }; |
603 | 603 |
604 | 604 |
605 class FastNewContextStub FINAL : public HydrogenCodeStub { | 605 class FastNewContextStub FINAL : public HydrogenCodeStub { |
606 public: | 606 public: |
607 static const int kMaximumSlots = 64; | 607 static const int kMaximumSlots = 64; |
608 | 608 |
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2683 | 2683 |
2684 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2684 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
2685 #undef DEFINE_PLATFORM_CODE_STUB | 2685 #undef DEFINE_PLATFORM_CODE_STUB |
2686 #undef DEFINE_HANDLER_CODE_STUB | 2686 #undef DEFINE_HANDLER_CODE_STUB |
2687 #undef DEFINE_HYDROGEN_CODE_STUB | 2687 #undef DEFINE_HYDROGEN_CODE_STUB |
2688 #undef DEFINE_CODE_STUB | 2688 #undef DEFINE_CODE_STUB |
2689 #undef DEFINE_CODE_STUB_BASE | 2689 #undef DEFINE_CODE_STUB_BASE |
2690 } } // namespace v8::internal | 2690 } } // namespace v8::internal |
2691 | 2691 |
2692 #endif // V8_CODE_STUBS_H_ | 2692 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |