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