| OLD | NEW |
| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 Register character); | 111 Register character); |
| 112 | 112 |
| 113 static void GenerateHashGetHash(MacroAssembler* masm, | 113 static void GenerateHashGetHash(MacroAssembler* masm, |
| 114 Register hash); | 114 Register hash); |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); | 117 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 | 120 |
| 121 class StringAddStub: public PlatformCodeStub { | |
| 122 public: | |
| 123 explicit StringAddStub(StringAddFlags flags) : flags_(flags) {} | |
| 124 | |
| 125 private: | |
| 126 Major MajorKey() { return StringAdd; } | |
| 127 int MinorKey() { return flags_; } | |
| 128 | |
| 129 void Generate(MacroAssembler* masm); | |
| 130 | |
| 131 void GenerateConvertArgument(MacroAssembler* masm, | |
| 132 int stack_offset, | |
| 133 Register arg, | |
| 134 Register scratch1, | |
| 135 Register scratch2, | |
| 136 Register scratch3, | |
| 137 Register scratch4, | |
| 138 Label* slow); | |
| 139 | |
| 140 void GenerateRegisterArgsPush(MacroAssembler* masm); | |
| 141 void GenerateRegisterArgsPop(MacroAssembler* masm); | |
| 142 | |
| 143 const StringAddFlags flags_; | |
| 144 }; | |
| 145 | |
| 146 | |
| 147 class SubStringStub: public PlatformCodeStub { | 121 class SubStringStub: public PlatformCodeStub { |
| 148 public: | 122 public: |
| 149 SubStringStub() {} | 123 SubStringStub() {} |
| 150 | 124 |
| 151 private: | 125 private: |
| 152 Major MajorKey() { return SubString; } | 126 Major MajorKey() { return SubString; } |
| 153 int MinorKey() { return 0; } | 127 int MinorKey() { return 0; } |
| 154 | 128 |
| 155 void Generate(MacroAssembler* masm); | 129 void Generate(MacroAssembler* masm); |
| 156 }; | 130 }; |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 TargetAddressStorageMode storage_mode() { return storage_mode_; } | 462 TargetAddressStorageMode storage_mode() { return storage_mode_; } |
| 489 | 463 |
| 490 private: | 464 private: |
| 491 TargetAddressStorageMode storage_mode_; | 465 TargetAddressStorageMode storage_mode_; |
| 492 }; | 466 }; |
| 493 | 467 |
| 494 | 468 |
| 495 } } // namespace v8::internal | 469 } } // namespace v8::internal |
| 496 | 470 |
| 497 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 471 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |