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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 return LanguageModeBits::decode(sub_minor_key()); | 584 return LanguageModeBits::decode(sub_minor_key()); |
585 } | 585 } |
586 | 586 |
587 FunctionKind kind() const { | 587 FunctionKind kind() const { |
588 return FunctionKindBits::decode(sub_minor_key()); | 588 return FunctionKindBits::decode(sub_minor_key()); |
589 } | 589 } |
590 | 590 |
591 private: | 591 private: |
592 STATIC_ASSERT(LANGUAGE_END == 3); | 592 STATIC_ASSERT(LANGUAGE_END == 3); |
593 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; | 593 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; |
594 class FunctionKindBits : public BitField<FunctionKind, 2, 6> {}; | 594 class FunctionKindBits : public BitField<FunctionKind, 2, 7> {}; |
595 | 595 |
596 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); | 596 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); |
597 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); | 597 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); |
598 }; | 598 }; |
599 | 599 |
600 | 600 |
601 class FastNewContextStub FINAL : public HydrogenCodeStub { | 601 class FastNewContextStub FINAL : public HydrogenCodeStub { |
602 public: | 602 public: |
603 static const int kMaximumSlots = 64; | 603 static const int kMaximumSlots = 64; |
604 | 604 |
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2679 | 2679 |
2680 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2680 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
2681 #undef DEFINE_PLATFORM_CODE_STUB | 2681 #undef DEFINE_PLATFORM_CODE_STUB |
2682 #undef DEFINE_HANDLER_CODE_STUB | 2682 #undef DEFINE_HANDLER_CODE_STUB |
2683 #undef DEFINE_HYDROGEN_CODE_STUB | 2683 #undef DEFINE_HYDROGEN_CODE_STUB |
2684 #undef DEFINE_CODE_STUB | 2684 #undef DEFINE_CODE_STUB |
2685 #undef DEFINE_CODE_STUB_BASE | 2685 #undef DEFINE_CODE_STUB_BASE |
2686 } } // namespace v8::internal | 2686 } } // namespace v8::internal |
2687 | 2687 |
2688 #endif // V8_CODE_STUBS_H_ | 2688 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |