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

Side by Side Diff: src/x64/macro-assembler-x64.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/snapshot/serialize.cc ('k') | src/x87/macro-assembler-x87.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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 4132 matching lines...) Expand 10 before | Expand all | Expand 10 after
4143 } 4143 }
4144 bind(&invoke); 4144 bind(&invoke);
4145 } 4145 }
4146 } 4146 }
4147 4147
4148 4148
4149 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, 4149 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target,
4150 const ParameterCount& expected, 4150 const ParameterCount& expected,
4151 const ParameterCount& actual) { 4151 const ParameterCount& actual) {
4152 Label skip_flooding; 4152 Label skip_flooding;
4153 ExternalReference debug_step_action = 4153 ExternalReference step_in_enabled =
4154 ExternalReference::debug_last_step_action_address(isolate()); 4154 ExternalReference::debug_step_in_enabled_address(isolate());
4155 Operand debug_step_action_operand = ExternalOperand(debug_step_action); 4155 Operand step_in_enabled_operand = ExternalOperand(step_in_enabled);
4156 cmpb(debug_step_action_operand, Immediate(StepIn)); 4156 cmpb(step_in_enabled_operand, Immediate(0));
4157 j(not_equal, &skip_flooding); 4157 j(equal, &skip_flooding);
4158 { 4158 {
4159 FrameScope frame(this, 4159 FrameScope frame(this,
4160 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); 4160 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL);
4161 if (expected.is_reg()) { 4161 if (expected.is_reg()) {
4162 Integer32ToSmi(expected.reg(), expected.reg()); 4162 Integer32ToSmi(expected.reg(), expected.reg());
4163 Push(expected.reg()); 4163 Push(expected.reg());
4164 } 4164 }
4165 if (actual.is_reg()) { 4165 if (actual.is_reg()) {
4166 Integer32ToSmi(actual.reg(), actual.reg()); 4166 Integer32ToSmi(actual.reg(), actual.reg());
4167 Push(actual.reg()); 4167 Push(actual.reg());
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
5582 movl(rax, dividend); 5582 movl(rax, dividend);
5583 shrl(rax, Immediate(31)); 5583 shrl(rax, Immediate(31));
5584 addl(rdx, rax); 5584 addl(rdx, rax);
5585 } 5585 }
5586 5586
5587 5587
5588 } // namespace internal 5588 } // namespace internal
5589 } // namespace v8 5589 } // namespace v8
5590 5590
5591 #endif // V8_TARGET_ARCH_X64 5591 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698