| 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 Register scratch0); | 571 Register scratch0); |
| 572 | 572 |
| 573 static void GeneratePositiveLookup(MacroAssembler* masm, | 573 static void GeneratePositiveLookup(MacroAssembler* masm, |
| 574 Label* miss, | 574 Label* miss, |
| 575 Label* done, | 575 Label* done, |
| 576 Register elements, | 576 Register elements, |
| 577 Register name, | 577 Register name, |
| 578 Register r0, | 578 Register r0, |
| 579 Register r1); | 579 Register r1); |
| 580 | 580 |
| 581 virtual bool SometimesSetsUpAFrame() { return false; } |
| 582 |
| 581 private: | 583 private: |
| 582 static const int kInlinedProbes = 4; | 584 static const int kInlinedProbes = 4; |
| 583 static const int kTotalProbes = 20; | 585 static const int kTotalProbes = 20; |
| 584 | 586 |
| 585 static const int kCapacityOffset = | 587 static const int kCapacityOffset = |
| 586 StringDictionary::kHeaderSize + | 588 StringDictionary::kHeaderSize + |
| 587 StringDictionary::kCapacityIndex * kPointerSize; | 589 StringDictionary::kCapacityIndex * kPointerSize; |
| 588 | 590 |
| 589 static const int kElementsStartOffset = | 591 static const int kElementsStartOffset = |
| 590 StringDictionary::kHeaderSize + | 592 StringDictionary::kHeaderSize + |
| 591 StringDictionary::kElementsStartIndex * kPointerSize; | 593 StringDictionary::kElementsStartIndex * kPointerSize; |
| 592 | 594 |
| 593 Major MajorKey() { return StringDictionaryNegativeLookup; } | 595 Major MajorKey() { return StringDictionaryLookup; } |
| 594 | 596 |
| 595 int MinorKey() { | 597 int MinorKey() { |
| 596 return LookupModeBits::encode(mode_); | 598 return LookupModeBits::encode(mode_); |
| 597 } | 599 } |
| 598 | 600 |
| 599 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 601 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 600 | 602 |
| 601 LookupMode mode_; | 603 LookupMode mode_; |
| 602 }; | 604 }; |
| 603 | 605 |
| 604 | 606 |
| 605 } } // namespace v8::internal | 607 } } // namespace v8::internal |
| 606 | 608 |
| 607 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 609 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
| OLD | NEW |