OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 Register registers[] = {a1}; | 162 Register registers[] = {a1}; |
163 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 163 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
164 } | 164 } |
165 | 165 |
166 | 166 |
167 void CallConstructDescriptor::InitializePlatformSpecific( | 167 void CallConstructDescriptor::InitializePlatformSpecific( |
168 CallInterfaceDescriptorData* data) { | 168 CallInterfaceDescriptorData* data) { |
169 // a0 : number of arguments | 169 // a0 : number of arguments |
170 // a1 : the function to call | 170 // a1 : the function to call |
171 // a2 : feedback vector | 171 // a2 : feedback vector |
172 // a3 : (only if a2 is not the megamorphic symbol) slot in feedback | 172 // a3 : slot in feedback vector (Smi, for RecordCallTarget) |
173 // vector (Smi) | 173 // a4 : original constructor (for IsSuperConstructorCall) |
174 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 174 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
175 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 175 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
176 Register registers[] = {a0, a1, a2}; | 176 Register registers[] = {a0, a1, a4, a2}; |
177 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 177 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
178 } | 178 } |
179 | 179 |
180 | 180 |
181 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 181 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
182 CallInterfaceDescriptorData* data) { | 182 CallInterfaceDescriptorData* data) { |
183 Register registers[] = {a2, a1, a0}; | 183 Register registers[] = {a2, a1, a0}; |
184 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 184 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
185 } | 185 } |
186 | 186 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 a1, // math rounding function | 357 a1, // math rounding function |
358 a3, // vector slot id | 358 a3, // vector slot id |
359 a2, // type vector | 359 a2, // type vector |
360 }; | 360 }; |
361 data->InitializePlatformSpecific(arraysize(registers), registers); | 361 data->InitializePlatformSpecific(arraysize(registers), registers); |
362 } | 362 } |
363 } // namespace internal | 363 } // namespace internal |
364 } // namespace v8 | 364 } // namespace v8 |
365 | 365 |
366 #endif // V8_TARGET_ARCH_MIPS64 | 366 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |