| OLD | NEW |
| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 masm->isolate()); | 260 masm->isolate()); |
| 261 __ mov(ip, Operand(restarter_frame_function_slot)); | 261 __ mov(ip, Operand(restarter_frame_function_slot)); |
| 262 __ mov(r1, Operand::Zero()); | 262 __ mov(r1, Operand::Zero()); |
| 263 __ str(r1, MemOperand(ip, 0)); | 263 __ str(r1, MemOperand(ip, 0)); |
| 264 | 264 |
| 265 // Load the function pointer off of our current stack frame. | 265 // Load the function pointer off of our current stack frame. |
| 266 __ ldr(r1, MemOperand(fp, | 266 __ ldr(r1, MemOperand(fp, |
| 267 StandardFrameConstants::kConstantPoolOffset - kPointerSize)); | 267 StandardFrameConstants::kConstantPoolOffset - kPointerSize)); |
| 268 | 268 |
| 269 // Pop return address, frame and constant pool pointer (if | 269 // Pop return address, frame and constant pool pointer (if |
| 270 // FLAG_enable_ool_constant_pool). | 270 // FLAG_enable_embedded_constant_pool). |
| 271 __ LeaveFrame(StackFrame::INTERNAL); | 271 __ LeaveFrame(StackFrame::INTERNAL); |
| 272 | 272 |
| 273 { ConstantPoolUnavailableScope constant_pool_unavailable(masm); | 273 { ConstantPoolUnavailableScope constant_pool_unavailable(masm); |
| 274 // Load context from the function. | 274 // Load context from the function. |
| 275 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); | 275 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); |
| 276 | 276 |
| 277 // Get function code. | 277 // Get function code. |
| 278 __ ldr(ip, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); | 278 __ ldr(ip, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); |
| 279 __ ldr(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset)); | 279 __ ldr(ip, FieldMemOperand(ip, SharedFunctionInfo::kCodeOffset)); |
| 280 __ add(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); | 280 __ add(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 281 | 281 |
| 282 // Re-run JSFunction, r1 is function, cp is context. | 282 // Re-run JSFunction, r1 is function, cp is context. |
| 283 __ Jump(ip); | 283 __ Jump(ip); |
| 284 } | 284 } |
| 285 } | 285 } |
| 286 | 286 |
| 287 | 287 |
| 288 const bool LiveEdit::kFrameDropperSupported = true; | 288 const bool LiveEdit::kFrameDropperSupported = true; |
| 289 | 289 |
| 290 #undef __ | 290 #undef __ |
| 291 | 291 |
| 292 } } // namespace v8::internal | 292 } } // namespace v8::internal |
| 293 | 293 |
| 294 #endif // V8_TARGET_ARCH_ARM | 294 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |