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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 ExternalReference::debug_step_in_enabled_address(masm->isolate()); | 847 ExternalReference::debug_step_in_enabled_address(masm->isolate()); |
848 __ li(t1, Operand(step_in_enabled)); | 848 __ li(t1, Operand(step_in_enabled)); |
849 __ lb(t1, MemOperand(t1)); | 849 __ lb(t1, MemOperand(t1)); |
850 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg)); | 850 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg)); |
851 | 851 |
852 // Flood function if we need to continue stepping in the suspended generator. | 852 // Flood function if we need to continue stepping in the suspended generator. |
853 ExternalReference debug_suspended_generator = | 853 ExternalReference debug_suspended_generator = |
854 ExternalReference::debug_suspended_generator_address(masm->isolate()); | 854 ExternalReference::debug_suspended_generator_address(masm->isolate()); |
855 __ li(t1, Operand(debug_suspended_generator)); | 855 __ li(t1, Operand(debug_suspended_generator)); |
856 __ lw(t1, MemOperand(t1)); | 856 __ lw(t1, MemOperand(t1)); |
857 __ Branch(&prepare_step_in_suspended_generator, eq, t1, Operand(zero_reg)); | 857 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(t1)); |
858 __ bind(&stepping_prepared); | 858 __ bind(&stepping_prepared); |
859 | 859 |
860 // Push receiver. | 860 // Push receiver. |
861 __ lw(t1, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); | 861 __ lw(t1, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); |
862 __ Push(t1); | 862 __ Push(t1); |
863 | 863 |
864 // ----------- S t a t e ------------- | 864 // ----------- S t a t e ------------- |
865 // -- a1 : the JSGeneratorObject to resume | 865 // -- a1 : the JSGeneratorObject to resume |
866 // -- a2 : the resume mode (tagged) | 866 // -- a2 : the resume mode (tagged) |
867 // -- t0 : generator function | 867 // -- t0 : generator function |
(...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2881 } | 2881 } |
2882 } | 2882 } |
2883 | 2883 |
2884 | 2884 |
2885 #undef __ | 2885 #undef __ |
2886 | 2886 |
2887 } // namespace internal | 2887 } // namespace internal |
2888 } // namespace v8 | 2888 } // namespace v8 |
2889 | 2889 |
2890 #endif // V8_TARGET_ARCH_MIPS | 2890 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |