| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 Register scratch); | 112 Register scratch); |
| 113 static void GenerateHashGetHash(MacroAssembler* masm, | 113 static void GenerateHashGetHash(MacroAssembler* masm, |
| 114 Register hash, | 114 Register hash, |
| 115 Register scratch); | 115 Register scratch); |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); | 118 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 | 121 |
| 122 class StringAddStub: public PlatformCodeStub { | |
| 123 public: | |
| 124 explicit StringAddStub(StringAddFlags flags) : flags_(flags) {} | |
| 125 | |
| 126 private: | |
| 127 Major MajorKey() { return StringAdd; } | |
| 128 int MinorKey() { return flags_; } | |
| 129 | |
| 130 void Generate(MacroAssembler* masm); | |
| 131 | |
| 132 void GenerateConvertArgument(MacroAssembler* masm, | |
| 133 int stack_offset, | |
| 134 Register arg, | |
| 135 Register scratch1, | |
| 136 Register scratch2, | |
| 137 Register scratch3, | |
| 138 Label* slow); | |
| 139 | |
| 140 void GenerateRegisterArgsPush(MacroAssembler* masm); | |
| 141 void GenerateRegisterArgsPop(MacroAssembler* masm, Register temp); | |
| 142 | |
| 143 const StringAddFlags flags_; | |
| 144 }; | |
| 145 | |
| 146 | |
| 147 class SubStringStub: public PlatformCodeStub { | 122 class SubStringStub: public PlatformCodeStub { |
| 148 public: | 123 public: |
| 149 SubStringStub() {} | 124 SubStringStub() {} |
| 150 | 125 |
| 151 private: | 126 private: |
| 152 Major MajorKey() { return SubString; } | 127 Major MajorKey() { return SubString; } |
| 153 int MinorKey() { return 0; } | 128 int MinorKey() { return 0; } |
| 154 | 129 |
| 155 void Generate(MacroAssembler* masm); | 130 void Generate(MacroAssembler* masm); |
| 156 }; | 131 }; |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 Register address_; | 483 Register address_; |
| 509 RememberedSetAction remembered_set_action_; | 484 RememberedSetAction remembered_set_action_; |
| 510 SaveFPRegsMode save_fp_regs_mode_; | 485 SaveFPRegsMode save_fp_regs_mode_; |
| 511 RegisterAllocation regs_; | 486 RegisterAllocation regs_; |
| 512 }; | 487 }; |
| 513 | 488 |
| 514 | 489 |
| 515 } } // namespace v8::internal | 490 } } // namespace v8::internal |
| 516 | 491 |
| 517 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 492 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
| OLD | NEW |