Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 590 DwVfpRegister dst, | 590 DwVfpRegister dst, |
| 591 Register dst1, | 591 Register dst1, |
| 592 Register dst2, | 592 Register dst2, |
| 593 Register heap_number_map, | 593 Register heap_number_map, |
| 594 Register scratch1, | 594 Register scratch1, |
| 595 Register scratch2, | 595 Register scratch2, |
| 596 Label* not_number); | 596 Label* not_number); |
| 597 }; | 597 }; |
| 598 | 598 |
| 599 | 599 |
| 600 class StringDictionaryLookupStub: public CodeStub { | |
| 601 public: | |
| 602 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; | |
| 603 | |
| 604 StringDictionaryLookupStub(LookupMode mode) : mode_(mode) { } | |
| 605 | |
| 606 void Generate(MacroAssembler* masm); | |
| 607 | |
| 608 static void GenerateNegativeLookup(MacroAssembler* masm, | |
| 609 Label* miss, | |
| 610 Label* done, | |
| 611 Register receiver, | |
| 612 Register properties, | |
| 613 String* name, | |
| 614 Register scratch0) ; | |
| 615 | |
| 616 static void GeneratePositiveLookup(MacroAssembler* masm, | |
| 617 Label* miss, | |
| 618 Label* done, | |
| 619 Register elements, | |
| 620 Register name, | |
| 621 Register r0, | |
| 622 Register r1); | |
| 623 private: | |
|
Mads Ager (chromium)
2011/05/05 11:54:56
Could you leave line 623 blank and move this to li
Vyacheslav Egorov (Chromium)
2011/05/05 12:30:16
Done.
| |
| 624 | |
| 625 static const int kInlinedProbes = 4; | |
| 626 static const int kTotalProbes = 20; | |
| 627 | |
| 628 static const int kCapacityOffset = | |
| 629 StringDictionary::kHeaderSize + | |
| 630 StringDictionary::kCapacityIndex * kPointerSize; | |
| 631 | |
| 632 static const int kElementsStartOffset = | |
| 633 StringDictionary::kHeaderSize + | |
| 634 StringDictionary::kElementsStartIndex * kPointerSize; | |
| 635 | |
| 636 | |
| 637 #ifdef DEBUG | |
| 638 void Print() { | |
| 639 PrintF("StringDictionaryLookupStub\n"); | |
| 640 } | |
| 641 #endif | |
| 642 | |
| 643 Major MajorKey() { return StringDictionaryNegativeLookup; } | |
| 644 | |
| 645 int MinorKey() { | |
| 646 return LookupModeBits::encode(mode_); | |
| 647 } | |
| 648 | |
| 649 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | |
| 650 | |
| 651 LookupMode mode_; | |
| 652 }; | |
| 653 | |
| 654 | |
| 600 } } // namespace v8::internal | 655 } } // namespace v8::internal |
| 601 | 656 |
| 602 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 657 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |