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

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

Issue 2065423002: PPC: [debugger] simplify debug stepping. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | src/ppc/macro-assembler-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // Store resume mode into generator object. 715 // Store resume mode into generator object.
716 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0); 716 __ StoreP(r5, FieldMemOperand(r4, JSGeneratorObject::kResumeModeOffset), r0);
717 717
718 // Load suspended function and context. 718 // Load suspended function and context.
719 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset)); 719 __ LoadP(cp, FieldMemOperand(r4, JSGeneratorObject::kContextOffset));
720 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); 720 __ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset));
721 721
722 // Flood function if we are stepping. 722 // Flood function if we are stepping.
723 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; 723 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
724 Label stepping_prepared; 724 Label stepping_prepared;
725 ExternalReference step_in_enabled = 725 ExternalReference last_step_action =
726 ExternalReference::debug_step_in_enabled_address(masm->isolate()); 726 ExternalReference::debug_last_step_action_address(masm->isolate());
727 __ mov(ip, Operand(step_in_enabled)); 727 STATIC_ASSERT(StepFrame > StepIn);
728 __ lbz(ip, MemOperand(ip)); 728 __ mov(ip, Operand(last_step_action));
729 __ cmpi(ip, Operand::Zero()); 729 __ LoadByte(ip, MemOperand(ip), r0);
730 __ bne(&prepare_step_in_if_stepping); 730 __ extsb(ip, ip);
731 __ cmpi(ip, Operand(StepIn));
732 __ bge(&prepare_step_in_if_stepping);
731 733
732 // Flood function if we need to continue stepping in the suspended generator. 734 // Flood function if we need to continue stepping in the suspended generator.
733 735
734 ExternalReference debug_suspended_generator = 736 ExternalReference debug_suspended_generator =
735 ExternalReference::debug_suspended_generator_address(masm->isolate()); 737 ExternalReference::debug_suspended_generator_address(masm->isolate());
736 738
737 __ mov(ip, Operand(debug_suspended_generator)); 739 __ mov(ip, Operand(debug_suspended_generator));
738 __ LoadP(ip, MemOperand(ip)); 740 __ LoadP(ip, MemOperand(ip));
739 __ cmp(ip, r4); 741 __ cmp(ip, r4);
740 __ beq(&prepare_step_in_suspended_generator); 742 __ beq(&prepare_step_in_suspended_generator);
(...skipping 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after
2935 __ bkpt(0); 2937 __ bkpt(0);
2936 } 2938 }
2937 } 2939 }
2938 2940
2939 2941
2940 #undef __ 2942 #undef __
2941 } // namespace internal 2943 } // namespace internal
2942 } // namespace v8 2944 } // namespace v8
2943 2945
2944 #endif // V8_TARGET_ARCH_PPC 2946 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698