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

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

Issue 1476413003: Provide call counts for constructor calls, surface them as a vector IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years 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/code-stubs-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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 189
190 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( 190 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific(
191 CallInterfaceDescriptorData* data) { 191 CallInterfaceDescriptorData* data) {
192 Register registers[] = {edi, edx, ebx}; 192 Register registers[] = {edi, edx, ebx};
193 data->InitializePlatformSpecific(arraysize(registers), registers); 193 data->InitializePlatformSpecific(arraysize(registers), registers);
194 } 194 }
195 195
196 196
197 void CallConstructDescriptor::InitializePlatformSpecific( 197 void ConstructDescriptor::InitializePlatformSpecific(
198 CallInterfaceDescriptorData* data) { 198 CallInterfaceDescriptorData* data) {
199 // eax : number of arguments 199 // eax : number of arguments
200 // ebx : feedback vector 200 // ebx : feedback vector
201 // ecx : new target (for IsSuperConstructorCall)
202 // edx : slot in feedback vector (Smi, for RecordCallTarget) 201 // edx : slot in feedback vector (Smi, for RecordCallTarget)
203 // edi : constructor function 202 // edi : constructor function
204 // TODO(turbofan): So far we don't gather type feedback and hence skip the 203 // TODO(turbofan): So far we don't gather type feedback and hence skip the
205 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 204 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
206 Register registers[] = {eax, edi, ecx, ebx}; 205 Register registers[] = {eax, edi, edx, ebx};
207 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 206 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
208 } 207 }
209 208
210 209
211 void CallTrampolineDescriptor::InitializePlatformSpecific( 210 void CallTrampolineDescriptor::InitializePlatformSpecific(
212 CallInterfaceDescriptorData* data) { 211 CallInterfaceDescriptorData* data) {
213 // eax : number of arguments 212 // eax : number of arguments
214 // edi : the target to call 213 // edi : the target to call
215 Register registers[] = {edi, eax}; 214 Register registers[] = {edi, eax};
216 data->InitializePlatformSpecific(arraysize(registers), registers); 215 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 ecx, // address of first argument (argv) 448 ecx, // address of first argument (argv)
450 ebx // the runtime function to call 449 ebx // the runtime function to call
451 }; 450 };
452 data->InitializePlatformSpecific(arraysize(registers), registers); 451 data->InitializePlatformSpecific(arraysize(registers), registers);
453 } 452 }
454 453
455 } // namespace internal 454 } // namespace internal
456 } // namespace v8 455 } // namespace v8
457 456
458 #endif // V8_TARGET_ARCH_IA32 457 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698