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

Side by Side Diff: src/x64/interface-descriptors-x64.cc

Issue 871063002: Use a trampoline stub to load the type feedback vector for CallICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. 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 | « src/x64/full-codegen-x64.cc ('k') | 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void CallFunctionWithFeedbackDescriptor::Initialize( 121 void CallFunctionWithFeedbackDescriptor::Initialize(
122 CallInterfaceDescriptorData* data) { 122 CallInterfaceDescriptorData* data) {
123 Register registers[] = {rsi, rdi, rdx}; 123 Register registers[] = {rsi, rdi, rdx};
124 Representation representations[] = {Representation::Tagged(), 124 Representation representations[] = {Representation::Tagged(),
125 Representation::Tagged(), 125 Representation::Tagged(),
126 Representation::Smi()}; 126 Representation::Smi()};
127 data->Initialize(arraysize(registers), registers, representations); 127 data->Initialize(arraysize(registers), registers, representations);
128 } 128 }
129 129
130 130
131 void CallFunctionWithFeedbackAndVectorDescriptor::Initialize(
132 CallInterfaceDescriptorData* data) {
133 Register registers[] = {rsi, rdi, rdx, rbx};
134 Representation representations[] = {
135 Representation::Tagged(), Representation::Tagged(), Representation::Smi(),
136 Representation::Tagged()};
137 data->Initialize(arraysize(registers), registers, representations);
138 }
139
140
131 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { 141 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) {
132 // rax : number of arguments 142 // rax : number of arguments
133 // rbx : feedback vector 143 // rbx : feedback vector
134 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback 144 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback
135 // vector (Smi) 145 // vector (Smi)
136 // rdi : constructor function 146 // rdi : constructor function
137 // TODO(turbofan): So far we don't gather type feedback and hence skip the 147 // TODO(turbofan): So far we don't gather type feedback and hence skip the
138 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 148 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
139 Register registers[] = {rsi, rax, rdi, rbx}; 149 Register registers[] = {rsi, rax, rdi, rbx};
140 data->Initialize(arraysize(registers), registers, NULL); 150 data->Initialize(arraysize(registers), registers, NULL);
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 Representation::Tagged(), // call_data 339 Representation::Tagged(), // call_data
330 Representation::Tagged(), // holder 340 Representation::Tagged(), // holder
331 Representation::External(), // api_function_address 341 Representation::External(), // api_function_address
332 }; 342 };
333 data->Initialize(arraysize(registers), registers, representations); 343 data->Initialize(arraysize(registers), registers, representations);
334 } 344 }
335 } 345 }
336 } // namespace v8::internal 346 } // namespace v8::internal
337 347
338 #endif // V8_TARGET_ARCH_X64 348 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698