Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: src/arm/code-stubs-arm.h

Issue 12330012: ES6 symbols: Allow symbols as property names (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Platform ports Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 DwVfpRegister dst, 738 DwVfpRegister dst,
739 Register dst1, 739 Register dst1,
740 Register dst2, 740 Register dst2,
741 Register heap_number_map, 741 Register heap_number_map,
742 Register scratch1, 742 Register scratch1,
743 Register scratch2, 743 Register scratch2,
744 Label* not_number); 744 Label* not_number);
745 }; 745 };
746 746
747 747
748 class StringDictionaryLookupStub: public PlatformCodeStub { 748 class NameDictionaryLookupStub: public PlatformCodeStub {
749 public: 749 public:
750 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; 750 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP };
751 751
752 explicit StringDictionaryLookupStub(LookupMode mode) : mode_(mode) { } 752 explicit NameDictionaryLookupStub(LookupMode mode) : mode_(mode) { }
753 753
754 void Generate(MacroAssembler* masm); 754 void Generate(MacroAssembler* masm);
755 755
756 static void GenerateNegativeLookup(MacroAssembler* masm, 756 static void GenerateNegativeLookup(MacroAssembler* masm,
757 Label* miss, 757 Label* miss,
758 Label* done, 758 Label* done,
759 Register receiver, 759 Register receiver,
760 Register properties, 760 Register properties,
761 Handle<String> name, 761 Handle<Name> name,
762 Register scratch0); 762 Register scratch0);
763 763
764 static void GeneratePositiveLookup(MacroAssembler* masm, 764 static void GeneratePositiveLookup(MacroAssembler* masm,
765 Label* miss, 765 Label* miss,
766 Label* done, 766 Label* done,
767 Register elements, 767 Register elements,
768 Register name, 768 Register name,
769 Register r0, 769 Register r0,
770 Register r1); 770 Register r1);
771 771
772 virtual bool SometimesSetsUpAFrame() { return false; } 772 virtual bool SometimesSetsUpAFrame() { return false; }
773 773
774 private: 774 private:
775 static const int kInlinedProbes = 4; 775 static const int kInlinedProbes = 4;
776 static const int kTotalProbes = 20; 776 static const int kTotalProbes = 20;
777 777
778 static const int kCapacityOffset = 778 static const int kCapacityOffset =
779 StringDictionary::kHeaderSize + 779 NameDictionary::kHeaderSize +
780 StringDictionary::kCapacityIndex * kPointerSize; 780 NameDictionary::kCapacityIndex * kPointerSize;
781 781
782 static const int kElementsStartOffset = 782 static const int kElementsStartOffset =
783 StringDictionary::kHeaderSize + 783 NameDictionary::kHeaderSize +
784 StringDictionary::kElementsStartIndex * kPointerSize; 784 NameDictionary::kElementsStartIndex * kPointerSize;
785 785
786 Major MajorKey() { return StringDictionaryLookup; } 786 Major MajorKey() { return NameDictionaryLookup; }
787 787
788 int MinorKey() { 788 int MinorKey() {
789 return LookupModeBits::encode(mode_); 789 return LookupModeBits::encode(mode_);
790 } 790 }
791 791
792 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 792 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
793 793
794 LookupMode mode_; 794 LookupMode mode_;
795 }; 795 };
796 796
797 797
798 } } // namespace v8::internal 798 } } // namespace v8::internal
799 799
800 #endif // V8_ARM_CODE_STUBS_ARM_H_ 800 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698