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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 // Store input value into generator object. | 742 // Store input value into generator object. |
743 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset), | 743 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset), |
744 r0); | 744 r0); |
745 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6, | 745 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6, |
746 kLRHasNotBeenSaved, kDontSaveFPRegs); | 746 kLRHasNotBeenSaved, kDontSaveFPRegs); |
747 | 747 |
748 // Store resume mode into generator object. | 748 // Store resume mode into generator object. |
749 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0); | 749 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0); |
750 | 750 |
751 // Load suspended function and context. | 751 // Load suspended function and context. |
752 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset)); | |
753 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); | 752 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); |
| 753 __ LoadP(cp, FieldMemOperand(r7, JSFunction::kContextOffset)); |
754 | 754 |
755 // Flood function if we are stepping. | 755 // Flood function if we are stepping. |
756 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; | 756 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; |
757 Label stepping_prepared; | 757 Label stepping_prepared; |
758 ExternalReference debug_hook = | 758 ExternalReference debug_hook = |
759 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); | 759 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); |
760 __ mov(ip, Operand(debug_hook)); | 760 __ mov(ip, Operand(debug_hook)); |
761 __ LoadByte(ip, MemOperand(ip), r0); | 761 __ LoadByte(ip, MemOperand(ip), r0); |
762 __ extsb(ip, ip); | 762 __ extsb(ip, ip); |
763 __ CmpSmiLiteral(ip, Smi::kZero, r0); | 763 __ CmpSmiLiteral(ip, Smi::kZero, r0); |
(...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2964 __ CallRuntime(Runtime::kThrowStackOverflow); | 2964 __ CallRuntime(Runtime::kThrowStackOverflow); |
2965 __ bkpt(0); | 2965 __ bkpt(0); |
2966 } | 2966 } |
2967 } | 2967 } |
2968 | 2968 |
2969 #undef __ | 2969 #undef __ |
2970 } // namespace internal | 2970 } // namespace internal |
2971 } // namespace v8 | 2971 } // namespace v8 |
2972 | 2972 |
2973 #endif // V8_TARGET_ARCH_PPC | 2973 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |