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