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

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

Issue 1489413006: Revert of 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: 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 ConstructDescriptor::InitializePlatformSpecific( 197 void CallConstructDescriptor::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)
201 // edx : slot in feedback vector (Smi, for RecordCallTarget) 202 // edx : slot in feedback vector (Smi, for RecordCallTarget)
202 // edi : constructor function 203 // edi : constructor function
203 // TODO(turbofan): So far we don't gather type feedback and hence skip the 204 // TODO(turbofan): So far we don't gather type feedback and hence skip the
204 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 205 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
205 Register registers[] = {eax, edi, edx, ebx}; 206 Register registers[] = {eax, edi, ecx, ebx};
206 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 207 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
207 } 208 }
208 209
209 210
210 void CallTrampolineDescriptor::InitializePlatformSpecific( 211 void CallTrampolineDescriptor::InitializePlatformSpecific(
211 CallInterfaceDescriptorData* data) { 212 CallInterfaceDescriptorData* data) {
212 // eax : number of arguments 213 // eax : number of arguments
213 // edi : the target to call 214 // edi : the target to call
214 Register registers[] = {edi, eax}; 215 Register registers[] = {edi, eax};
215 data->InitializePlatformSpecific(arraysize(registers), registers); 216 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 ecx, // address of first argument (argv) 449 ecx, // address of first argument (argv)
449 ebx // the runtime function to call 450 ebx // the runtime function to call
450 }; 451 };
451 data->InitializePlatformSpecific(arraysize(registers), registers); 452 data->InitializePlatformSpecific(arraysize(registers), registers);
452 } 453 }
453 454
454 } // namespace internal 455 } // namespace internal
455 } // namespace v8 456 } // namespace v8
456 457
457 #endif // V8_TARGET_ARCH_IA32 458 #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