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

Side by Side Diff: src/mips64/macro-assembler-mips64.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/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
4043 void MacroAssembler::MaybeDropFrames() { 4053 void MacroAssembler::MaybeDropFrames() {
4044 // Check whether we need to drop frames to restart a function on the stack. 4054 // Check whether we need to drop frames to restart a function on the stack.
4045 ExternalReference restart_fp = 4055 ExternalReference restart_fp =
4046 ExternalReference::debug_restart_fp_address(isolate()); 4056 ExternalReference::debug_restart_fp_address(isolate());
4047 li(a1, Operand(restart_fp)); 4057 li(a1, Operand(restart_fp));
4048 ld(a1, MemOperand(a1)); 4058 ld(a1, MemOperand(a1));
4049 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, 4059 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
4050 ne, a1, Operand(zero_reg)); 4060 ne, a1, Operand(zero_reg));
4051 } 4061 }
4052 4062
(...skipping 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after
6930 if (mag.shift > 0) sra(result, result, mag.shift); 6940 if (mag.shift > 0) sra(result, result, mag.shift);
6931 srl(at, dividend, 31); 6941 srl(at, dividend, 31);
6932 Addu(result, result, Operand(at)); 6942 Addu(result, result, Operand(at));
6933 } 6943 }
6934 6944
6935 6945
6936 } // namespace internal 6946 } // namespace internal
6937 } // namespace v8 6947 } // namespace v8
6938 6948
6939 #endif // V8_TARGET_ARCH_MIPS64 6949 #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