| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 data->InitializePlatformSpecific(arraysize(registers), registers); | 180 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 181 } | 181 } |
| 182 | 182 |
| 183 | 183 |
| 184 void CallConstructDescriptor::InitializePlatformSpecific( | 184 void CallConstructDescriptor::InitializePlatformSpecific( |
| 185 CallInterfaceDescriptorData* data) { | 185 CallInterfaceDescriptorData* data) { |
| 186 // r3 : number of arguments | 186 // r3 : number of arguments |
| 187 // r4 : the function to call | 187 // r4 : the function to call |
| 188 // r5 : feedback vector | 188 // r5 : feedback vector |
| 189 // r6 : slot in feedback vector (Smi, for RecordCallTarget) | 189 // r6 : slot in feedback vector (Smi, for RecordCallTarget) |
| 190 // r7 : original constructor (for IsSuperConstructorCall) | 190 // r7 : new target (for IsSuperConstructorCall) |
| 191 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 191 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
| 192 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 192 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
| 193 Register registers[] = {r3, r4, r7, r5}; | 193 Register registers[] = {r3, r4, r7, r5}; |
| 194 data->InitializePlatformSpecific(arraysize(registers), registers); | 194 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 195 } | 195 } |
| 196 | 196 |
| 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 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 r4 // the target callable to be call | 402 r4 // the target callable to be call |
| 403 }; | 403 }; |
| 404 data->InitializePlatformSpecific(arraysize(registers), registers); | 404 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 405 } | 405 } |
| 406 | 406 |
| 407 | 407 |
| 408 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 408 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
| 409 CallInterfaceDescriptorData* data) { | 409 CallInterfaceDescriptorData* data) { |
| 410 Register registers[] = { | 410 Register registers[] = { |
| 411 r3, // argument count (not including receiver) | 411 r3, // argument count (not including receiver) |
| 412 r6, // original constructor | 412 r6, // new target |
| 413 r4, // constructor to call | 413 r4, // constructor to call |
| 414 r5 // address of the first argument | 414 r5 // address of the first argument |
| 415 }; | 415 }; |
| 416 data->InitializePlatformSpecific(arraysize(registers), registers); | 416 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 417 } | 417 } |
| 418 | 418 |
| 419 | 419 |
| 420 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 420 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 421 CallInterfaceDescriptorData* data) { | 421 CallInterfaceDescriptorData* data) { |
| 422 Register registers[] = { | 422 Register registers[] = { |
| 423 r3, // argument count (argc) | 423 r3, // argument count (argc) |
| 424 r5, // address of first argument (argv) | 424 r5, // address of first argument (argv) |
| 425 r4 // the runtime function to call | 425 r4 // the runtime function to call |
| 426 }; | 426 }; |
| 427 data->InitializePlatformSpecific(arraysize(registers), registers); | 427 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 428 } | 428 } |
| 429 } // namespace internal | 429 } // namespace internal |
| 430 } // namespace v8 | 430 } // namespace v8 |
| 431 | 431 |
| 432 #endif // V8_TARGET_ARCH_PPC | 432 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |