| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 Runtime::FunctionId RuntimeFunction(); | 57 Runtime::FunctionId RuntimeFunction(); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 | 60 |
| 61 class ToBooleanStub: public CodeStub { | 61 class ToBooleanStub: public CodeStub { |
| 62 public: | 62 public: |
| 63 explicit ToBooleanStub(Register tos) : tos_(tos) { } | 63 explicit ToBooleanStub(Register tos) : tos_(tos) { } |
| 64 | 64 |
| 65 void Generate(MacroAssembler* masm); | 65 void Generate(MacroAssembler* masm); |
| 66 | 66 |
| 67 virtual bool SometimesSetsUpAFrame() { return false; } | |
| 68 | |
| 69 private: | 67 private: |
| 70 Register tos_; | 68 Register tos_; |
| 71 Major MajorKey() { return ToBoolean; } | 69 Major MajorKey() { return ToBoolean; } |
| 72 int MinorKey() { return tos_.code(); } | 70 int MinorKey() { return tos_.code(); } |
| 73 }; | 71 }; |
| 74 | 72 |
| 75 | 73 |
| 76 class UnaryOpStub: public CodeStub { | 74 class UnaryOpStub: public CodeStub { |
| 77 public: | 75 public: |
| 78 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) | 76 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 Register scratch0); | 630 Register scratch0); |
| 633 | 631 |
| 634 static void GeneratePositiveLookup(MacroAssembler* masm, | 632 static void GeneratePositiveLookup(MacroAssembler* masm, |
| 635 Label* miss, | 633 Label* miss, |
| 636 Label* done, | 634 Label* done, |
| 637 Register elements, | 635 Register elements, |
| 638 Register name, | 636 Register name, |
| 639 Register r0, | 637 Register r0, |
| 640 Register r1); | 638 Register r1); |
| 641 | 639 |
| 642 virtual bool SometimesSetsUpAFrame() { return false; } | |
| 643 | |
| 644 private: | 640 private: |
| 645 static const int kInlinedProbes = 4; | 641 static const int kInlinedProbes = 4; |
| 646 static const int kTotalProbes = 20; | 642 static const int kTotalProbes = 20; |
| 647 | 643 |
| 648 static const int kCapacityOffset = | 644 static const int kCapacityOffset = |
| 649 StringDictionary::kHeaderSize + | 645 StringDictionary::kHeaderSize + |
| 650 StringDictionary::kCapacityIndex * kPointerSize; | 646 StringDictionary::kCapacityIndex * kPointerSize; |
| 651 | 647 |
| 652 static const int kElementsStartOffset = | 648 static const int kElementsStartOffset = |
| 653 StringDictionary::kHeaderSize + | 649 StringDictionary::kHeaderSize + |
| 654 StringDictionary::kElementsStartIndex * kPointerSize; | 650 StringDictionary::kElementsStartIndex * kPointerSize; |
| 655 | 651 |
| 656 | 652 |
| 657 #ifdef DEBUG | 653 #ifdef DEBUG |
| 658 void Print() { | 654 void Print() { |
| 659 PrintF("StringDictionaryLookupStub\n"); | 655 PrintF("StringDictionaryLookupStub\n"); |
| 660 } | 656 } |
| 661 #endif | 657 #endif |
| 662 | 658 |
| 663 Major MajorKey() { return StringDictionaryLookup; } | 659 Major MajorKey() { return StringDictionaryNegativeLookup; } |
| 664 | 660 |
| 665 int MinorKey() { | 661 int MinorKey() { |
| 666 return LookupModeBits::encode(mode_); | 662 return LookupModeBits::encode(mode_); |
| 667 } | 663 } |
| 668 | 664 |
| 669 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 665 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 670 | 666 |
| 671 LookupMode mode_; | 667 LookupMode mode_; |
| 672 }; | 668 }; |
| 673 | 669 |
| 674 | 670 |
| 675 } } // namespace v8::internal | 671 } } // namespace v8::internal |
| 676 | 672 |
| 677 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 673 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |