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

Side by Side Diff: src/mips64/macro-assembler-mips64.cc

Issue 2068603002: [debugger] simplify debug stepping. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix completion callback 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/mips64/builtins-mips64.cc ('k') | src/runtime/runtime-debug.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 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/base/division-by-constant.h" 9 #include "src/base/division-by-constant.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 5124 matching lines...) Expand 10 before | Expand all | Expand 10 after
5135 } 5135 }
5136 bind(&regular_invoke); 5136 bind(&regular_invoke);
5137 } 5137 }
5138 } 5138 }
5139 5139
5140 5140
5141 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, 5141 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target,
5142 const ParameterCount& expected, 5142 const ParameterCount& expected,
5143 const ParameterCount& actual) { 5143 const ParameterCount& actual) {
5144 Label skip_flooding; 5144 Label skip_flooding;
5145 ExternalReference step_in_enabled = 5145 ExternalReference last_step_action =
5146 ExternalReference::debug_step_in_enabled_address(isolate()); 5146 ExternalReference::debug_last_step_action_address(isolate());
5147 li(t0, Operand(step_in_enabled)); 5147 STATIC_ASSERT(StepFrame > StepIn);
5148 li(t0, Operand(last_step_action));
5148 lb(t0, MemOperand(t0)); 5149 lb(t0, MemOperand(t0));
5149 Branch(&skip_flooding, eq, t0, Operand(zero_reg)); 5150 Branch(&skip_flooding, lt, t0, Operand(StepIn));
5150 { 5151 {
5151 FrameScope frame(this, 5152 FrameScope frame(this,
5152 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); 5153 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL);
5153 if (expected.is_reg()) { 5154 if (expected.is_reg()) {
5154 SmiTag(expected.reg()); 5155 SmiTag(expected.reg());
5155 Push(expected.reg()); 5156 Push(expected.reg());
5156 } 5157 }
5157 if (actual.is_reg()) { 5158 if (actual.is_reg()) {
5158 SmiTag(actual.reg()); 5159 SmiTag(actual.reg());
5159 Push(actual.reg()); 5160 Push(actual.reg());
(...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after
7140 if (mag.shift > 0) sra(result, result, mag.shift); 7141 if (mag.shift > 0) sra(result, result, mag.shift);
7141 srl(at, dividend, 31); 7142 srl(at, dividend, 31);
7142 Addu(result, result, Operand(at)); 7143 Addu(result, result, Operand(at));
7143 } 7144 }
7144 7145
7145 7146
7146 } // namespace internal 7147 } // namespace internal
7147 } // namespace v8 7148 } // namespace v8
7148 7149
7149 #endif // V8_TARGET_ARCH_MIPS64 7150 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698