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

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

Issue 1325573004: [runtime] Replace many buggy uses of %_CallFunction with %_Call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address feedback. Created 5 years, 3 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/hydrogen.cc ('k') | src/interface-descriptors.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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // ecx : original constructor (for IsSuperConstructorCall) 191 // ecx : original constructor (for IsSuperConstructorCall)
192 // edx : slot in feedback vector (Smi, for RecordCallTarget) 192 // edx : slot in feedback vector (Smi, for RecordCallTarget)
193 // edi : constructor function 193 // edi : constructor function
194 // TODO(turbofan): So far we don't gather type feedback and hence skip the 194 // TODO(turbofan): So far we don't gather type feedback and hence skip the
195 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 195 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
196 Register registers[] = {eax, edi, ecx, ebx}; 196 Register registers[] = {eax, edi, ecx, ebx};
197 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 197 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
198 } 198 }
199 199
200 200
201 void CallTrampolineDescriptor::InitializePlatformSpecific(
202 CallInterfaceDescriptorData* data) {
203 // eax : number of arguments
204 // edi : the target to call
205 Register registers[] = {edi, eax};
206 data->InitializePlatformSpecific(arraysize(registers), registers);
207 }
208
209
201 void RegExpConstructResultDescriptor::InitializePlatformSpecific( 210 void RegExpConstructResultDescriptor::InitializePlatformSpecific(
202 CallInterfaceDescriptorData* data) { 211 CallInterfaceDescriptorData* data) {
203 Register registers[] = {ecx, ebx, eax}; 212 Register registers[] = {ecx, ebx, eax};
204 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 213 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
205 } 214 }
206 215
207 216
208 void TransitionElementsKindDescriptor::InitializePlatformSpecific( 217 void TransitionElementsKindDescriptor::InitializePlatformSpecific(
209 CallInterfaceDescriptorData* data) { 218 CallInterfaceDescriptorData* data) {
210 Register registers[] = {eax, ebx}; 219 Register registers[] = {eax, ebx};
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 edi, // math rounding function 386 edi, // math rounding function
378 edx, // vector slot id 387 edx, // vector slot id
379 ebx // type vector 388 ebx // type vector
380 }; 389 };
381 data->InitializePlatformSpecific(arraysize(registers), registers); 390 data->InitializePlatformSpecific(arraysize(registers), registers);
382 } 391 }
383 } // namespace internal 392 } // namespace internal
384 } // namespace v8 393 } // namespace v8
385 394
386 #endif // V8_TARGET_ARCH_IA32 395 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698