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

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

Issue 2650193002: [debugger] remove debugger statement support from FCG/CS. (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/mips64/macro-assembler-mips64.h ('k') | src/x64/macro-assembler-x64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/base/division-by-constant.h" 9 #include "src/base/division-by-constant.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 4022 matching lines...) Expand 10 before | Expand all | Expand 10 after
4033 void MacroAssembler::PopRegisterAsTwoSmis(Register dst, Register scratch) { 4033 void MacroAssembler::PopRegisterAsTwoSmis(Register dst, Register scratch) {
4034 DCHECK(!dst.is(scratch)); 4034 DCHECK(!dst.is(scratch));
4035 pop(scratch); 4035 pop(scratch);
4036 dsrl32(scratch, scratch, 0); 4036 dsrl32(scratch, scratch, 0);
4037 pop(dst); 4037 pop(dst);
4038 dsrl32(dst, dst, 0); 4038 dsrl32(dst, dst, 0);
4039 dsll32(dst, dst, 0); 4039 dsll32(dst, dst, 0);
4040 or_(dst, dst, scratch); 4040 or_(dst, dst, scratch);
4041 } 4041 }
4042 4042
4043
4044 void MacroAssembler::DebugBreak() {
4045 PrepareCEntryArgs(0);
4046 PrepareCEntryFunction(
4047 ExternalReference(Runtime::kHandleDebuggerStatement, isolate()));
4048 CEntryStub ces(isolate(), 1);
4049 DCHECK(AllowThisStubCall(&ces));
4050 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
4051 }
4052
4053 void MacroAssembler::MaybeDropFrames() { 4043 void MacroAssembler::MaybeDropFrames() {
4054 // Check whether we need to drop frames to restart a function on the stack. 4044 // Check whether we need to drop frames to restart a function on the stack.
4055 ExternalReference restart_fp = 4045 ExternalReference restart_fp =
4056 ExternalReference::debug_restart_fp_address(isolate()); 4046 ExternalReference::debug_restart_fp_address(isolate());
4057 li(a1, Operand(restart_fp)); 4047 li(a1, Operand(restart_fp));
4058 ld(a1, MemOperand(a1)); 4048 ld(a1, MemOperand(a1));
4059 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, 4049 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
4060 ne, a1, Operand(zero_reg)); 4050 ne, a1, Operand(zero_reg));
4061 } 4051 }
4062 4052
(...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after
6899 if (mag.shift > 0) sra(result, result, mag.shift); 6889 if (mag.shift > 0) sra(result, result, mag.shift);
6900 srl(at, dividend, 31); 6890 srl(at, dividend, 31);
6901 Addu(result, result, Operand(at)); 6891 Addu(result, result, Operand(at));
6902 } 6892 }
6903 6893
6904 6894
6905 } // namespace internal 6895 } // namespace internal
6906 } // namespace v8 6896 } // namespace v8
6907 6897
6908 #endif // V8_TARGET_ARCH_MIPS64 6898 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698