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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 4471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4482 void CallApiFunctionStub::Generate(MacroAssembler* masm) { | 4482 void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
4483 // TODO(dcarney): make eax contain the function address. | 4483 // TODO(dcarney): make eax contain the function address. |
4484 bool call_data_undefined = this->call_data_undefined(); | 4484 bool call_data_undefined = this->call_data_undefined(); |
4485 CallApiFunctionStubHelper(masm, ParameterCount(edi), false, | 4485 CallApiFunctionStubHelper(masm, ParameterCount(edi), false, |
4486 call_data_undefined); | 4486 call_data_undefined); |
4487 } | 4487 } |
4488 | 4488 |
4489 | 4489 |
4490 void CallApiAccessorStub::Generate(MacroAssembler* masm) { | 4490 void CallApiAccessorStub::Generate(MacroAssembler* masm) { |
4491 bool is_store = this->is_store(); | 4491 bool is_store = this->is_store(); |
4492 int argc = is_store ? 1 : 0; | 4492 int argc = this->argc(); |
4493 bool call_data_undefined = this->call_data_undefined(); | 4493 bool call_data_undefined = this->call_data_undefined(); |
4494 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, | 4494 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, |
4495 call_data_undefined); | 4495 call_data_undefined); |
4496 } | 4496 } |
4497 | 4497 |
4498 | 4498 |
4499 void CallApiGetterStub::Generate(MacroAssembler* masm) { | 4499 void CallApiGetterStub::Generate(MacroAssembler* masm) { |
4500 // ----------- S t a t e ------------- | 4500 // ----------- S t a t e ------------- |
4501 // -- esp[0] : return address | 4501 // -- esp[0] : return address |
4502 // -- esp[4] : name | 4502 // -- esp[4] : name |
(...skipping 28 matching lines...) Expand all Loading... |
4531 ApiParameterOperand(2), kStackSpace, nullptr, | 4531 ApiParameterOperand(2), kStackSpace, nullptr, |
4532 Operand(ebp, 7 * kPointerSize), NULL); | 4532 Operand(ebp, 7 * kPointerSize), NULL); |
4533 } | 4533 } |
4534 | 4534 |
4535 | 4535 |
4536 #undef __ | 4536 #undef __ |
4537 | 4537 |
4538 } } // namespace v8::internal | 4538 } } // namespace v8::internal |
4539 | 4539 |
4540 #endif // V8_TARGET_ARCH_X87 | 4540 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |