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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // r5 : feedback vector | 183 // r5 : feedback vector |
184 // r6 : slot in feedback vector (Smi, for RecordCallTarget) | 184 // r6 : slot in feedback vector (Smi, for RecordCallTarget) |
185 // r7 : original constructor (for IsSuperConstructorCall) | 185 // r7 : original constructor (for IsSuperConstructorCall) |
186 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 186 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
187 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 187 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
188 Register registers[] = {r3, r4, r7, r5}; | 188 Register registers[] = {r3, r4, r7, r5}; |
189 data->InitializePlatformSpecific(arraysize(registers), registers); | 189 data->InitializePlatformSpecific(arraysize(registers), registers); |
190 } | 190 } |
191 | 191 |
192 | 192 |
| 193 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 194 CallInterfaceDescriptorData* data) { |
| 195 // r3 : number of arguments |
| 196 // r4 : the target to call |
| 197 Register registers[] = {r4, r3}; |
| 198 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 199 } |
| 200 |
| 201 |
193 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 202 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
194 CallInterfaceDescriptorData* data) { | 203 CallInterfaceDescriptorData* data) { |
195 Register registers[] = {r5, r4, r3}; | 204 Register registers[] = {r5, r4, r3}; |
196 data->InitializePlatformSpecific(arraysize(registers), registers); | 205 data->InitializePlatformSpecific(arraysize(registers), registers); |
197 } | 206 } |
198 | 207 |
199 | 208 |
200 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 209 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
201 CallInterfaceDescriptorData* data) { | 210 CallInterfaceDescriptorData* data) { |
202 Register registers[] = {r3, r4}; | 211 Register registers[] = {r3, r4}; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 r4, // math rounding function | 377 r4, // math rounding function |
369 r6, // vector slot id | 378 r6, // vector slot id |
370 r7, // type vector | 379 r7, // type vector |
371 }; | 380 }; |
372 data->InitializePlatformSpecific(arraysize(registers), registers); | 381 data->InitializePlatformSpecific(arraysize(registers), registers); |
373 } | 382 } |
374 } // namespace internal | 383 } // namespace internal |
375 } // namespace v8 | 384 } // namespace v8 |
376 | 385 |
377 #endif // V8_TARGET_ARCH_PPC | 386 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |