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 4212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4223 // Pre-decrement in order to skip receiver. | 4223 // Pre-decrement in order to skip receiver. |
4224 __ ldr(r3, MemOperand(r2, kPointerSize, NegPreIndex)); | 4224 __ ldr(r3, MemOperand(r2, kPointerSize, NegPreIndex)); |
4225 __ Push(r3); | 4225 __ Push(r3); |
4226 __ sub(r1, r1, Operand(1)); | 4226 __ sub(r1, r1, Operand(1)); |
4227 __ cmp(r1, Operand::Zero()); | 4227 __ cmp(r1, Operand::Zero()); |
4228 __ b(ne, &loop); | 4228 __ b(ne, &loop); |
4229 } | 4229 } |
4230 | 4230 |
4231 __ bind(&args_set_up); | 4231 __ bind(&args_set_up); |
4232 __ ldr(r1, MemOperand(sp, r0, LSL, kPointerSizeLog2)); | 4232 __ ldr(r1, MemOperand(sp, r0, LSL, kPointerSizeLog2)); |
| 4233 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
4233 | 4234 |
4234 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 4235 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
4235 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 4236 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
4236 | 4237 |
4237 __ Drop(1); | 4238 __ Drop(1); |
4238 | 4239 |
4239 context()->Plug(result_register()); | 4240 context()->Plug(result_register()); |
4240 } | 4241 } |
4241 | 4242 |
4242 | 4243 |
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5501 | 5502 |
5502 DCHECK(interrupt_address == | 5503 DCHECK(interrupt_address == |
5503 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5504 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5504 return OSR_AFTER_STACK_CHECK; | 5505 return OSR_AFTER_STACK_CHECK; |
5505 } | 5506 } |
5506 | 5507 |
5507 | 5508 |
5508 } } // namespace v8::internal | 5509 } } // namespace v8::internal |
5509 | 5510 |
5510 #endif // V8_TARGET_ARCH_ARM | 5511 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |