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/debug/mips64/debug-mips64.cc

Issue 2622863003: [debugger] infrastructure for side-effect-free debug-evaluate. (Closed)
Patch Set: fix mips one more time Created 3 years, 11 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/debug/mips/debug-mips.cc ('k') | src/debug/x64/debug-x64.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/debug/debug.h" 7 #include "src/debug/debug.h"
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug/liveedit.h" 10 #include "src/debug/liveedit.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 126
127 void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { 127 void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
128 // We do not know our frame height, but set sp based on fp. 128 // We do not know our frame height, but set sp based on fp.
129 __ ld(a1, MemOperand(fp, FrameDropperFrameConstants::kFunctionOffset)); 129 __ ld(a1, MemOperand(fp, FrameDropperFrameConstants::kFunctionOffset));
130 130
131 // Pop return address and frame. 131 // Pop return address and frame.
132 __ LeaveFrame(StackFrame::INTERNAL); 132 __ LeaveFrame(StackFrame::INTERNAL);
133 133
134 ParameterCount dummy(0); 134 ParameterCount dummy(0);
135 __ FloodFunctionIfStepping(a1, no_reg, dummy, dummy); 135 __ CheckDebugHook(a1, no_reg, dummy, dummy);
136 136
137 // Load context from the function. 137 // Load context from the function.
138 __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); 138 __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
139 139
140 // Clear new.target as a safety measure. 140 // Clear new.target as a safety measure.
141 __ LoadRoot(a3, Heap::kUndefinedValueRootIndex); 141 __ LoadRoot(a3, Heap::kUndefinedValueRootIndex);
142 142
143 // Get function code. 143 // Get function code.
144 __ ld(at, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 144 __ ld(at, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
145 __ ld(at, FieldMemOperand(at, SharedFunctionInfo::kCodeOffset)); 145 __ ld(at, FieldMemOperand(at, SharedFunctionInfo::kCodeOffset));
146 __ Daddu(t9, at, Operand(Code::kHeaderSize - kHeapObjectTag)); 146 __ Daddu(t9, at, Operand(Code::kHeaderSize - kHeapObjectTag));
147 147
148 // Re-run JSFunction, a1 is function, cp is context. 148 // Re-run JSFunction, a1 is function, cp is context.
149 __ Jump(t9); 149 __ Jump(t9);
150 } 150 }
151 151
152 152
153 const bool LiveEdit::kFrameDropperSupported = true; 153 const bool LiveEdit::kFrameDropperSupported = true;
154 154
155 #undef __ 155 #undef __
156 156
157 } // namespace internal 157 } // namespace internal
158 } // namespace v8 158 } // namespace v8
159 159
160 #endif // V8_TARGET_ARCH_MIPS64 160 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/debug/mips/debug-mips.cc ('k') | src/debug/x64/debug-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698