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 FPURegister dst, | 732 FPURegister dst, |
733 Register dst1, | 733 Register dst1, |
734 Register dst2, | 734 Register dst2, |
735 Register heap_number_map, | 735 Register heap_number_map, |
736 Register scratch1, | 736 Register scratch1, |
737 Register scratch2, | 737 Register scratch2, |
738 Label* not_number); | 738 Label* not_number); |
739 }; | 739 }; |
740 | 740 |
741 | 741 |
742 class StringDictionaryLookupStub: public PlatformCodeStub { | 742 class NameDictionaryLookupStub: public PlatformCodeStub { |
743 public: | 743 public: |
744 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; | 744 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; |
745 | 745 |
746 explicit StringDictionaryLookupStub(LookupMode mode) : mode_(mode) { } | 746 explicit NameDictionaryLookupStub(LookupMode mode) : mode_(mode) { } |
747 | 747 |
748 void Generate(MacroAssembler* masm); | 748 void Generate(MacroAssembler* masm); |
749 | 749 |
750 static void GenerateNegativeLookup(MacroAssembler* masm, | 750 static void GenerateNegativeLookup(MacroAssembler* masm, |
751 Label* miss, | 751 Label* miss, |
752 Label* done, | 752 Label* done, |
753 Register receiver, | 753 Register receiver, |
754 Register properties, | 754 Register properties, |
755 Handle<String> name, | 755 Handle<Name> name, |
756 Register scratch0); | 756 Register scratch0); |
757 | 757 |
758 static void GeneratePositiveLookup(MacroAssembler* masm, | 758 static void GeneratePositiveLookup(MacroAssembler* masm, |
759 Label* miss, | 759 Label* miss, |
760 Label* done, | 760 Label* done, |
761 Register elements, | 761 Register elements, |
762 Register name, | 762 Register name, |
763 Register r0, | 763 Register r0, |
764 Register r1); | 764 Register r1); |
765 | 765 |
766 virtual bool SometimesSetsUpAFrame() { return false; } | 766 virtual bool SometimesSetsUpAFrame() { return false; } |
767 | 767 |
768 private: | 768 private: |
769 static const int kInlinedProbes = 4; | 769 static const int kInlinedProbes = 4; |
770 static const int kTotalProbes = 20; | 770 static const int kTotalProbes = 20; |
771 | 771 |
772 static const int kCapacityOffset = | 772 static const int kCapacityOffset = |
773 StringDictionary::kHeaderSize + | 773 NameDictionary::kHeaderSize + |
774 StringDictionary::kCapacityIndex * kPointerSize; | 774 NameDictionary::kCapacityIndex * kPointerSize; |
775 | 775 |
776 static const int kElementsStartOffset = | 776 static const int kElementsStartOffset = |
777 StringDictionary::kHeaderSize + | 777 NameDictionary::kHeaderSize + |
778 StringDictionary::kElementsStartIndex * kPointerSize; | 778 NameDictionary::kElementsStartIndex * kPointerSize; |
779 | 779 |
780 Major MajorKey() { return StringDictionaryLookup; } | 780 Major MajorKey() { return NameDictionaryLookup; } |
781 | 781 |
782 int MinorKey() { | 782 int MinorKey() { |
783 return LookupModeBits::encode(mode_); | 783 return LookupModeBits::encode(mode_); |
784 } | 784 } |
785 | 785 |
786 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 786 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
787 | 787 |
788 LookupMode mode_; | 788 LookupMode mode_; |
789 }; | 789 }; |
790 | 790 |
791 | 791 |
792 } } // namespace v8::internal | 792 } } // namespace v8::internal |
793 | 793 |
794 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 794 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |