OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 // r3 : number of arguments | 200 // r3 : number of arguments |
201 // r4 : the target to call | 201 // r4 : the target to call |
202 Register registers[] = {r4, r3}; | 202 Register registers[] = {r4, r3}; |
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 // r3 : number of arguments |
| 210 // r4 : the target to call |
| 211 // r6 : the new target |
| 212 Register registers[] = {r4, r6, r3}; |
| 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[] = {r5, r4, r3}; | 219 Register registers[] = {r5, r4, r3}; |
210 data->InitializePlatformSpecific(arraysize(registers), registers); | 220 data->InitializePlatformSpecific(arraysize(registers), registers); |
211 } | 221 } |
212 | 222 |
213 | 223 |
214 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 224 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
215 CallInterfaceDescriptorData* data) { | 225 CallInterfaceDescriptorData* data) { |
216 Register registers[] = {r3, r4}; | 226 Register registers[] = {r3, r4}; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 r3, // argument count (argc) | 434 r3, // argument count (argc) |
425 r5, // address of first argument (argv) | 435 r5, // address of first argument (argv) |
426 r4 // the runtime function to call | 436 r4 // the runtime function to call |
427 }; | 437 }; |
428 data->InitializePlatformSpecific(arraysize(registers), registers); | 438 data->InitializePlatformSpecific(arraysize(registers), registers); |
429 } | 439 } |
430 } // namespace internal | 440 } // namespace internal |
431 } // namespace v8 | 441 } // namespace v8 |
432 | 442 |
433 #endif // V8_TARGET_ARCH_PPC | 443 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |