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

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

Issue 1474293002: [debugger] Remove code to predict step-in target. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips Created 5 years 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/ic/ic.cc ('k') | src/mips64/macro-assembler-mips64.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 1
2 // Copyright 2012 the V8 project authors. All rights reserved. 2 // Copyright 2012 the V8 project authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_MIPS 8 #if V8_TARGET_ARCH_MIPS
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 3996 matching lines...) Expand 10 before | Expand all | Expand 10 after
4007 } 4007 }
4008 bind(&regular_invoke); 4008 bind(&regular_invoke);
4009 } 4009 }
4010 } 4010 }
4011 4011
4012 4012
4013 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, 4013 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target,
4014 const ParameterCount& expected, 4014 const ParameterCount& expected,
4015 const ParameterCount& actual) { 4015 const ParameterCount& actual) {
4016 Label skip_flooding; 4016 Label skip_flooding;
4017 ExternalReference debug_step_action = 4017 ExternalReference step_in_enabled =
4018 ExternalReference::debug_last_step_action_address(isolate()); 4018 ExternalReference::debug_step_in_enabled_address(isolate());
4019 li(t0, Operand(debug_step_action)); 4019 li(t0, Operand(step_in_enabled));
4020 lb(t0, MemOperand(t0)); 4020 lb(t0, MemOperand(t0));
4021 Branch(&skip_flooding, ne, t0, Operand(StepIn)); 4021 Branch(&skip_flooding, eq, t0, Operand(zero_reg));
4022 { 4022 {
4023 FrameScope frame(this, 4023 FrameScope frame(this,
4024 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); 4024 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL);
4025 if (expected.is_reg()) { 4025 if (expected.is_reg()) {
4026 SmiTag(expected.reg()); 4026 SmiTag(expected.reg());
4027 Push(expected.reg()); 4027 Push(expected.reg());
4028 } 4028 }
4029 if (actual.is_reg()) { 4029 if (actual.is_reg()) {
4030 SmiTag(actual.reg()); 4030 SmiTag(actual.reg());
4031 Push(actual.reg()); 4031 Push(actual.reg());
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after
5864 if (mag.shift > 0) sra(result, result, mag.shift); 5864 if (mag.shift > 0) sra(result, result, mag.shift);
5865 srl(at, dividend, 31); 5865 srl(at, dividend, 31);
5866 Addu(result, result, Operand(at)); 5866 Addu(result, result, Operand(at));
5867 } 5867 }
5868 5868
5869 5869
5870 } // namespace internal 5870 } // namespace internal
5871 } // namespace v8 5871 } // namespace v8
5872 5872
5873 #endif // V8_TARGET_ARCH_MIPS 5873 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698