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

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

Issue 2672813002: 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
1474 void MacroAssembler::MaybeDropFrames() { 1465 void MacroAssembler::MaybeDropFrames() {
1475 // Check whether we need to drop frames to restart a function on the stack. 1466 // Check whether we need to drop frames to restart a function on the stack.
1476 ExternalReference restart_fp = 1467 ExternalReference restart_fp =
1477 ExternalReference::debug_restart_fp_address(isolate()); 1468 ExternalReference::debug_restart_fp_address(isolate());
1478 mov(r3, Operand(restart_fp)); 1469 mov(r3, Operand(restart_fp));
1479 LoadP(r3, MemOperand(r3)); 1470 LoadP(r3, MemOperand(r3));
1480 CmpP(r3, Operand::Zero()); 1471 CmpP(r3, Operand::Zero());
1481 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, 1472 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
1482 ne); 1473 ne);
1483 } 1474 }
(...skipping 3878 matching lines...) Expand 10 before | Expand all | Expand 10 after
5362 } 5353 }
5363 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5354 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5364 ExtractBit(r0, dividend, 31); 5355 ExtractBit(r0, dividend, 31);
5365 AddP(result, r0); 5356 AddP(result, r0);
5366 } 5357 }
5367 5358
5368 } // namespace internal 5359 } // namespace internal
5369 } // namespace v8 5360 } // namespace v8
5370 5361
5371 #endif // V8_TARGET_ARCH_S390 5362 #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