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

Issue 2632513002: PPC/s390: [debugger] infrastructure for side-effect-free debug-evaluate. (Closed)
Patch Set: 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/ppc/debug-ppc.cc ('k') | src/ppc/macro-assembler-ppc.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_S390 7 #if V8_TARGET_ARCH_S390
8 8
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { 136 void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
137 // Load the function pointer off of our current stack frame. 137 // Load the function pointer off of our current stack frame.
138 __ LoadP(r3, MemOperand(fp, FrameDropperFrameConstants::kFunctionOffset)); 138 __ LoadP(r3, MemOperand(fp, FrameDropperFrameConstants::kFunctionOffset));
139 139
140 // Pop return address and frame 140 // Pop return address and frame
141 __ LeaveFrame(StackFrame::INTERNAL); 141 __ LeaveFrame(StackFrame::INTERNAL);
142 142
143 ParameterCount dummy(0); 143 ParameterCount dummy(0);
144 __ FloodFunctionIfStepping(r3, no_reg, dummy, dummy); 144 __ CheckDebugHook(r3, no_reg, dummy, dummy);
145 145
146 // Load context from the function. 146 // Load context from the function.
147 __ LoadP(cp, FieldMemOperand(r3, JSFunction::kContextOffset)); 147 __ LoadP(cp, FieldMemOperand(r3, JSFunction::kContextOffset));
148 148
149 // Clear new.target as a safety measure. 149 // Clear new.target as a safety measure.
150 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex); 150 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex);
151 151
152 // Get function code. 152 // Get function code.
153 __ LoadP(ip, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); 153 __ LoadP(ip, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset));
154 __ LoadP(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset)); 154 __ LoadP(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset));
155 __ AddP(ip, Operand(Code::kHeaderSize - kHeapObjectTag)); 155 __ AddP(ip, Operand(Code::kHeaderSize - kHeapObjectTag));
156 156
157 // Re-run JSFunction, r3 is function, cp is context. 157 // Re-run JSFunction, r3 is function, cp is context.
158 __ Jump(ip); 158 __ Jump(ip);
159 } 159 }
160 160
161 const bool LiveEdit::kFrameDropperSupported = true; 161 const bool LiveEdit::kFrameDropperSupported = true;
162 162
163 #undef __ 163 #undef __
164 } // namespace internal 164 } // namespace internal
165 } // namespace v8 165 } // namespace v8
166 166
167 #endif // V8_TARGET_ARCH_S390 167 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/debug/ppc/debug-ppc.cc ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698