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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { | 684 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
685 // ----------- S t a t e ------------- | 685 // ----------- S t a t e ------------- |
686 // -- r3 : the value to pass to the generator | 686 // -- r3 : the value to pass to the generator |
687 // -- r4 : the JSGeneratorObject to resume | 687 // -- r4 : the JSGeneratorObject to resume |
688 // -- r5 : the resume mode (tagged) | 688 // -- r5 : the resume mode (tagged) |
689 // -- lr : return address | 689 // -- lr : return address |
690 // ----------------------------------- | 690 // ----------------------------------- |
691 __ AssertGeneratorObject(r4); | 691 __ AssertGeneratorObject(r4); |
692 | 692 |
693 // Store input value into generator object. | 693 // Store input value into generator object. |
694 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOffset), r0); | 694 __ StoreP(r3, FieldMemOperand(r4, JSGeneratorObject::kInputOrDebugPosOffset), |
695 __ RecordWriteField(r4, JSGeneratorObject::kInputOffset, r3, r6, | 695 r0); |
| 696 __ RecordWriteField(r4, JSGeneratorObject::kInputOrDebugPosOffset, r3, r6, |
696 kLRHasNotBeenSaved, kDontSaveFPRegs); | 697 kLRHasNotBeenSaved, kDontSaveFPRegs); |
697 | 698 |
698 // Store resume mode into generator object. | 699 // Store resume mode into generator object. |
699 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0); | 700 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0); |
700 | 701 |
701 // Load suspended function and context. | 702 // Load suspended function and context. |
702 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset)); | 703 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset)); |
703 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); | 704 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); |
704 | 705 |
705 // Flood function if we are stepping. | 706 // Flood function if we are stepping. |
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2930 __ bkpt(0); | 2931 __ bkpt(0); |
2931 } | 2932 } |
2932 } | 2933 } |
2933 | 2934 |
2934 | 2935 |
2935 #undef __ | 2936 #undef __ |
2936 } // namespace internal | 2937 } // namespace internal |
2937 } // namespace v8 | 2938 } // namespace v8 |
2938 | 2939 |
2939 #endif // V8_TARGET_ARCH_PPC | 2940 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |