| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 4811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4822 void CallApiFunctionStub::Generate(MacroAssembler* masm) { | 4822 void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
| 4823 // TODO(dcarney): make eax contain the function address. | 4823 // TODO(dcarney): make eax contain the function address. |
| 4824 bool call_data_undefined = this->call_data_undefined(); | 4824 bool call_data_undefined = this->call_data_undefined(); |
| 4825 CallApiFunctionStubHelper(masm, ParameterCount(edi), false, | 4825 CallApiFunctionStubHelper(masm, ParameterCount(edi), false, |
| 4826 call_data_undefined); | 4826 call_data_undefined); |
| 4827 } | 4827 } |
| 4828 | 4828 |
| 4829 | 4829 |
| 4830 void CallApiAccessorStub::Generate(MacroAssembler* masm) { | 4830 void CallApiAccessorStub::Generate(MacroAssembler* masm) { |
| 4831 bool is_store = this->is_store(); | 4831 bool is_store = this->is_store(); |
| 4832 int argc = is_store ? 1 : 0; | 4832 int argc = this->argc(); |
| 4833 bool call_data_undefined = this->call_data_undefined(); | 4833 bool call_data_undefined = this->call_data_undefined(); |
| 4834 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, | 4834 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, |
| 4835 call_data_undefined); | 4835 call_data_undefined); |
| 4836 } | 4836 } |
| 4837 | 4837 |
| 4838 | 4838 |
| 4839 void CallApiGetterStub::Generate(MacroAssembler* masm) { | 4839 void CallApiGetterStub::Generate(MacroAssembler* masm) { |
| 4840 // ----------- S t a t e ------------- | 4840 // ----------- S t a t e ------------- |
| 4841 // -- esp[0] : return address | 4841 // -- esp[0] : return address |
| 4842 // -- esp[4] : name | 4842 // -- esp[4] : name |
| (...skipping 28 matching lines...) Expand all Loading... |
| 4871 ApiParameterOperand(2), kStackSpace, nullptr, | 4871 ApiParameterOperand(2), kStackSpace, nullptr, |
| 4872 Operand(ebp, 7 * kPointerSize), NULL); | 4872 Operand(ebp, 7 * kPointerSize), NULL); |
| 4873 } | 4873 } |
| 4874 | 4874 |
| 4875 | 4875 |
| 4876 #undef __ | 4876 #undef __ |
| 4877 | 4877 |
| 4878 } } // namespace v8::internal | 4878 } } // namespace v8::internal |
| 4879 | 4879 |
| 4880 #endif // V8_TARGET_ARCH_IA32 | 4880 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |