OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 CompareIC::State* right_state, | 781 CompareIC::State* right_state, |
782 CompareIC::State* handler_state, | 782 CompareIC::State* handler_state, |
783 Token::Value* op); | 783 Token::Value* op); |
784 | 784 |
785 static CompareIC::State CompareState(int minor_key) { | 785 static CompareIC::State CompareState(int minor_key) { |
786 return static_cast<CompareIC::State>(HandlerStateField::decode(minor_key)); | 786 return static_cast<CompareIC::State>(HandlerStateField::decode(minor_key)); |
787 } | 787 } |
788 | 788 |
789 private: | 789 private: |
790 class OpField: public BitField<int, 0, 3> { }; | 790 class OpField: public BitField<int, 0, 3> { }; |
791 class LeftStateField: public BitField<int, 3, 3> { }; | 791 class LeftStateField: public BitField<int, 3, 4> { }; |
792 class RightStateField: public BitField<int, 6, 3> { }; | 792 class RightStateField: public BitField<int, 7, 4> { }; |
793 class HandlerStateField: public BitField<int, 9, 3> { }; | 793 class HandlerStateField: public BitField<int, 11, 4> { }; |
794 | 794 |
795 virtual void FinishCode(Handle<Code> code) { | 795 virtual void FinishCode(Handle<Code> code) { |
796 code->set_stub_info(MinorKey()); | 796 code->set_stub_info(MinorKey()); |
797 } | 797 } |
798 | 798 |
799 virtual CodeStub::Major MajorKey() { return CompareIC; } | 799 virtual CodeStub::Major MajorKey() { return CompareIC; } |
800 virtual int MinorKey(); | 800 virtual int MinorKey(); |
801 | 801 |
802 virtual int GetCodeKind() { return Code::COMPARE_IC; } | 802 virtual int GetCodeKind() { return Code::COMPARE_IC; } |
803 | 803 |
804 void GenerateSmis(MacroAssembler* masm); | 804 void GenerateSmis(MacroAssembler* masm); |
805 void GenerateHeapNumbers(MacroAssembler* masm); | 805 void GenerateHeapNumbers(MacroAssembler* masm); |
806 void GenerateInternalizedStrings(MacroAssembler* masm); | 806 void GenerateInternalizedStrings(MacroAssembler* masm); |
807 void GenerateStrings(MacroAssembler* masm); | 807 void GenerateStrings(MacroAssembler* masm); |
| 808 void GenerateUniqueNames(MacroAssembler* masm); |
808 void GenerateObjects(MacroAssembler* masm); | 809 void GenerateObjects(MacroAssembler* masm); |
809 void GenerateMiss(MacroAssembler* masm); | 810 void GenerateMiss(MacroAssembler* masm); |
810 void GenerateKnownObjects(MacroAssembler* masm); | 811 void GenerateKnownObjects(MacroAssembler* masm); |
811 void GenerateGeneric(MacroAssembler* masm); | 812 void GenerateGeneric(MacroAssembler* masm); |
812 | 813 |
813 bool strict() const { return op_ == Token::EQ_STRICT; } | 814 bool strict() const { return op_ == Token::EQ_STRICT; } |
814 Condition GetCondition() const { return CompareIC::ComputeCondition(op_); } | 815 Condition GetCondition() const { return CompareIC::ComputeCondition(op_); } |
815 | 816 |
816 virtual void AddToSpecialCache(Handle<Code> new_object); | 817 virtual void AddToSpecialCache(Handle<Code> new_object); |
817 virtual bool FindCodeInSpecialCache(Code** code_out, Isolate* isolate); | 818 virtual bool FindCodeInSpecialCache(Code** code_out, Isolate* isolate); |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 | 1474 |
1474 // The current function entry hook. | 1475 // The current function entry hook. |
1475 static FunctionEntryHook entry_hook_; | 1476 static FunctionEntryHook entry_hook_; |
1476 | 1477 |
1477 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1478 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
1478 }; | 1479 }; |
1479 | 1480 |
1480 } } // namespace v8::internal | 1481 } } // namespace v8::internal |
1481 | 1482 |
1482 #endif // V8_CODE_STUBS_H_ | 1483 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |