| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void CallTrampolineDescriptor::InitializePlatformSpecific( | 148 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 149 CallInterfaceDescriptorData* data) { | 149 CallInterfaceDescriptorData* data) { |
| 150 // r3 : number of arguments | 150 // r3 : number of arguments |
| 151 // r4 : the target to call | 151 // r4 : the target to call |
| 152 Register registers[] = {r4, r3}; | 152 Register registers[] = {r4, r3}; |
| 153 data->InitializePlatformSpecific(arraysize(registers), registers); | 153 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( | 156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
| 157 CallInterfaceDescriptorData* data) { | 157 CallInterfaceDescriptorData* data) { |
| 158 // r3 : number of arguments |
| 158 // r5 : start index (to support rest parameters) | 159 // r5 : start index (to support rest parameters) |
| 159 // r4 : the target to call | 160 // r4 : the target to call |
| 160 Register registers[] = {r4, r5}; | 161 Register registers[] = {r4, r3, r5}; |
| 161 data->InitializePlatformSpecific(arraysize(registers), registers); | 162 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 162 } | 163 } |
| 163 | 164 |
| 165 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
| 166 CallInterfaceDescriptorData* data) { |
| 167 // r3 : number of arguments |
| 168 // r6 : the new target |
| 169 // r5 : start index (to support rest parameters) |
| 170 // r4 : the target to call |
| 171 Register registers[] = {r4, r6, r3, r5}; |
| 172 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 173 } |
| 174 |
| 164 void ConstructStubDescriptor::InitializePlatformSpecific( | 175 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 165 CallInterfaceDescriptorData* data) { | 176 CallInterfaceDescriptorData* data) { |
| 166 // r3 : number of arguments | 177 // r3 : number of arguments |
| 167 // r4 : the target to call | 178 // r4 : the target to call |
| 168 // r6 : the new target | 179 // r6 : the new target |
| 169 // r5 : allocation site or undefined | 180 // r5 : allocation site or undefined |
| 170 Register registers[] = {r4, r6, r3, r5}; | 181 Register registers[] = {r4, r6, r3, r5}; |
| 171 data->InitializePlatformSpecific(arraysize(registers), registers); | 182 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 172 } | 183 } |
| 173 | 184 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 Register registers[] = { | 380 Register registers[] = { |
| 370 r4, // loaded new FP | 381 r4, // loaded new FP |
| 371 }; | 382 }; |
| 372 data->InitializePlatformSpecific(arraysize(registers), registers); | 383 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 373 } | 384 } |
| 374 | 385 |
| 375 } // namespace internal | 386 } // namespace internal |
| 376 } // namespace v8 | 387 } // namespace v8 |
| 377 | 388 |
| 378 #endif // V8_TARGET_ARCH_PPC | 389 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |