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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 | 857 |
858 // Store input value into generator object. | 858 // Store input value into generator object. |
859 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset)); | 859 __ sw(v0, FieldMemOperand(a1, JSGeneratorObject::kInputOrDebugPosOffset)); |
860 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3, | 860 __ RecordWriteField(a1, JSGeneratorObject::kInputOrDebugPosOffset, v0, a3, |
861 kRAHasNotBeenSaved, kDontSaveFPRegs); | 861 kRAHasNotBeenSaved, kDontSaveFPRegs); |
862 | 862 |
863 // Store resume mode into generator object. | 863 // Store resume mode into generator object. |
864 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); | 864 __ sw(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); |
865 | 865 |
866 // Load suspended function and context. | 866 // Load suspended function and context. |
867 __ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); | |
868 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); | 867 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); |
| 868 __ lw(cp, FieldMemOperand(t0, JSFunction::kContextOffset)); |
869 | 869 |
870 // Flood function if we are stepping. | 870 // Flood function if we are stepping. |
871 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; | 871 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; |
872 Label stepping_prepared; | 872 Label stepping_prepared; |
873 ExternalReference debug_hook = | 873 ExternalReference debug_hook = |
874 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); | 874 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); |
875 __ li(t1, Operand(debug_hook)); | 875 __ li(t1, Operand(debug_hook)); |
876 __ lb(t1, MemOperand(t1)); | 876 __ lb(t1, MemOperand(t1)); |
877 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg)); | 877 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg)); |
878 | 878 |
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2962 __ break_(0xCC); | 2962 __ break_(0xCC); |
2963 } | 2963 } |
2964 } | 2964 } |
2965 | 2965 |
2966 #undef __ | 2966 #undef __ |
2967 | 2967 |
2968 } // namespace internal | 2968 } // namespace internal |
2969 } // namespace v8 | 2969 } // namespace v8 |
2970 | 2970 |
2971 #endif // V8_TARGET_ARCH_MIPS | 2971 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |