| 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/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 // -- r5 : the resume mode (tagged) | 665 // -- r5 : the resume mode (tagged) |
| 666 // -- r6 : the SuspendFlags of the earlier suspend call (tagged) | 666 // -- r6 : the SuspendFlags of the earlier suspend call (tagged) |
| 667 // -- lr : return address | 667 // -- lr : return address |
| 668 // ----------------------------------- | 668 // ----------------------------------- |
| 669 __ SmiUntag(r6); | 669 __ SmiUntag(r6); |
| 670 __ AssertGeneratorObject(r4, r6); | 670 __ AssertGeneratorObject(r4, r6); |
| 671 | 671 |
| 672 // Store input value into generator object. | 672 // Store input value into generator object. |
| 673 Label async_await, done_store_input; | 673 Label async_await, done_store_input; |
| 674 | 674 |
| 675 __ And(r6, r6, Operand(static_cast<int>(SuspendFlags::kAsyncGeneratorAwait))); | 675 __ andi(r6, r6, |
| 676 Operand(static_cast<int>(SuspendFlags::kAsyncGeneratorAwait))); |
| 676 __ cmpi(r6, Operand(static_cast<int>(SuspendFlags::kAsyncGeneratorAwait))); | 677 __ cmpi(r6, Operand(static_cast<int>(SuspendFlags::kAsyncGeneratorAwait))); |
| 677 __ beq(&async_await); | 678 __ beq(&async_await); |
| 678 | 679 |
| 679 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset), | 680 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset), |
| 680 r0); | 681 r0); |
| 681 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6, | 682 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6, |
| 682 kLRHasNotBeenSaved, kDontSaveFPRegs); | 683 kLRHasNotBeenSaved, kDontSaveFPRegs); |
| 683 __ b(&done_store_input); | 684 __ b(&done_store_input); |
| 684 | 685 |
| 685 __ bind(&async_await); | 686 __ bind(&async_await); |
| (...skipping 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3077 } | 3078 } |
| 3078 // Now jump to the instructions of the returned code object. | 3079 // Now jump to the instructions of the returned code object. |
| 3079 __ Jump(r11); | 3080 __ Jump(r11); |
| 3080 } | 3081 } |
| 3081 | 3082 |
| 3082 #undef __ | 3083 #undef __ |
| 3083 } // namespace internal | 3084 } // namespace internal |
| 3084 } // namespace v8 | 3085 } // namespace v8 |
| 3085 | 3086 |
| 3086 #endif // V8_TARGET_ARCH_PPC | 3087 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |