| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 Register registers[] = {r4, r6, r5}; | 162 Register registers[] = {r4, r6, r5}; |
| 163 data->InitializePlatformSpecific(arraysize(registers), registers); | 163 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 164 } | 164 } |
| 165 | 165 |
| 166 | 166 |
| 167 void CallConstructDescriptor::InitializePlatformSpecific( | 167 void CallConstructDescriptor::InitializePlatformSpecific( |
| 168 CallInterfaceDescriptorData* data) { | 168 CallInterfaceDescriptorData* data) { |
| 169 // r3 : number of arguments | 169 // r3 : number of arguments |
| 170 // r4 : the function to call | 170 // r4 : the function to call |
| 171 // r5 : feedback vector | 171 // r5 : feedback vector |
| 172 // r6 : (only if r5 is not the megamorphic symbol) slot in feedback | 172 // r6 : slot in feedback vector (Smi, for RecordCallTarget) |
| 173 // vector (Smi) | 173 // r7 : original constructor (for IsSuperConstructorCall) |
| 174 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 174 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
| 175 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 175 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
| 176 Register registers[] = {r3, r4, r5}; | 176 Register registers[] = {r3, r4, r7, r5}; |
| 177 data->InitializePlatformSpecific(arraysize(registers), registers); | 177 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 178 } | 178 } |
| 179 | 179 |
| 180 | 180 |
| 181 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 181 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
| 182 CallInterfaceDescriptorData* data) { | 182 CallInterfaceDescriptorData* data) { |
| 183 Register registers[] = {r5, r4, r3}; | 183 Register registers[] = {r5, r4, r3}; |
| 184 data->InitializePlatformSpecific(arraysize(registers), registers); | 184 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 185 } | 185 } |
| 186 | 186 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 r4, // math rounding function | 356 r4, // math rounding function |
| 357 r6, // vector slot id | 357 r6, // vector slot id |
| 358 r7, // type vector | 358 r7, // type vector |
| 359 }; | 359 }; |
| 360 data->InitializePlatformSpecific(arraysize(registers), registers); | 360 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 361 } | 361 } |
| 362 } // namespace internal | 362 } // namespace internal |
| 363 } // namespace v8 | 363 } // namespace v8 |
| 364 | 364 |
| 365 #endif // V8_TARGET_ARCH_PPC | 365 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |