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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 } | 181 } |
182 | 182 |
183 | 183 |
184 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( | 184 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( |
185 CallInterfaceDescriptorData* data) { | 185 CallInterfaceDescriptorData* data) { |
186 Register registers[] = {a1, a3, a2}; | 186 Register registers[] = {a1, a3, a2}; |
187 data->InitializePlatformSpecific(arraysize(registers), registers); | 187 data->InitializePlatformSpecific(arraysize(registers), registers); |
188 } | 188 } |
189 | 189 |
190 | 190 |
191 void ConstructDescriptor::InitializePlatformSpecific( | 191 void CallConstructDescriptor::InitializePlatformSpecific( |
192 CallInterfaceDescriptorData* data) { | 192 CallInterfaceDescriptorData* data) { |
193 // a0 : number of arguments | 193 // a0 : number of arguments |
194 // a1 : the function to call | 194 // a1 : the function to call |
195 // a2 : feedback vector | 195 // a2 : feedback vector |
196 // a3 : slot in feedback vector (Smi, for RecordCallTarget) | 196 // a3 : slot in feedback vector (Smi, for RecordCallTarget) |
| 197 // t0 : new target (for IsSuperConstructorCall) |
197 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 198 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
198 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 199 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
199 Register registers[] = {a0, a1, a2, a3}; | 200 Register registers[] = {a0, a1, t0, a2}; |
200 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 201 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
201 } | 202 } |
202 | 203 |
203 | 204 |
204 void CallTrampolineDescriptor::InitializePlatformSpecific( | 205 void CallTrampolineDescriptor::InitializePlatformSpecific( |
205 CallInterfaceDescriptorData* data) { | 206 CallInterfaceDescriptorData* data) { |
206 // a1: target | 207 // a1: target |
207 // a0: number of arguments | 208 // a0: number of arguments |
208 Register registers[] = {a1, a0}; | 209 Register registers[] = {a1, a0}; |
209 data->InitializePlatformSpecific(arraysize(registers), registers); | 210 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 a2, // address of first argument (argv) | 443 a2, // address of first argument (argv) |
443 a1 // the runtime function to call | 444 a1 // the runtime function to call |
444 }; | 445 }; |
445 data->InitializePlatformSpecific(arraysize(registers), registers); | 446 data->InitializePlatformSpecific(arraysize(registers), registers); |
446 } | 447 } |
447 | 448 |
448 } // namespace internal | 449 } // namespace internal |
449 } // namespace v8 | 450 } // namespace v8 |
450 | 451 |
451 #endif // V8_TARGET_ARCH_MIPS | 452 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |