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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); | 248 __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
249 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kContextOffset)); | 249 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kContextOffset)); |
250 __ cmp(r1, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); | 250 __ cmp(r1, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
251 __ ldr(r2, MemOperand(r2, StandardFrameConstants::kCallerFPOffset), eq); | 251 __ ldr(r2, MemOperand(r2, StandardFrameConstants::kCallerFPOffset), eq); |
252 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kMarkerOffset)); | 252 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kMarkerOffset)); |
253 __ cmp(r1, Operand(Smi::FromInt(StackFrame::CONSTRUCT))); | 253 __ cmp(r1, Operand(Smi::FromInt(StackFrame::CONSTRUCT))); |
254 Label non_construct_frame, done; | 254 Label non_construct_frame, done; |
255 function_in_register_r1 = false; | 255 function_in_register_r1 = false; |
256 | 256 |
257 __ b(ne, &non_construct_frame); | 257 __ b(ne, &non_construct_frame); |
258 __ ldr(r0, | 258 __ ldr(r0, MemOperand(r2, ConstructFrameConstants::kNewTargetOffset)); |
259 MemOperand(r2, ConstructFrameConstants::kOriginalConstructorOffset)); | |
260 __ b(&done); | 259 __ b(&done); |
261 | 260 |
262 __ bind(&non_construct_frame); | 261 __ bind(&non_construct_frame); |
263 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); | 262 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
264 __ bind(&done); | 263 __ bind(&done); |
265 | 264 |
266 SetVar(new_target_var, r0, r2, r3); | 265 SetVar(new_target_var, r0, r2, r3); |
267 } | 266 } |
268 | 267 |
269 Variable* arguments = scope()->arguments(); | 268 Variable* arguments = scope()->arguments(); |
(...skipping 4821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5091 DCHECK(interrupt_address == | 5090 DCHECK(interrupt_address == |
5092 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5091 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5093 return OSR_AFTER_STACK_CHECK; | 5092 return OSR_AFTER_STACK_CHECK; |
5094 } | 5093 } |
5095 | 5094 |
5096 | 5095 |
5097 } // namespace internal | 5096 } // namespace internal |
5098 } // namespace v8 | 5097 } // namespace v8 |
5099 | 5098 |
5100 #endif // V8_TARGET_ARCH_ARM | 5099 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |