| 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 #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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 4754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4765 void CallApiFunctionStub::Generate(MacroAssembler* masm) { | 4765 void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
| 4766 // TODO(dcarney): make rax contain the function address. | 4766 // TODO(dcarney): make rax contain the function address. |
| 4767 bool call_data_undefined = this->call_data_undefined(); | 4767 bool call_data_undefined = this->call_data_undefined(); |
| 4768 CallApiFunctionStubHelper(masm, ParameterCount(rdi), false, | 4768 CallApiFunctionStubHelper(masm, ParameterCount(rdi), false, |
| 4769 call_data_undefined); | 4769 call_data_undefined); |
| 4770 } | 4770 } |
| 4771 | 4771 |
| 4772 | 4772 |
| 4773 void CallApiAccessorStub::Generate(MacroAssembler* masm) { | 4773 void CallApiAccessorStub::Generate(MacroAssembler* masm) { |
| 4774 bool is_store = this->is_store(); | 4774 bool is_store = this->is_store(); |
| 4775 int argc = is_store ? 1 : 0; | 4775 int argc = this->argc(); |
| 4776 bool call_data_undefined = this->call_data_undefined(); | 4776 bool call_data_undefined = this->call_data_undefined(); |
| 4777 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, | 4777 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, |
| 4778 call_data_undefined); | 4778 call_data_undefined); |
| 4779 } | 4779 } |
| 4780 | 4780 |
| 4781 | 4781 |
| 4782 void CallApiGetterStub::Generate(MacroAssembler* masm) { | 4782 void CallApiGetterStub::Generate(MacroAssembler* masm) { |
| 4783 // ----------- S t a t e ------------- | 4783 // ----------- S t a t e ------------- |
| 4784 // -- rsp[0] : return address | 4784 // -- rsp[0] : return address |
| 4785 // -- rsp[8] : name | 4785 // -- rsp[8] : name |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4835 __ CallApiFunctionAndReturn(api_function_address, thunk_ref, getter_arg, | 4835 __ CallApiFunctionAndReturn(api_function_address, thunk_ref, getter_arg, |
| 4836 kStackSpace, nullptr, return_value_operand, NULL); | 4836 kStackSpace, nullptr, return_value_operand, NULL); |
| 4837 } | 4837 } |
| 4838 | 4838 |
| 4839 | 4839 |
| 4840 #undef __ | 4840 #undef __ |
| 4841 | 4841 |
| 4842 } } // namespace v8::internal | 4842 } } // namespace v8::internal |
| 4843 | 4843 |
| 4844 #endif // V8_TARGET_ARCH_X64 | 4844 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |