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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { | 686 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
687 // ----------- S t a t e ------------- | 687 // ----------- S t a t e ------------- |
688 // -- r0 : the value to pass to the generator | 688 // -- r0 : the value to pass to the generator |
689 // -- r1 : the JSGeneratorObject to resume | 689 // -- r1 : the JSGeneratorObject to resume |
690 // -- r2 : the resume mode (tagged) | 690 // -- r2 : the resume mode (tagged) |
691 // -- lr : return address | 691 // -- lr : return address |
692 // ----------------------------------- | 692 // ----------------------------------- |
693 __ AssertGeneratorObject(r1); | 693 __ AssertGeneratorObject(r1); |
694 | 694 |
695 // Store input value into generator object. | 695 // Store input value into generator object. |
696 __ str(r0, FieldMemOperand(r1, JSGeneratorObject::kInputOffset)); | 696 __ str(r0, FieldMemOperand(r1, JSGeneratorObject::kInputOrDebugPosOffset)); |
697 __ RecordWriteField(r1, JSGeneratorObject::kInputOffset, r0, r3, | 697 __ RecordWriteField(r1, JSGeneratorObject::kInputOrDebugPosOffset, r0, r3, |
698 kLRHasNotBeenSaved, kDontSaveFPRegs); | 698 kLRHasNotBeenSaved, kDontSaveFPRegs); |
699 | 699 |
700 // Store resume mode into generator object. | 700 // Store resume mode into generator object. |
701 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kResumeModeOffset)); | 701 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kResumeModeOffset)); |
702 | 702 |
703 // Load suspended function and context. | 703 // Load suspended function and context. |
704 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset)); | 704 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset)); |
705 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); | 705 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); |
706 | 706 |
707 // Flood function if we are stepping. | 707 // Flood function if we are stepping. |
(...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2863 } | 2863 } |
2864 } | 2864 } |
2865 | 2865 |
2866 | 2866 |
2867 #undef __ | 2867 #undef __ |
2868 | 2868 |
2869 } // namespace internal | 2869 } // namespace internal |
2870 } // namespace v8 | 2870 } // namespace v8 |
2871 | 2871 |
2872 #endif // V8_TARGET_ARCH_ARM | 2872 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |