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 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[] = {r4, r6, r5}; | 186 Register registers[] = {r4, r6, r5}; |
187 data->InitializePlatformSpecific(arraysize(registers), registers); | 187 data->InitializePlatformSpecific(arraysize(registers), registers); |
188 } | 188 } |
189 | 189 |
190 | 190 |
191 void CallConstructDescriptor::InitializePlatformSpecific( | 191 void ConstructDescriptor::InitializePlatformSpecific( |
192 CallInterfaceDescriptorData* data) { | 192 CallInterfaceDescriptorData* data) { |
193 // r3 : number of arguments | 193 // r3 : number of arguments |
194 // r4 : the function to call | 194 // r4 : the function to call |
195 // r5 : feedback vector | 195 // r5 : feedback vector |
196 // r6 : slot in feedback vector (Smi, for RecordCallTarget) | 196 // r6 : slot in feedback vector (Smi, for RecordCallTarget) |
197 // r7 : new target (for IsSuperConstructorCall) | |
198 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 197 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
199 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 198 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
200 Register registers[] = {r3, r4, r7, r5}; | 199 Register registers[] = {r3, r4, r5, r6}; |
201 data->InitializePlatformSpecific(arraysize(registers), registers); | 200 data->InitializePlatformSpecific(arraysize(registers), registers); |
202 } | 201 } |
203 | 202 |
204 | 203 |
205 void CallTrampolineDescriptor::InitializePlatformSpecific( | 204 void CallTrampolineDescriptor::InitializePlatformSpecific( |
206 CallInterfaceDescriptorData* data) { | 205 CallInterfaceDescriptorData* data) { |
207 // r3 : number of arguments | 206 // r3 : number of arguments |
208 // r4 : the target to call | 207 // r4 : the target to call |
209 Register registers[] = {r4, r3}; | 208 Register registers[] = {r4, r3}; |
210 data->InitializePlatformSpecific(arraysize(registers), registers); | 209 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 r3, // argument count (argc) | 440 r3, // argument count (argc) |
442 r5, // address of first argument (argv) | 441 r5, // address of first argument (argv) |
443 r4 // the runtime function to call | 442 r4 // the runtime function to call |
444 }; | 443 }; |
445 data->InitializePlatformSpecific(arraysize(registers), registers); | 444 data->InitializePlatformSpecific(arraysize(registers), registers); |
446 } | 445 } |
447 } // namespace internal | 446 } // namespace internal |
448 } // namespace v8 | 447 } // namespace v8 |
449 | 448 |
450 #endif // V8_TARGET_ARCH_PPC | 449 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |