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

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

Issue 2045553002: MIPS: Fix '[debug] implement intuitive semantics for stepping over await call.' (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 | « src/mips/builtins-mips.cc ('k') | no next file » | 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 703
704 // Load suspended function and context. 704 // Load suspended function and context.
705 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); 705 __ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset));
706 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); 706 __ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset));
707 707
708 // Flood function if we are stepping. 708 // Flood function if we are stepping.
709 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; 709 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
710 Label stepping_prepared; 710 Label stepping_prepared;
711 ExternalReference step_in_enabled = 711 ExternalReference step_in_enabled =
712 ExternalReference::debug_step_in_enabled_address(masm->isolate()); 712 ExternalReference::debug_step_in_enabled_address(masm->isolate());
713 __ li(t1, Operand(step_in_enabled)); 713 __ li(a5, Operand(step_in_enabled));
714 __ lb(t1, MemOperand(t1)); 714 __ lb(a5, MemOperand(a5));
715 __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg)); 715 __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg));
716 716
717 // Flood function if we need to continue stepping in the suspended generator. 717 // Flood function if we need to continue stepping in the suspended generator.
718 ExternalReference debug_suspended_generator = 718 ExternalReference debug_suspended_generator =
719 ExternalReference::debug_suspended_generator_address(masm->isolate()); 719 ExternalReference::debug_suspended_generator_address(masm->isolate());
720 __ li(t1, Operand(debug_suspended_generator)); 720 __ li(a5, Operand(debug_suspended_generator));
721 __ lw(t1, MemOperand(t1)); 721 __ lw(a5, MemOperand(a5));
722 __ Branch(&prepare_step_in_suspended_generator, eq, t1, Operand(zero_reg)); 722 __ Branch(&prepare_step_in_suspended_generator, eq, a1, Operand(a5));
723 __ bind(&stepping_prepared); 723 __ bind(&stepping_prepared);
724 724
725 // Push receiver. 725 // Push receiver.
726 __ ld(a5, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); 726 __ ld(a5, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset));
727 __ Push(a5); 727 __ Push(a5);
728 728
729 // ----------- S t a t e ------------- 729 // ----------- S t a t e -------------
730 // -- a1 : the JSGeneratorObject to resume 730 // -- a1 : the JSGeneratorObject to resume
731 // -- a2 : the resume mode (tagged) 731 // -- a2 : the resume mode (tagged)
732 // -- a4 : generator function 732 // -- a4 : generator function
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2870 } 2870 }
2871 } 2871 }
2872 2872
2873 2873
2874 #undef __ 2874 #undef __
2875 2875
2876 } // namespace internal 2876 } // namespace internal
2877 } // namespace v8 2877 } // namespace v8
2878 2878
2879 #endif // V8_TARGET_ARCH_MIPS64 2879 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698