| 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { | 672 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
| 673 // ----------- S t a t e ------------- | 673 // ----------- S t a t e ------------- |
| 674 // -- r2 : the value to pass to the generator | 674 // -- r2 : the value to pass to the generator |
| 675 // -- r3 : the JSGeneratorObject to resume | 675 // -- r3 : the JSGeneratorObject to resume |
| 676 // -- r4 : the resume mode (tagged) | 676 // -- r4 : the resume mode (tagged) |
| 677 // -- lr : return address | 677 // -- lr : return address |
| 678 // ----------------------------------- | 678 // ----------------------------------- |
| 679 __ AssertGeneratorObject(r3); | 679 __ AssertGeneratorObject(r3); |
| 680 | 680 |
| 681 // Store input value into generator object. | 681 // Store input value into generator object. |
| 682 __ StoreP(r2, FieldMemOperand(r3, JSGeneratorObject::kInputOffset), r0); | 682 __ StoreP(r2, FieldMemOperand(r3, JSGeneratorObject::kInputOrDebugPosOffset), |
| 683 __ RecordWriteField(r3, JSGeneratorObject::kInputOffset, r2, r5, | 683 r0); |
| 684 __ RecordWriteField(r3, JSGeneratorObject::kInputOrDebugPosOffset, r2, r5, |
| 684 kLRHasNotBeenSaved, kDontSaveFPRegs); | 685 kLRHasNotBeenSaved, kDontSaveFPRegs); |
| 685 | 686 |
| 686 // Store resume mode into generator object. | 687 // Store resume mode into generator object. |
| 687 __ StoreP(r4, FieldMemOperand(r3, JSGeneratorObject::kResumeModeOffset)); | 688 __ StoreP(r4, FieldMemOperand(r3, JSGeneratorObject::kResumeModeOffset)); |
| 688 | 689 |
| 689 // Load suspended function and context. | 690 // Load suspended function and context. |
| 690 __ LoadP(cp, FieldMemOperand(r3, JSGeneratorObject::kContextOffset)); | 691 __ LoadP(cp, FieldMemOperand(r3, JSGeneratorObject::kContextOffset)); |
| 691 __ LoadP(r6, FieldMemOperand(r3, JSGeneratorObject::kFunctionOffset)); | 692 __ LoadP(r6, FieldMemOperand(r3, JSGeneratorObject::kFunctionOffset)); |
| 692 | 693 |
| 693 // Flood function if we are stepping. | 694 // Flood function if we are stepping. |
| (...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2895 __ bkpt(0); | 2896 __ bkpt(0); |
| 2896 } | 2897 } |
| 2897 } | 2898 } |
| 2898 | 2899 |
| 2899 #undef __ | 2900 #undef __ |
| 2900 | 2901 |
| 2901 } // namespace internal | 2902 } // namespace internal |
| 2902 } // namespace v8 | 2903 } // namespace v8 |
| 2903 | 2904 |
| 2904 #endif // V8_TARGET_ARCH_S390 | 2905 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |