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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 ExternalReference step_in_enabled = | 711 ExternalReference step_in_enabled = |
712 ExternalReference::debug_step_in_enabled_address(masm->isolate()); | 712 ExternalReference::debug_step_in_enabled_address(masm->isolate()); |
713 __ li(a5, Operand(step_in_enabled)); | 713 __ li(a5, Operand(step_in_enabled)); |
714 __ lb(a5, MemOperand(a5)); | 714 __ lb(a5, MemOperand(a5)); |
715 __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg)); | 715 __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg)); |
716 | 716 |
717 // Flood function if we need to continue stepping in the suspended generator. | 717 // Flood function if we need to continue stepping in the suspended generator. |
718 ExternalReference debug_suspended_generator = | 718 ExternalReference debug_suspended_generator = |
719 ExternalReference::debug_suspended_generator_address(masm->isolate()); | 719 ExternalReference::debug_suspended_generator_address(masm->isolate()); |
720 __ li(a5, Operand(debug_suspended_generator)); | 720 __ li(a5, Operand(debug_suspended_generator)); |
721 __ lw(a5, MemOperand(a5)); | 721 __ ld(a5, MemOperand(a5)); |
722 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5)); | 722 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5)); |
723 __ bind(&stepping_prepared); | 723 __ bind(&stepping_prepared); |
724 | 724 |
725 // Push receiver. | 725 // Push receiver. |
726 __ ld(a5, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); | 726 __ ld(a5, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); |
727 __ Push(a5); | 727 __ Push(a5); |
728 | 728 |
729 // ----------- S t a t e ------------- | 729 // ----------- S t a t e ------------- |
730 // -- a1 : the JSGeneratorObject to resume | 730 // -- a1 : the JSGeneratorObject to resume |
731 // -- a2 : the resume mode (tagged) | 731 // -- a2 : the resume mode (tagged) |
(...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2870 } | 2870 } |
2871 } | 2871 } |
2872 | 2872 |
2873 | 2873 |
2874 #undef __ | 2874 #undef __ |
2875 | 2875 |
2876 } // namespace internal | 2876 } // namespace internal |
2877 } // namespace v8 | 2877 } // namespace v8 |
2878 | 2878 |
2879 #endif // V8_TARGET_ARCH_MIPS64 | 2879 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |