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

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

Issue 2065423002: PPC: [debugger] simplify debug stepping. (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/ppc/builtins-ppc.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 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 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 } 1379 }
1380 bind(&regular_invoke); 1380 bind(&regular_invoke);
1381 } 1381 }
1382 } 1382 }
1383 1383
1384 1384
1385 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, 1385 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target,
1386 const ParameterCount& expected, 1386 const ParameterCount& expected,
1387 const ParameterCount& actual) { 1387 const ParameterCount& actual) {
1388 Label skip_flooding; 1388 Label skip_flooding;
1389 ExternalReference step_in_enabled = 1389 ExternalReference last_step_action =
1390 ExternalReference::debug_step_in_enabled_address(isolate()); 1390 ExternalReference::debug_last_step_action_address(isolate());
1391 mov(r7, Operand(step_in_enabled)); 1391 STATIC_ASSERT(StepFrame > StepIn);
1392 lbz(r7, MemOperand(r7)); 1392 mov(r7, Operand(last_step_action));
1393 cmpi(r7, Operand::Zero()); 1393 LoadByte(r7, MemOperand(r7), r0);
1394 beq(&skip_flooding); 1394 extsb(r7, r7);
1395 cmpi(r7, Operand(StepIn));
1396 blt(&skip_flooding);
1395 { 1397 {
1396 FrameScope frame(this, 1398 FrameScope frame(this,
1397 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); 1399 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL);
1398 if (expected.is_reg()) { 1400 if (expected.is_reg()) {
1399 SmiTag(expected.reg()); 1401 SmiTag(expected.reg());
1400 Push(expected.reg()); 1402 Push(expected.reg());
1401 } 1403 }
1402 if (actual.is_reg()) { 1404 if (actual.is_reg()) {
1403 SmiTag(actual.reg()); 1405 SmiTag(actual.reg());
1404 Push(actual.reg()); 1406 Push(actual.reg());
(...skipping 3481 matching lines...) Expand 10 before | Expand all | Expand 10 after
4886 } 4888 }
4887 if (mag.shift > 0) srawi(result, result, mag.shift); 4889 if (mag.shift > 0) srawi(result, result, mag.shift);
4888 ExtractBit(r0, dividend, 31); 4890 ExtractBit(r0, dividend, 31);
4889 add(result, result, r0); 4891 add(result, result, r0);
4890 } 4892 }
4891 4893
4892 } // namespace internal 4894 } // namespace internal
4893 } // namespace v8 4895 } // namespace v8
4894 4896
4895 #endif // V8_TARGET_ARCH_PPC 4897 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/builtins-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698