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

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

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug-mode Arm issue. Created 5 years, 6 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/arm/constants-arm.h ('k') | src/arm/deoptimizer-arm.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 masm->isolate()); 258 masm->isolate());
259 __ mov(ip, Operand(restarter_frame_function_slot)); 259 __ mov(ip, Operand(restarter_frame_function_slot));
260 __ mov(r1, Operand::Zero()); 260 __ mov(r1, Operand::Zero());
261 __ str(r1, MemOperand(ip, 0)); 261 __ str(r1, MemOperand(ip, 0));
262 262
263 // Load the function pointer off of our current stack frame. 263 // Load the function pointer off of our current stack frame.
264 __ ldr(r1, MemOperand(fp, 264 __ ldr(r1, MemOperand(fp,
265 StandardFrameConstants::kConstantPoolOffset - kPointerSize)); 265 StandardFrameConstants::kConstantPoolOffset - kPointerSize));
266 266
267 // Pop return address, frame and constant pool pointer (if 267 // Pop return address, frame and constant pool pointer (if
268 // FLAG_enable_ool_constant_pool). 268 // FLAG_enable_embedded_constant_pool).
269 __ LeaveFrame(StackFrame::INTERNAL); 269 __ LeaveFrame(StackFrame::INTERNAL);
270 270
271 { ConstantPoolUnavailableScope constant_pool_unavailable(masm); 271 { ConstantPoolUnavailableScope constant_pool_unavailable(masm);
272 // Load context from the function. 272 // Load context from the function.
273 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); 273 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
274 274
275 // Get function code. 275 // Get function code.
276 __ ldr(ip, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); 276 __ ldr(ip, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset));
277 __ ldr(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset)); 277 __ ldr(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset));
278 __ add(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); 278 __ add(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag));
279 279
280 // Re-run JSFunction, r1 is function, cp is context. 280 // Re-run JSFunction, r1 is function, cp is context.
281 __ Jump(ip); 281 __ Jump(ip);
282 } 282 }
283 } 283 }
284 284
285 285
286 const bool LiveEdit::kFrameDropperSupported = true; 286 const bool LiveEdit::kFrameDropperSupported = true;
287 287
288 #undef __ 288 #undef __
289 289
290 } // namespace internal 290 } // namespace internal
291 } // namespace v8 291 } // namespace v8
292 292
293 #endif // V8_TARGET_ARCH_ARM 293 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/arm/deoptimizer-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698