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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 Register scratch); | 100 Register scratch); |
101 static void GenerateHashGetHash(MacroAssembler* masm, | 101 static void GenerateHashGetHash(MacroAssembler* masm, |
102 Register hash, | 102 Register hash, |
103 Register scratch); | 103 Register scratch); |
104 | 104 |
105 private: | 105 private: |
106 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); |
107 }; | 107 }; |
108 | 108 |
109 | 109 |
110 class StringAddStub: public PlatformCodeStub { | |
111 public: | |
112 explicit StringAddStub(StringAddFlags flags) : flags_(flags) {} | |
113 | |
114 private: | |
115 Major MajorKey() { return StringAdd; } | |
116 int MinorKey() { return flags_; } | |
117 | |
118 void Generate(MacroAssembler* masm); | |
119 | |
120 void GenerateConvertArgument(MacroAssembler* masm, | |
121 int stack_offset, | |
122 Register arg, | |
123 Register scratch1, | |
124 Register scratch2, | |
125 Register scratch3, | |
126 Label* slow); | |
127 | |
128 void GenerateRegisterArgsPush(MacroAssembler* masm); | |
129 void GenerateRegisterArgsPop(MacroAssembler* masm, Register temp); | |
130 | |
131 const StringAddFlags flags_; | |
132 }; | |
133 | |
134 | |
135 class SubStringStub: public PlatformCodeStub { | 110 class SubStringStub: public PlatformCodeStub { |
136 public: | 111 public: |
137 SubStringStub() {} | 112 SubStringStub() {} |
138 | 113 |
139 private: | 114 private: |
140 Major MajorKey() { return SubString; } | 115 Major MajorKey() { return SubString; } |
141 int MinorKey() { return 0; } | 116 int MinorKey() { return 0; } |
142 | 117 |
143 void Generate(MacroAssembler* masm); | 118 void Generate(MacroAssembler* masm); |
144 }; | 119 }; |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 RememberedSetAction remembered_set_action_; | 452 RememberedSetAction remembered_set_action_; |
478 SaveFPRegsMode save_fp_regs_mode_; | 453 SaveFPRegsMode save_fp_regs_mode_; |
479 Label slow_; | 454 Label slow_; |
480 RegisterAllocation regs_; | 455 RegisterAllocation regs_; |
481 }; | 456 }; |
482 | 457 |
483 | 458 |
484 } } // namespace v8::internal | 459 } } // namespace v8::internal |
485 | 460 |
486 #endif // V8_X64_CODE_STUBS_X64_H_ | 461 #endif // V8_X64_CODE_STUBS_X64_H_ |
OLD | NEW |