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

Side by Side Diff: src/ia32/interface-descriptors-ia32.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, 10 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/ia32/full-codegen-ia32.cc ('k') | src/ic/ic.h » ('j') | 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_IA32 7 #if V8_TARGET_ARCH_IA32
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[] = {esi, edi, edx}; 123 Register registers[] = {esi, edi, edx};
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[] = {esi, edi, edx, ebx};
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 // eax : number of arguments 142 // eax : number of arguments
133 // ebx : feedback vector 143 // ebx : feedback vector
134 // edx : (only if ebx is not the megamorphic symbol) slot in feedback 144 // edx : (only if ebx is not the megamorphic symbol) slot in feedback
135 // vector (Smi) 145 // vector (Smi)
136 // edi : constructor function 146 // edi : 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[] = {esi, eax, edi, ebx}; 149 Register registers[] = {esi, eax, edi, ebx};
140 data->Initialize(arraysize(registers), registers, NULL); 150 data->Initialize(arraysize(registers), registers, NULL);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 Representation::Tagged(), // call_data 338 Representation::Tagged(), // call_data
329 Representation::Tagged(), // holder 339 Representation::Tagged(), // holder
330 Representation::External(), // api_function_address 340 Representation::External(), // api_function_address
331 }; 341 };
332 data->Initialize(arraysize(registers), registers, representations); 342 data->Initialize(arraysize(registers), registers, representations);
333 } 343 }
334 } 344 }
335 } // namespace v8::internal 345 } // namespace v8::internal
336 346
337 #endif // V8_TARGET_ARCH_IA32 347 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698