| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { | 25 void ArrayNArgumentsConstructorStub::Generate(MacroAssembler* masm) { |
| 26 __ popq(rcx); | 26 __ popq(rcx); |
| 27 __ movq(MemOperand(rsp, rax, times_8, 0), rdi); | 27 __ movq(MemOperand(rsp, rax, times_8, 0), rdi); |
| 28 __ pushq(rdi); | 28 __ pushq(rdi); |
| 29 __ pushq(rbx); | 29 __ pushq(rbx); |
| 30 __ pushq(rcx); | 30 __ pushq(rcx); |
| 31 __ addq(rax, Immediate(3)); | 31 __ addq(rax, Immediate(3)); |
| 32 __ TailCallRuntime(Runtime::kNewArray); | 32 __ TailCallRuntime(Runtime::kNewArray); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | |
| 36 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry; | |
| 37 descriptor->Initialize(rax, deopt_handler, -1, JS_FUNCTION_STUB_MODE); | |
| 38 } | |
| 39 | |
| 40 void FastFunctionBindStub::InitializeDescriptor( | 35 void FastFunctionBindStub::InitializeDescriptor( |
| 41 CodeStubDescriptor* descriptor) { | 36 CodeStubDescriptor* descriptor) { |
| 42 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry; | 37 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry; |
| 43 descriptor->Initialize(rax, deopt_handler, -1, JS_FUNCTION_STUB_MODE); | 38 descriptor->Initialize(rax, deopt_handler, -1, JS_FUNCTION_STUB_MODE); |
| 44 } | 39 } |
| 45 | 40 |
| 46 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, | 41 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, |
| 47 ExternalReference miss) { | 42 ExternalReference miss) { |
| 48 // Update the static counter each time a new code stub is generated. | 43 // Update the static counter each time a new code stub is generated. |
| 49 isolate()->counters()->code_stubs()->Increment(); | 44 isolate()->counters()->code_stubs()->Increment(); |
| (...skipping 4492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4542 kStackUnwindSpace, nullptr, return_value_operand, | 4537 kStackUnwindSpace, nullptr, return_value_operand, |
| 4543 NULL); | 4538 NULL); |
| 4544 } | 4539 } |
| 4545 | 4540 |
| 4546 #undef __ | 4541 #undef __ |
| 4547 | 4542 |
| 4548 } // namespace internal | 4543 } // namespace internal |
| 4549 } // namespace v8 | 4544 } // namespace v8 |
| 4550 | 4545 |
| 4551 #endif // V8_TARGET_ARCH_X64 | 4546 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |