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

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

Issue 1490923004: PPC: [debugger] Remove code to predict step-in target. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | 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 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 #include <assert.h> // For assert 5 #include <assert.h> // For assert
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_PPC 8 #if V8_TARGET_ARCH_PPC
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 } 1082 }
1083 bind(&regular_invoke); 1083 bind(&regular_invoke);
1084 } 1084 }
1085 } 1085 }
1086 1086
1087 1087
1088 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, 1088 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target,
1089 const ParameterCount& expected, 1089 const ParameterCount& expected,
1090 const ParameterCount& actual) { 1090 const ParameterCount& actual) {
1091 Label skip_flooding; 1091 Label skip_flooding;
1092 ExternalReference debug_step_action = 1092 ExternalReference step_in_enabled =
1093 ExternalReference::debug_last_step_action_address(isolate()); 1093 ExternalReference::debug_step_in_enabled_address(isolate());
1094 mov(r7, Operand(debug_step_action)); 1094 mov(r7, Operand(step_in_enabled));
1095 lbz(r7, MemOperand(r7)); 1095 lbz(r7, MemOperand(r7));
1096 cmpi(r7, Operand(StepIn)); 1096 cmpi(r7, Operand::Zero());
1097 bne(&skip_flooding); 1097 beq(&skip_flooding);
1098 { 1098 {
1099 FrameScope frame(this, 1099 FrameScope frame(this,
1100 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); 1100 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL);
1101 if (expected.is_reg()) { 1101 if (expected.is_reg()) {
1102 SmiTag(expected.reg()); 1102 SmiTag(expected.reg());
1103 Push(expected.reg()); 1103 Push(expected.reg());
1104 } 1104 }
1105 if (actual.is_reg()) { 1105 if (actual.is_reg()) {
1106 SmiTag(actual.reg()); 1106 SmiTag(actual.reg());
1107 Push(actual.reg()); 1107 Push(actual.reg());
(...skipping 3300 matching lines...) Expand 10 before | Expand all | Expand 10 after
4408 } 4408 }
4409 if (mag.shift > 0) srawi(result, result, mag.shift); 4409 if (mag.shift > 0) srawi(result, result, mag.shift);
4410 ExtractBit(r0, dividend, 31); 4410 ExtractBit(r0, dividend, 31);
4411 add(result, result, r0); 4411 add(result, result, r0);
4412 } 4412 }
4413 4413
4414 } // namespace internal 4414 } // namespace internal
4415 } // namespace v8 4415 } // namespace v8
4416 4416
4417 #endif // V8_TARGET_ARCH_PPC 4417 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698