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

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

Issue 2672823007: Revert of [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/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('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 3867 matching lines...) Expand 10 before | Expand all | Expand 10 after
3878 void MacroAssembler::Call(Label* target) { 3878 void MacroAssembler::Call(Label* target) {
3879 BranchAndLink(target); 3879 BranchAndLink(target);
3880 } 3880 }
3881 3881
3882 3882
3883 void MacroAssembler::Push(Handle<Object> handle) { 3883 void MacroAssembler::Push(Handle<Object> handle) {
3884 li(at, Operand(handle)); 3884 li(at, Operand(handle));
3885 push(at); 3885 push(at);
3886 } 3886 }
3887 3887
3888
3889 void MacroAssembler::DebugBreak() {
3890 PrepareCEntryArgs(0);
3891 PrepareCEntryFunction(
3892 ExternalReference(Runtime::kHandleDebuggerStatement, isolate()));
3893 CEntryStub ces(isolate(), 1);
3894 DCHECK(AllowThisStubCall(&ces));
3895 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
3896 }
3897
3888 void MacroAssembler::MaybeDropFrames() { 3898 void MacroAssembler::MaybeDropFrames() {
3889 // Check whether we need to drop frames to restart a function on the stack. 3899 // Check whether we need to drop frames to restart a function on the stack.
3890 ExternalReference restart_fp = 3900 ExternalReference restart_fp =
3891 ExternalReference::debug_restart_fp_address(isolate()); 3901 ExternalReference::debug_restart_fp_address(isolate());
3892 li(a1, Operand(restart_fp)); 3902 li(a1, Operand(restart_fp));
3893 lw(a1, MemOperand(a1)); 3903 lw(a1, MemOperand(a1));
3894 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, 3904 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
3895 ne, a1, Operand(zero_reg)); 3905 ne, a1, Operand(zero_reg));
3896 } 3906 }
3897 3907
(...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after
6524 if (mag.shift > 0) sra(result, result, mag.shift); 6534 if (mag.shift > 0) sra(result, result, mag.shift);
6525 srl(at, dividend, 31); 6535 srl(at, dividend, 31);
6526 Addu(result, result, Operand(at)); 6536 Addu(result, result, Operand(at));
6527 } 6537 }
6528 6538
6529 6539
6530 } // namespace internal 6540 } // namespace internal
6531 } // namespace v8 6541 } // namespace v8
6532 6542
6533 #endif // V8_TARGET_ARCH_MIPS 6543 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698