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

Side by Side Diff: src/builtins/arm/builtins-arm.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/assembler.cc ('k') | src/builtins/arm64/builtins-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 // Store resume mode into generator object. 736 // Store resume mode into generator object.
737 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kResumeModeOffset)); 737 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kResumeModeOffset));
738 738
739 // Load suspended function and context. 739 // Load suspended function and context.
740 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset)); 740 __ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset));
741 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); 741 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset));
742 742
743 // Flood function if we are stepping. 743 // Flood function if we are stepping.
744 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; 744 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
745 Label stepping_prepared; 745 Label stepping_prepared;
746 ExternalReference last_step_action = 746 ExternalReference debug_hook =
747 ExternalReference::debug_last_step_action_address(masm->isolate()); 747 ExternalReference::debug_hook_on_function_call_address(masm->isolate());
748 STATIC_ASSERT(StepFrame > StepIn); 748 __ mov(ip, Operand(debug_hook));
749 __ mov(ip, Operand(last_step_action));
750 __ ldrsb(ip, MemOperand(ip)); 749 __ ldrsb(ip, MemOperand(ip));
751 __ cmp(ip, Operand(StepIn)); 750 __ cmp(ip, Operand(0));
752 __ b(ge, &prepare_step_in_if_stepping); 751 __ b(ne, &prepare_step_in_if_stepping);
753 752
754 // Flood function if we need to continue stepping in the suspended generator. 753 // Flood function if we need to continue stepping in the suspended generator.
755 ExternalReference debug_suspended_generator = 754 ExternalReference debug_suspended_generator =
756 ExternalReference::debug_suspended_generator_address(masm->isolate()); 755 ExternalReference::debug_suspended_generator_address(masm->isolate());
757 __ mov(ip, Operand(debug_suspended_generator)); 756 __ mov(ip, Operand(debug_suspended_generator));
758 __ ldr(ip, MemOperand(ip)); 757 __ ldr(ip, MemOperand(ip));
759 __ cmp(ip, Operand(r1)); 758 __ cmp(ip, Operand(r1));
760 __ b(eq, &prepare_step_in_suspended_generator); 759 __ b(eq, &prepare_step_in_suspended_generator);
761 __ bind(&stepping_prepared); 760 __ bind(&stepping_prepared);
762 761
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 __ Move(r3, r1); 809 __ Move(r3, r1);
811 __ Move(r1, r4); 810 __ Move(r1, r4);
812 __ ldr(r5, FieldMemOperand(r1, JSFunction::kCodeEntryOffset)); 811 __ ldr(r5, FieldMemOperand(r1, JSFunction::kCodeEntryOffset));
813 __ Jump(r5); 812 __ Jump(r5);
814 } 813 }
815 814
816 __ bind(&prepare_step_in_if_stepping); 815 __ bind(&prepare_step_in_if_stepping);
817 { 816 {
818 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 817 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
819 __ Push(r1, r2, r4); 818 __ Push(r1, r2, r4);
820 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); 819 __ CallRuntime(Runtime::kDebugOnFunctionCall);
821 __ Pop(r1, r2); 820 __ Pop(r1, r2);
822 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); 821 __ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset));
823 } 822 }
824 __ b(&stepping_prepared); 823 __ b(&stepping_prepared);
825 824
826 __ bind(&prepare_step_in_suspended_generator); 825 __ bind(&prepare_step_in_suspended_generator);
827 { 826 {
828 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 827 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
829 __ Push(r1, r2); 828 __ Push(r1, r2);
830 __ CallRuntime(Runtime::kDebugPrepareStepInSuspendedGenerator); 829 __ CallRuntime(Runtime::kDebugPrepareStepInSuspendedGenerator);
(...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 __ bkpt(0); 2886 __ bkpt(0);
2888 } 2887 }
2889 } 2888 }
2890 2889
2891 #undef __ 2890 #undef __
2892 2891
2893 } // namespace internal 2892 } // namespace internal
2894 } // namespace v8 2893 } // namespace v8
2895 2894
2896 #endif // V8_TARGET_ARCH_ARM 2895 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/builtins/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698