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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 4099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4110 Label loop; | 4110 Label loop; |
4111 __ bind(&loop); | 4111 __ bind(&loop); |
4112 __ Push(Operand(rdx, -1 * kPointerSize)); | 4112 __ Push(Operand(rdx, -1 * kPointerSize)); |
4113 __ subp(rdx, Immediate(kPointerSize)); | 4113 __ subp(rdx, Immediate(kPointerSize)); |
4114 __ decp(rcx); | 4114 __ decp(rcx); |
4115 __ j(not_zero, &loop); | 4115 __ j(not_zero, &loop); |
4116 } | 4116 } |
4117 | 4117 |
4118 __ bind(&args_set_up); | 4118 __ bind(&args_set_up); |
4119 __ movp(rdi, Operand(rsp, rax, times_pointer_size, 0)); | 4119 __ movp(rdi, Operand(rsp, rax, times_pointer_size, 0)); |
| 4120 __ LoadRoot(rbx, Heap::kUndefinedValueRootIndex); |
4120 | 4121 |
4121 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 4122 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
4122 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 4123 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
4123 | 4124 |
4124 __ Drop(1); | 4125 __ Drop(1); |
4125 | 4126 |
4126 context()->Plug(result_register()); | 4127 context()->Plug(result_register()); |
4127 } | 4128 } |
4128 | 4129 |
4129 | 4130 |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5385 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5386 Assembler::target_address_at(call_target_address, | 5387 Assembler::target_address_at(call_target_address, |
5387 unoptimized_code)); | 5388 unoptimized_code)); |
5388 return OSR_AFTER_STACK_CHECK; | 5389 return OSR_AFTER_STACK_CHECK; |
5389 } | 5390 } |
5390 | 5391 |
5391 | 5392 |
5392 } } // namespace v8::internal | 5393 } } // namespace v8::internal |
5393 | 5394 |
5394 #endif // V8_TARGET_ARCH_X64 | 5395 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |