OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
732 }; | 732 }; |
733 | 733 |
734 | 734 |
735 class CallFunctionStub: public CodeStub { | 735 class CallFunctionStub: public CodeStub { |
736 public: | 736 public: |
737 CallFunctionStub(int argc, CallFunctionFlags flags) | 737 CallFunctionStub(int argc, CallFunctionFlags flags) |
738 : argc_(argc), flags_(flags) { } | 738 : argc_(argc), flags_(flags) { } |
739 | 739 |
740 void Generate(MacroAssembler* masm); | 740 void Generate(MacroAssembler* masm); |
741 | 741 |
742 virtual void FinishCode(Handle<Code> code); | |
Yang
2012/01/27 15:52:38
You could inline this function here so that you do
Michael Starzinger
2012/01/27 16:10:52
Done.
| |
743 | |
742 static int ExtractArgcFromMinorKey(int minor_key) { | 744 static int ExtractArgcFromMinorKey(int minor_key) { |
743 return ArgcBits::decode(minor_key); | 745 return ArgcBits::decode(minor_key); |
744 } | 746 } |
745 | 747 |
746 private: | 748 private: |
747 int argc_; | 749 int argc_; |
748 CallFunctionFlags flags_; | 750 CallFunctionFlags flags_; |
749 | 751 |
750 virtual void PrintName(StringStream* stream); | 752 virtual void PrintName(StringStream* stream); |
751 | 753 |
(...skipping 16 matching lines...) Expand all Loading... | |
768 } | 770 } |
769 }; | 771 }; |
770 | 772 |
771 | 773 |
772 class CallConstructStub: public CodeStub { | 774 class CallConstructStub: public CodeStub { |
773 public: | 775 public: |
774 explicit CallConstructStub(CallFunctionFlags flags) : flags_(flags) {} | 776 explicit CallConstructStub(CallFunctionFlags flags) : flags_(flags) {} |
775 | 777 |
776 void Generate(MacroAssembler* masm); | 778 void Generate(MacroAssembler* masm); |
777 | 779 |
780 virtual void FinishCode(Handle<Code> code); | |
781 | |
778 private: | 782 private: |
779 CallFunctionFlags flags_; | 783 CallFunctionFlags flags_; |
780 | 784 |
781 virtual void PrintName(StringStream* stream); | 785 virtual void PrintName(StringStream* stream); |
782 | 786 |
783 Major MajorKey() { return CallConstruct; } | 787 Major MajorKey() { return CallConstruct; } |
784 int MinorKey() { return flags_; } | 788 int MinorKey() { return flags_; } |
785 | 789 |
786 bool RecordCallTarget() { | 790 bool RecordCallTarget() { |
787 return (flags_ & RECORD_CALL_TARGET) != 0; | 791 return (flags_ & RECORD_CALL_TARGET) != 0; |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1108 int MinorKey() { return 0; } | 1112 int MinorKey() { return 0; } |
1109 | 1113 |
1110 void Generate(MacroAssembler* masm); | 1114 void Generate(MacroAssembler* masm); |
1111 | 1115 |
1112 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); | 1116 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); |
1113 }; | 1117 }; |
1114 | 1118 |
1115 } } // namespace v8::internal | 1119 } } // namespace v8::internal |
1116 | 1120 |
1117 #endif // V8_CODE_STUBS_H_ | 1121 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |