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

Side by Side Diff: src/builtins/mips64/builtins-mips64.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/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.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_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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 // Store resume mode into generator object. 739 // Store resume mode into generator object.
740 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset)); 740 __ sd(a2, FieldMemOperand(a1, JSGeneratorObject::kResumeModeOffset));
741 741
742 // Load suspended function and context. 742 // Load suspended function and context.
743 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); 743 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset));
744 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 744 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
745 745
746 // Flood function if we are stepping. 746 // Flood function if we are stepping.
747 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; 747 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
748 Label stepping_prepared; 748 Label stepping_prepared;
749 ExternalReference last_step_action = 749 ExternalReference debug_hook =
750 ExternalReference::debug_last_step_action_address(masm->isolate()); 750 ExternalReference::debug_hook_on_function_call_address(masm->isolate());
751 STATIC_ASSERT(StepFrame > StepIn); 751 __ li(a5, Operand(debug_hook));
752 __ li(a5, Operand(last_step_action));
753 __ lb(a5, MemOperand(a5)); 752 __ lb(a5, MemOperand(a5));
754 __ Branch(&prepare_step_in_if_stepping, ge, a5, Operand(StepIn)); 753 __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg));
755 754
756 // Flood function if we need to continue stepping in the suspended generator. 755 // Flood function if we need to continue stepping in the suspended generator.
757 ExternalReference debug_suspended_generator = 756 ExternalReference debug_suspended_generator =
758 ExternalReference::debug_suspended_generator_address(masm->isolate()); 757 ExternalReference::debug_suspended_generator_address(masm->isolate());
759 __ li(a5, Operand(debug_suspended_generator)); 758 __ li(a5, Operand(debug_suspended_generator));
760 __ ld(a5, MemOperand(a5)); 759 __ ld(a5, MemOperand(a5));
761 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5)); 760 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5));
762 __ bind(&stepping_prepared); 761 __ bind(&stepping_prepared);
763 762
764 // Push receiver. 763 // Push receiver.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 __ Move(a3, a1); 809 __ Move(a3, a1);
811 __ Move(a1, a4); 810 __ Move(a1, a4);
812 __ ld(a2, FieldMemOperand(a1, JSFunction::kCodeEntryOffset)); 811 __ ld(a2, FieldMemOperand(a1, JSFunction::kCodeEntryOffset));
813 __ Jump(a2); 812 __ Jump(a2);
814 } 813 }
815 814
816 __ bind(&prepare_step_in_if_stepping); 815 __ bind(&prepare_step_in_if_stepping);
817 { 816 {
818 FrameScope scope(masm, StackFrame::INTERNAL); 817 FrameScope scope(masm, StackFrame::INTERNAL);
819 __ Push(a1, a2, a4); 818 __ Push(a1, a2, a4);
820 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); 819 __ CallRuntime(Runtime::kDebugOnFunctionCall);
821 __ Pop(a1, a2); 820 __ Pop(a1, a2);
822 } 821 }
823 __ Branch(USE_DELAY_SLOT, &stepping_prepared); 822 __ Branch(USE_DELAY_SLOT, &stepping_prepared);
824 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 823 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
825 824
826 __ bind(&prepare_step_in_suspended_generator); 825 __ bind(&prepare_step_in_suspended_generator);
827 { 826 {
828 FrameScope scope(masm, StackFrame::INTERNAL); 827 FrameScope scope(masm, StackFrame::INTERNAL);
829 __ Push(a1, a2); 828 __ Push(a1, a2);
830 __ CallRuntime(Runtime::kDebugPrepareStepInSuspendedGenerator); 829 __ CallRuntime(Runtime::kDebugPrepareStepInSuspendedGenerator);
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 __ break_(0xCC); 2996 __ break_(0xCC);
2998 } 2997 }
2999 } 2998 }
3000 2999
3001 #undef __ 3000 #undef __
3002 3001
3003 } // namespace internal 3002 } // namespace internal
3004 } // namespace v8 3003 } // namespace v8
3005 3004
3006 #endif // V8_TARGET_ARCH_MIPS64 3005 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698