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

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

Issue 2663453004: PPC/s390: [liveedit] reimplement frame restarting. (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/ppc/macro-assembler-ppc.h ('k') | src/s390/interface-descriptors-s390.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 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 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 1569
1570 void MacroAssembler::DebugBreak() { 1570 void MacroAssembler::DebugBreak() {
1571 li(r3, Operand::Zero()); 1571 li(r3, Operand::Zero());
1572 mov(r4, 1572 mov(r4,
1573 Operand(ExternalReference(Runtime::kHandleDebuggerStatement, isolate()))); 1573 Operand(ExternalReference(Runtime::kHandleDebuggerStatement, isolate())));
1574 CEntryStub ces(isolate(), 1); 1574 CEntryStub ces(isolate(), 1);
1575 DCHECK(AllowThisStubCall(&ces)); 1575 DCHECK(AllowThisStubCall(&ces));
1576 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); 1576 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
1577 } 1577 }
1578 1578
1579 void MacroAssembler::MaybeDropFrames() {
1580 // Check whether we need to drop frames to restart a function on the stack.
1581 ExternalReference restart_fp =
1582 ExternalReference::debug_restart_fp_address(isolate());
1583 mov(r4, Operand(restart_fp));
1584 LoadWordArith(r4, MemOperand(r4));
1585 cmpi(r4, Operand::Zero());
1586 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
1587 ne);
1588 }
1579 1589
1580 void MacroAssembler::PushStackHandler() { 1590 void MacroAssembler::PushStackHandler() {
1581 // Adjust this code if not the case. 1591 // Adjust this code if not the case.
1582 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); 1592 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize);
1583 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); 1593 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
1584 1594
1585 // Link the current handler as the next handler. 1595 // Link the current handler as the next handler.
1586 // Preserve r3-r7. 1596 // Preserve r3-r7.
1587 mov(r8, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); 1597 mov(r8, Operand(ExternalReference(Isolate::kHandlerAddress, isolate())));
1588 LoadP(r0, MemOperand(r8)); 1598 LoadP(r0, MemOperand(r8));
(...skipping 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after
4386 } 4396 }
4387 if (mag.shift > 0) srawi(result, result, mag.shift); 4397 if (mag.shift > 0) srawi(result, result, mag.shift);
4388 ExtractBit(r0, dividend, 31); 4398 ExtractBit(r0, dividend, 31);
4389 add(result, result, r0); 4399 add(result, result, r0);
4390 } 4400 }
4391 4401
4392 } // namespace internal 4402 } // namespace internal
4393 } // namespace v8 4403 } // namespace v8
4394 4404
4395 #endif // V8_TARGET_ARCH_PPC 4405 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/macro-assembler-ppc.h ('k') | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698