| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 Register registers[] = {r4}; | 278 Register registers[] = {r4}; |
| 279 data->InitializePlatformSpecific(arraysize(registers), registers); | 279 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 280 } | 280 } |
| 281 | 281 |
| 282 void StringAddDescriptor::InitializePlatformSpecific( | 282 void StringAddDescriptor::InitializePlatformSpecific( |
| 283 CallInterfaceDescriptorData* data) { | 283 CallInterfaceDescriptorData* data) { |
| 284 Register registers[] = {r4, r3}; | 284 Register registers[] = {r4, r3}; |
| 285 data->InitializePlatformSpecific(arraysize(registers), registers); | 285 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 286 } | 286 } |
| 287 | 287 |
| 288 | |
| 289 void KeyedDescriptor::InitializePlatformSpecific( | |
| 290 CallInterfaceDescriptorData* data) { | |
| 291 Register registers[] = { | |
| 292 r5, // key | |
| 293 }; | |
| 294 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 295 } | |
| 296 | |
| 297 | |
| 298 void NamedDescriptor::InitializePlatformSpecific( | |
| 299 CallInterfaceDescriptorData* data) { | |
| 300 Register registers[] = { | |
| 301 r5, // name | |
| 302 }; | |
| 303 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 304 } | |
| 305 | |
| 306 | |
| 307 void CallHandlerDescriptor::InitializePlatformSpecific( | |
| 308 CallInterfaceDescriptorData* data) { | |
| 309 Register registers[] = { | |
| 310 r3, // receiver | |
| 311 }; | |
| 312 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 313 } | |
| 314 | |
| 315 | |
| 316 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( | 288 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
| 317 CallInterfaceDescriptorData* data) { | 289 CallInterfaceDescriptorData* data) { |
| 318 Register registers[] = { | 290 Register registers[] = { |
| 319 r4, // JSFunction | 291 r4, // JSFunction |
| 320 r6, // the new target | 292 r6, // the new target |
| 321 r3, // actual number of arguments | 293 r3, // actual number of arguments |
| 322 r5, // expected number of arguments | 294 r5, // expected number of arguments |
| 323 }; | 295 }; |
| 324 data->InitializePlatformSpecific(arraysize(registers), registers); | 296 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 325 } | 297 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 Register registers[] = { | 373 Register registers[] = { |
| 402 r4, // loaded new FP | 374 r4, // loaded new FP |
| 403 }; | 375 }; |
| 404 data->InitializePlatformSpecific(arraysize(registers), registers); | 376 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 405 } | 377 } |
| 406 | 378 |
| 407 } // namespace internal | 379 } // namespace internal |
| 408 } // namespace v8 | 380 } // namespace v8 |
| 409 | 381 |
| 410 #endif // V8_TARGET_ARCH_PPC | 382 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |