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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 void CallTrampolineDescriptor::InitializePlatformSpecific( | 198 void CallTrampolineDescriptor::InitializePlatformSpecific( |
199 CallInterfaceDescriptorData* data) { | 199 CallInterfaceDescriptorData* data) { |
200 // a1: target | 200 // a1: target |
201 // a0: number of arguments | 201 // a0: number of arguments |
202 Register registers[] = {a1, a0}; | 202 Register registers[] = {a1, a0}; |
203 data->InitializePlatformSpecific(arraysize(registers), registers); | 203 data->InitializePlatformSpecific(arraysize(registers), registers); |
204 } | 204 } |
205 | 205 |
206 | 206 |
| 207 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
| 208 CallInterfaceDescriptorData* data) { |
| 209 // a1: target |
| 210 // a3: new target |
| 211 // a0: number of arguments |
| 212 Register registers[] = {a1, a3, a0}; |
| 213 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 214 } |
| 215 |
| 216 |
207 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 217 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
208 CallInterfaceDescriptorData* data) { | 218 CallInterfaceDescriptorData* data) { |
209 Register registers[] = {a2, a1, a0}; | 219 Register registers[] = {a2, a1, a0}; |
210 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 220 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
211 } | 221 } |
212 | 222 |
213 | 223 |
214 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 224 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
215 CallInterfaceDescriptorData* data) { | 225 CallInterfaceDescriptorData* data) { |
216 Register registers[] = {a0, a1}; | 226 Register registers[] = {a0, a1}; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 a2, // address of first argument (argv) | 436 a2, // address of first argument (argv) |
427 a1 // the runtime function to call | 437 a1 // the runtime function to call |
428 }; | 438 }; |
429 data->InitializePlatformSpecific(arraysize(registers), registers); | 439 data->InitializePlatformSpecific(arraysize(registers), registers); |
430 } | 440 } |
431 | 441 |
432 } // namespace internal | 442 } // namespace internal |
433 } // namespace v8 | 443 } // namespace v8 |
434 | 444 |
435 #endif // V8_TARGET_ARCH_MIPS64 | 445 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |