OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { | 808 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
809 // ----------- S t a t e ------------- | 809 // ----------- S t a t e ------------- |
810 // -- v0 : the value to pass to the generator | 810 // -- v0 : the value to pass to the generator |
811 // -- a1 : the JSGeneratorObject to resume | 811 // -- a1 : the JSGeneratorObject to resume |
812 // -- a2 : the resume mode (tagged) | 812 // -- a2 : the resume mode (tagged) |
813 // -- ra : return address | 813 // -- ra : return address |
814 // ----------------------------------- | 814 // ----------------------------------- |
815 __ AssertGeneratorObject(a1); | 815 __ AssertGeneratorObject(a1); |
816 | 816 |
817 // Store input value into generator object. | 817 // Store input value into generator object. |
818 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOffset)); | 818 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset)); |
819 __ RecordWriteField(a1, JSGeneratorObject::kInputOffset, v0, a3, | 819 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3, |
820 kRAHasNotBeenSaved, kDontSaveFPRegs); | 820 kRAHasNotBeenSaved, kDontSaveFPRegs); |
821 | 821 |
822 // Store resume mode into generator object. | 822 // Store resume mode into generator object. |
823 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); | 823 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); |
824 | 824 |
825 // Load suspended function and context. | 825 // Load suspended function and context. |
826 __ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); | 826 __ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); |
827 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); | 827 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); |
828 | 828 |
829 // Flood function if we are stepping. | 829 // Flood function if we are stepping. |
(...skipping 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2957 } | 2957 } |
2958 } | 2958 } |
2959 | 2959 |
2960 | 2960 |
2961 #undef __ | 2961 #undef __ |
2962 | 2962 |
2963 } // namespace internal | 2963 } // namespace internal |
2964 } // namespace v8 | 2964 } // namespace v8 |
2965 | 2965 |
2966 #endif // V8_TARGET_ARCH_MIPS | 2966 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |