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/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); | 257 __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
258 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kContextOffset)); | 258 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kContextOffset)); |
259 __ cmp(r1, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); | 259 __ cmp(r1, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
260 __ ldr(r2, MemOperand(r2, StandardFrameConstants::kCallerFPOffset), eq); | 260 __ ldr(r2, MemOperand(r2, StandardFrameConstants::kCallerFPOffset), eq); |
261 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kMarkerOffset)); | 261 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kMarkerOffset)); |
262 __ cmp(r1, Operand(Smi::FromInt(StackFrame::CONSTRUCT))); | 262 __ cmp(r1, Operand(Smi::FromInt(StackFrame::CONSTRUCT))); |
263 Label non_construct_frame, done; | 263 Label non_construct_frame, done; |
264 | 264 |
265 __ b(ne, &non_construct_frame); | 265 __ b(ne, &non_construct_frame); |
266 __ ldr(r0, MemOperand(r2, StandardFrameConstants::kExpressionsOffset - | 266 __ ldr(r0, |
267 2 * kPointerSize)); | 267 MemOperand(r2, ConstructFrameConstants::kOriginalConstructorOffset)); |
268 __ b(&done); | 268 __ b(&done); |
269 | 269 |
270 __ bind(&non_construct_frame); | 270 __ bind(&non_construct_frame); |
271 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); | 271 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
272 __ bind(&done); | 272 __ bind(&done); |
273 | 273 |
274 SetVar(new_target_var, r0, r2, r3); | 274 SetVar(new_target_var, r0, r2, r3); |
275 } | 275 } |
276 | 276 |
277 // Possibly allocate RestParameters | 277 // Possibly allocate RestParameters |
(...skipping 5336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5614 DCHECK(interrupt_address == | 5614 DCHECK(interrupt_address == |
5615 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5615 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5616 return OSR_AFTER_STACK_CHECK; | 5616 return OSR_AFTER_STACK_CHECK; |
5617 } | 5617 } |
5618 | 5618 |
5619 | 5619 |
5620 } // namespace internal | 5620 } // namespace internal |
5621 } // namespace v8 | 5621 } // namespace v8 |
5622 | 5622 |
5623 #endif // V8_TARGET_ARCH_ARM | 5623 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |