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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 r4 // the runtime function to call | 384 r4 // the runtime function to call |
385 }; | 385 }; |
386 data->InitializePlatformSpecific(arraysize(registers), registers); | 386 data->InitializePlatformSpecific(arraysize(registers), registers); |
387 } | 387 } |
388 | 388 |
389 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 389 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
390 CallInterfaceDescriptorData* data) { | 390 CallInterfaceDescriptorData* data) { |
391 Register registers[] = { | 391 Register registers[] = { |
392 r3, // the value to pass to the generator | 392 r3, // the value to pass to the generator |
393 r4, // the JSGeneratorObject to resume | 393 r4, // the JSGeneratorObject to resume |
394 r5 // the resume mode (tagged) | 394 r5, // the resume mode (tagged) |
| 395 r6 // SuspendFlags (tagged) |
395 }; | 396 }; |
396 data->InitializePlatformSpecific(arraysize(registers), registers); | 397 data->InitializePlatformSpecific(arraysize(registers), registers); |
397 } | 398 } |
398 | 399 |
399 void FrameDropperTrampolineDescriptor::InitializePlatformSpecific( | 400 void FrameDropperTrampolineDescriptor::InitializePlatformSpecific( |
400 CallInterfaceDescriptorData* data) { | 401 CallInterfaceDescriptorData* data) { |
401 Register registers[] = { | 402 Register registers[] = { |
402 r4, // loaded new FP | 403 r4, // loaded new FP |
403 }; | 404 }; |
404 data->InitializePlatformSpecific(arraysize(registers), registers); | 405 data->InitializePlatformSpecific(arraysize(registers), registers); |
405 } | 406 } |
406 | 407 |
407 } // namespace internal | 408 } // namespace internal |
408 } // namespace v8 | 409 } // namespace v8 |
409 | 410 |
410 #endif // V8_TARGET_ARCH_PPC | 411 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |