Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: src/builtins/mips/builtins-mips.cc

Issue 2622863003: [debugger] infrastructure for side-effect-free debug-evaluate. (Closed)
Patch Set: fix mips one more time Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)); 867 __ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset));
868 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 868 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
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 last_step_action = 873 ExternalReference debug_hook =
874 ExternalReference::debug_last_step_action_address(masm->isolate()); 874 ExternalReference::debug_hook_on_function_call_address(masm->isolate());
875 STATIC_ASSERT(StepFrame > StepIn); 875 __ li(t1, Operand(debug_hook));
876 __ li(t1, Operand(last_step_action));
877 __ lb(t1, MemOperand(t1)); 876 __ lb(t1, MemOperand(t1));
878 __ Branch(&prepare_step_in_if_stepping, ge, t1, Operand(StepIn)); 877 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg));
879 878
880 // Flood function if we need to continue stepping in the suspended generator. 879 // Flood function if we need to continue stepping in the suspended generator.
881 ExternalReference debug_suspended_generator = 880 ExternalReference debug_suspended_generator =
882 ExternalReference::debug_suspended_generator_address(masm->isolate()); 881 ExternalReference::debug_suspended_generator_address(masm->isolate());
883 __ li(t1, Operand(debug_suspended_generator)); 882 __ li(t1, Operand(debug_suspended_generator));
884 __ lw(t1, MemOperand(t1)); 883 __ lw(t1, MemOperand(t1));
885 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(t1)); 884 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(t1));
886 __ bind(&stepping_prepared); 885 __ bind(&stepping_prepared);
887 886
888 // Push receiver. 887 // Push receiver.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 __ Move(a3, a1); 934 __ Move(a3, a1);
936 __ Move(a1, t0); 935 __ Move(a1, t0);
937 __ lw(a2, FieldMemOperand(a1, JSFunction::kCodeEntryOffset)); 936 __ lw(a2, FieldMemOperand(a1, JSFunction::kCodeEntryOffset));
938 __ Jump(a2); 937 __ Jump(a2);
939 } 938 }
940 939
941 __ bind(&prepare_step_in_if_stepping); 940 __ bind(&prepare_step_in_if_stepping);
942 { 941 {
943 FrameScope scope(masm, StackFrame::INTERNAL); 942 FrameScope scope(masm, StackFrame::INTERNAL);
944 __ Push(a1, a2, t0); 943 __ Push(a1, a2, t0);
945 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); 944 __ CallRuntime(Runtime::kDebugOnFunctionCall);
946 __ Pop(a1, a2); 945 __ Pop(a1, a2);
947 } 946 }
948 __ Branch(USE_DELAY_SLOT, &stepping_prepared); 947 __ Branch(USE_DELAY_SLOT, &stepping_prepared);
949 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 948 __ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
950 949
951 __ bind(&prepare_step_in_suspended_generator); 950 __ bind(&prepare_step_in_suspended_generator);
952 { 951 {
953 FrameScope scope(masm, StackFrame::INTERNAL); 952 FrameScope scope(masm, StackFrame::INTERNAL);
954 __ Push(a1, a2); 953 __ Push(a1, a2);
955 __ CallRuntime(Runtime::kDebugPrepareStepInSuspendedGenerator); 954 __ CallRuntime(Runtime::kDebugPrepareStepInSuspendedGenerator);
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 __ break_(0xCC); 2970 __ break_(0xCC);
2972 } 2971 }
2973 } 2972 }
2974 2973
2975 #undef __ 2974 #undef __
2976 2975
2977 } // namespace internal 2976 } // namespace internal
2978 } // namespace v8 2977 } // namespace v8
2979 2978
2980 #endif // V8_TARGET_ARCH_MIPS 2979 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/builtins/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698