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

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

Issue 2677183003: Revert of PPC/s390: [debugger] remove debugger statement support from FCG/CS. (Closed)
Patch Set: Created 3 years, 10 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/s390/macro-assembler-s390.h ('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_S390 8 #if V8_TARGET_ARCH_S390
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 } 1455 }
1456 1456
1457 void MacroAssembler::IsObjectNameType(Register object, Register scratch, 1457 void MacroAssembler::IsObjectNameType(Register object, Register scratch,
1458 Label* fail) { 1458 Label* fail) {
1459 LoadP(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); 1459 LoadP(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
1460 LoadlB(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); 1460 LoadlB(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
1461 CmpP(scratch, Operand(LAST_NAME_TYPE)); 1461 CmpP(scratch, Operand(LAST_NAME_TYPE));
1462 bgt(fail); 1462 bgt(fail);
1463 } 1463 }
1464 1464
1465 void MacroAssembler::DebugBreak() {
1466 LoadImmP(r2, Operand::Zero());
1467 mov(r3,
1468 Operand(ExternalReference(Runtime::kHandleDebuggerStatement, isolate())));
1469 CEntryStub ces(isolate(), 1);
1470 DCHECK(AllowThisStubCall(&ces));
1471 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
1472 }
1473
1465 void MacroAssembler::MaybeDropFrames() { 1474 void MacroAssembler::MaybeDropFrames() {
1466 // Check whether we need to drop frames to restart a function on the stack. 1475 // Check whether we need to drop frames to restart a function on the stack.
1467 ExternalReference restart_fp = 1476 ExternalReference restart_fp =
1468 ExternalReference::debug_restart_fp_address(isolate()); 1477 ExternalReference::debug_restart_fp_address(isolate());
1469 mov(r3, Operand(restart_fp)); 1478 mov(r3, Operand(restart_fp));
1470 LoadP(r3, MemOperand(r3)); 1479 LoadP(r3, MemOperand(r3));
1471 CmpP(r3, Operand::Zero()); 1480 CmpP(r3, Operand::Zero());
1472 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, 1481 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
1473 ne); 1482 ne);
1474 } 1483 }
(...skipping 3878 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 } 5362 }
5354 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5363 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5355 ExtractBit(r0, dividend, 31); 5364 ExtractBit(r0, dividend, 31);
5356 AddP(result, r0); 5365 AddP(result, r0);
5357 } 5366 }
5358 5367
5359 } // namespace internal 5368 } // namespace internal
5360 } // namespace v8 5369 } // namespace v8
5361 5370
5362 #endif // V8_TARGET_ARCH_S390 5371 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/macro-assembler-s390.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698