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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 void CallTrampolineDescriptor::InitializePlatformSpecific( | 205 void CallTrampolineDescriptor::InitializePlatformSpecific( |
206 CallInterfaceDescriptorData* data) { | 206 CallInterfaceDescriptorData* data) { |
207 // a1: target | 207 // a1: target |
208 // a0: number of arguments | 208 // a0: number of arguments |
209 Register registers[] = {a1, a0}; | 209 Register registers[] = {a1, a0}; |
210 data->InitializePlatformSpecific(arraysize(registers), registers); | 210 data->InitializePlatformSpecific(arraysize(registers), registers); |
211 } | 211 } |
212 | 212 |
213 | 213 |
| 214 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 215 CallInterfaceDescriptorData* data) { |
| 216 // a1: target |
| 217 // a3: new target |
| 218 // a0: number of arguments |
| 219 // a2: allocation site or undefined |
| 220 Register registers[] = {a1, a3, a0, a2}; |
| 221 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 222 } |
| 223 |
| 224 |
214 void ConstructTrampolineDescriptor::InitializePlatformSpecific( | 225 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
215 CallInterfaceDescriptorData* data) { | 226 CallInterfaceDescriptorData* data) { |
216 // a1: target | 227 // a1: target |
217 // a3: new target | 228 // a3: new target |
218 // a0: number of arguments | 229 // a0: number of arguments |
219 Register registers[] = {a1, a3, a0}; | 230 Register registers[] = {a1, a3, a0}; |
220 data->InitializePlatformSpecific(arraysize(registers), registers); | 231 data->InitializePlatformSpecific(arraysize(registers), registers); |
221 } | 232 } |
222 | 233 |
223 | 234 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 a2, // address of first argument (argv) | 433 a2, // address of first argument (argv) |
423 a1 // the runtime function to call | 434 a1 // the runtime function to call |
424 }; | 435 }; |
425 data->InitializePlatformSpecific(arraysize(registers), registers); | 436 data->InitializePlatformSpecific(arraysize(registers), registers); |
426 } | 437 } |
427 | 438 |
428 } // namespace internal | 439 } // namespace internal |
429 } // namespace v8 | 440 } // namespace v8 |
430 | 441 |
431 #endif // V8_TARGET_ARCH_MIPS64 | 442 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |