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

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

Issue 2636913002: [liveedit] reimplement frame restarting. (Closed)
Patch Set: rebase 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/mips/macro-assembler-mips.h ('k') | src/mips64/interface-descriptors-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 3877 matching lines...) Expand 10 before | Expand all | Expand 10 after
3888 3888
3889 void MacroAssembler::DebugBreak() { 3889 void MacroAssembler::DebugBreak() {
3890 PrepareCEntryArgs(0); 3890 PrepareCEntryArgs(0);
3891 PrepareCEntryFunction( 3891 PrepareCEntryFunction(
3892 ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); 3892 ExternalReference(Runtime::kHandleDebuggerStatement, isolate()));
3893 CEntryStub ces(isolate(), 1); 3893 CEntryStub ces(isolate(), 1);
3894 DCHECK(AllowThisStubCall(&ces)); 3894 DCHECK(AllowThisStubCall(&ces));
3895 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); 3895 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
3896 } 3896 }
3897 3897
3898 void MacroAssembler::MaybeDropFrames() {
3899 // Check whether we need to drop frames to restart a function on the stack.
3900 ExternalReference restart_fp =
3901 ExternalReference::debug_restart_fp_address(isolate());
3902 li(a1, Operand(restart_fp));
3903 lw(a1, MemOperand(a1));
3904 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
3905 ne, a1, Operand(zero_reg));
3906 }
3898 3907
3899 // --------------------------------------------------------------------------- 3908 // ---------------------------------------------------------------------------
3900 // Exception handling. 3909 // Exception handling.
3901 3910
3902 void MacroAssembler::PushStackHandler() { 3911 void MacroAssembler::PushStackHandler() {
3903 // Adjust this code if not the case. 3912 // Adjust this code if not the case.
3904 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); 3913 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize);
3905 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); 3914 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
3906 3915
3907 // Link the current handler as the next handler. 3916 // Link the current handler as the next handler.
(...skipping 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after
6526 if (mag.shift > 0) sra(result, result, mag.shift); 6535 if (mag.shift > 0) sra(result, result, mag.shift);
6527 srl(at, dividend, 31); 6536 srl(at, dividend, 31);
6528 Addu(result, result, Operand(at)); 6537 Addu(result, result, Operand(at));
6529 } 6538 }
6530 6539
6531 6540
6532 } // namespace internal 6541 } // namespace internal
6533 } // namespace v8 6542 } // namespace v8
6534 6543
6535 #endif // V8_TARGET_ARCH_MIPS 6544 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698