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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 return LanguageModeBits::decode(sub_minor_key()); | 607 return LanguageModeBits::decode(sub_minor_key()); |
608 } | 608 } |
609 | 609 |
610 FunctionKind kind() const { | 610 FunctionKind kind() const { |
611 return FunctionKindBits::decode(sub_minor_key()); | 611 return FunctionKindBits::decode(sub_minor_key()); |
612 } | 612 } |
613 | 613 |
614 private: | 614 private: |
615 STATIC_ASSERT(LANGUAGE_END == 3); | 615 STATIC_ASSERT(LANGUAGE_END == 3); |
616 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; | 616 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; |
617 class FunctionKindBits : public BitField<FunctionKind, 2, 7> {}; | 617 class FunctionKindBits : public BitField<FunctionKind, 2, 8> {}; |
618 | 618 |
619 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); | 619 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); |
620 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); | 620 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); |
621 }; | 621 }; |
622 | 622 |
623 | 623 |
624 class FastNewContextStub FINAL : public HydrogenCodeStub { | 624 class FastNewContextStub FINAL : public HydrogenCodeStub { |
625 public: | 625 public: |
626 static const int kMaximumSlots = 64; | 626 static const int kMaximumSlots = 64; |
627 | 627 |
(...skipping 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2732 | 2732 |
2733 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2733 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
2734 #undef DEFINE_PLATFORM_CODE_STUB | 2734 #undef DEFINE_PLATFORM_CODE_STUB |
2735 #undef DEFINE_HANDLER_CODE_STUB | 2735 #undef DEFINE_HANDLER_CODE_STUB |
2736 #undef DEFINE_HYDROGEN_CODE_STUB | 2736 #undef DEFINE_HYDROGEN_CODE_STUB |
2737 #undef DEFINE_CODE_STUB | 2737 #undef DEFINE_CODE_STUB |
2738 #undef DEFINE_CODE_STUB_BASE | 2738 #undef DEFINE_CODE_STUB_BASE |
2739 } } // namespace v8::internal | 2739 } } // namespace v8::internal |
2740 | 2740 |
2741 #endif // V8_CODE_STUBS_H_ | 2741 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |