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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 | 733 |
734 // Store input value into generator object. | 734 // Store input value into generator object. |
735 __ sd(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset)); | 735 __ sd(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset)); |
736 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3, | 736 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3, |
737 kRAHasNotBeenSaved, kDontSaveFPRegs); | 737 kRAHasNotBeenSaved, kDontSaveFPRegs); |
738 | 738 |
739 // Store resume mode into generator object. | 739 // Store resume mode into generator object. |
740 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); | 740 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); |
741 | 741 |
742 // Load suspended function and context. | 742 // Load suspended function and context. |
743 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); | |
744 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); | 743 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); |
| 744 __ ld(cp, FieldMemOperand(a4, JSFunction::kContextOffset)); |
745 | 745 |
746 // Flood function if we are stepping. | 746 // Flood function if we are stepping. |
747 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; | 747 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; |
748 Label stepping_prepared; | 748 Label stepping_prepared; |
749 ExternalReference debug_hook = | 749 ExternalReference debug_hook = |
750 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); | 750 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); |
751 __ li(a5, Operand(debug_hook)); | 751 __ li(a5, Operand(debug_hook)); |
752 __ lb(a5, MemOperand(a5)); | 752 __ lb(a5, MemOperand(a5)); |
753 __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg)); | 753 __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg)); |
754 | 754 |
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2988 __ break_(0xCC); | 2988 __ break_(0xCC); |
2989 } | 2989 } |
2990 } | 2990 } |
2991 | 2991 |
2992 #undef __ | 2992 #undef __ |
2993 | 2993 |
2994 } // namespace internal | 2994 } // namespace internal |
2995 } // namespace v8 | 2995 } // namespace v8 |
2996 | 2996 |
2997 #endif // V8_TARGET_ARCH_MIPS64 | 2997 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |