Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 852263004: X87: add stub for api function calls with known number of parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698