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

Side by Side Diff: src/debug/ppc/debug-ppc.cc

Issue 1497793002: PPC: [debugger] do not restart frames that reference new.target for liveedit.c (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Load the function pointer off of our current stack frame. 131 // Load the function pointer off of our current stack frame.
132 __ LoadP(r4, MemOperand(fp, StandardFrameConstants::kConstantPoolOffset - 132 __ LoadP(r4, MemOperand(fp, StandardFrameConstants::kConstantPoolOffset -
133 kPointerSize)); 133 kPointerSize));
134 134
135 // Pop return address and frame 135 // Pop return address and frame
136 __ LeaveFrame(StackFrame::INTERNAL); 136 __ LeaveFrame(StackFrame::INTERNAL);
137 137
138 // Load context from the function. 138 // Load context from the function.
139 __ LoadP(cp, FieldMemOperand(r4, JSFunction::kContextOffset)); 139 __ LoadP(cp, FieldMemOperand(r4, JSFunction::kContextOffset));
140 140
141 // Clear new.target as a safety measure.
142 __ LoadRoot(r6, Heap::kUndefinedValueRootIndex);
143
141 // Get function code. 144 // Get function code.
142 __ LoadP(ip, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); 145 __ LoadP(ip, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset));
143 __ LoadP(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset)); 146 __ LoadP(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset));
144 __ addi(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); 147 __ addi(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag));
145 148
146 // Re-run JSFunction, r4 is function, cp is context. 149 // Re-run JSFunction, r4 is function, cp is context.
147 __ Jump(ip); 150 __ Jump(ip);
148 } 151 }
149 152
150 153
151 const bool LiveEdit::kFrameDropperSupported = true; 154 const bool LiveEdit::kFrameDropperSupported = true;
152 155
153 #undef __ 156 #undef __
154 } // namespace internal 157 } // namespace internal
155 } // namespace v8 158 } // namespace v8
156 159
157 #endif // V8_TARGET_ARCH_PPC 160 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698