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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // Store resume mode into generator object. | 698 // Store resume mode into generator object. |
699 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); | 699 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); |
700 | 700 |
701 // Load suspended function and context. | 701 // Load suspended function and context. |
702 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); | 702 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); |
703 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); | 703 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); |
704 | 704 |
705 // Flood function if we are stepping. | 705 // Flood function if we are stepping. |
706 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; | 706 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; |
707 Label stepping_prepared; | 707 Label stepping_prepared; |
708 ExternalReference step_in_enabled = | 708 ExternalReference last_step_action = |
709 ExternalReference::debug_step_in_enabled_address(masm->isolate()); | 709 ExternalReference::debug_last_step_action_address(masm->isolate()); |
710 __ li(a5, Operand(step_in_enabled)); | 710 STATIC_ASSERT(StepFrame > StepIn); |
| 711 __ li(a5, Operand(last_step_action)); |
711 __ lb(a5, MemOperand(a5)); | 712 __ lb(a5, MemOperand(a5)); |
712 __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg)); | 713 __ Branch(&prepare_step_in_if_stepping, ge, a5, Operand(StepIn)); |
713 | 714 |
714 // Flood function if we need to continue stepping in the suspended generator. | 715 // Flood function if we need to continue stepping in the suspended generator. |
715 ExternalReference debug_suspended_generator = | 716 ExternalReference debug_suspended_generator = |
716 ExternalReference::debug_suspended_generator_address(masm->isolate()); | 717 ExternalReference::debug_suspended_generator_address(masm->isolate()); |
717 __ li(a5, Operand(debug_suspended_generator)); | 718 __ li(a5, Operand(debug_suspended_generator)); |
718 __ ld(a5, MemOperand(a5)); | 719 __ ld(a5, MemOperand(a5)); |
719 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5)); | 720 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5)); |
720 __ bind(&stepping_prepared); | 721 __ bind(&stepping_prepared); |
721 | 722 |
722 // Push receiver. | 723 // Push receiver. |
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2945 } | 2946 } |
2946 } | 2947 } |
2947 | 2948 |
2948 | 2949 |
2949 #undef __ | 2950 #undef __ |
2950 | 2951 |
2951 } // namespace internal | 2952 } // namespace internal |
2952 } // namespace v8 | 2953 } // namespace v8 |
2953 | 2954 |
2954 #endif // V8_TARGET_ARCH_MIPS64 | 2955 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |