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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { | 673 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
674 // ----------- S t a t e ------------- | 674 // ----------- S t a t e ------------- |
675 // -- v0 : the value to pass to the generator | 675 // -- v0 : the value to pass to the generator |
676 // -- a1 : the JSGeneratorObject to resume | 676 // -- a1 : the JSGeneratorObject to resume |
677 // -- a2 : the resume mode (tagged) | 677 // -- a2 : the resume mode (tagged) |
678 // -- ra : return address | 678 // -- ra : return address |
679 // ----------------------------------- | 679 // ----------------------------------- |
680 __ AssertGeneratorObject(a1); | 680 __ AssertGeneratorObject(a1); |
681 | 681 |
682 // Store input value into generator object. | 682 // Store input value into generator object. |
683 __ sd(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOffset)); | 683 __ sd(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset)); |
684 __ RecordWriteField(a1, JSGeneratorObject::kInputOffset, v0, a3, | 684 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3, |
685 kRAHasNotBeenSaved, kDontSaveFPRegs); | 685 kRAHasNotBeenSaved, kDontSaveFPRegs); |
686 | 686 |
687 // Store resume mode into generator object. | 687 // Store resume mode into generator object. |
688 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); | 688 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); |
689 | 689 |
690 // Load suspended function and context. | 690 // Load suspended function and context. |
691 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); | 691 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); |
692 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); | 692 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); |
693 | 693 |
694 // Flood function if we are stepping. | 694 // Flood function if we are stepping. |
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2945 } | 2945 } |
2946 } | 2946 } |
2947 | 2947 |
2948 | 2948 |
2949 #undef __ | 2949 #undef __ |
2950 | 2950 |
2951 } // namespace internal | 2951 } // namespace internal |
2952 } // namespace v8 | 2952 } // namespace v8 |
2953 | 2953 |
2954 #endif // V8_TARGET_ARCH_MIPS64 | 2954 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |