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

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

Issue 2777203007: [builtins] Introduce new TFC macro and auto-generate TFS descriptors (Closed)
Patch Set: Rebase Created 3 years, 8 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/builtins/setup-builtins-internal.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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 Register registers[] = {eax}; 281 Register registers[] = {eax};
282 data->InitializePlatformSpecific(arraysize(registers), registers); 282 data->InitializePlatformSpecific(arraysize(registers), registers);
283 } 283 }
284 284
285 void StringAddDescriptor::InitializePlatformSpecific( 285 void StringAddDescriptor::InitializePlatformSpecific(
286 CallInterfaceDescriptorData* data) { 286 CallInterfaceDescriptorData* data) {
287 Register registers[] = {edx, eax}; 287 Register registers[] = {edx, eax};
288 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 288 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
289 } 289 }
290 290
291
292 void KeyedDescriptor::InitializePlatformSpecific(
293 CallInterfaceDescriptorData* data) {
294 Register registers[] = {
295 ecx, // key
296 };
297 data->InitializePlatformSpecific(arraysize(registers), registers);
298 }
299
300
301 void NamedDescriptor::InitializePlatformSpecific(
302 CallInterfaceDescriptorData* data) {
303 Register registers[] = {
304 ecx, // name
305 };
306 data->InitializePlatformSpecific(arraysize(registers), registers);
307 }
308
309
310 void CallHandlerDescriptor::InitializePlatformSpecific(
311 CallInterfaceDescriptorData* data) {
312 Register registers[] = {
313 edx, // name
314 };
315 data->InitializePlatformSpecific(arraysize(registers), registers);
316 }
317
318
319 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( 291 void ArgumentAdaptorDescriptor::InitializePlatformSpecific(
320 CallInterfaceDescriptorData* data) { 292 CallInterfaceDescriptorData* data) {
321 Register registers[] = { 293 Register registers[] = {
322 edi, // JSFunction 294 edi, // JSFunction
323 edx, // the new target 295 edx, // the new target
324 eax, // actual number of arguments 296 eax, // actual number of arguments
325 ebx, // expected number of arguments 297 ebx, // expected number of arguments
326 }; 298 };
327 data->InitializePlatformSpecific(arraysize(registers), registers); 299 data->InitializePlatformSpecific(arraysize(registers), registers);
328 } 300 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 Register registers[] = { 377 Register registers[] = {
406 ebx, // loaded new FP 378 ebx, // loaded new FP
407 }; 379 };
408 data->InitializePlatformSpecific(arraysize(registers), registers); 380 data->InitializePlatformSpecific(arraysize(registers), registers);
409 } 381 }
410 382
411 } // namespace internal 383 } // namespace internal
412 } // namespace v8 384 } // namespace v8
413 385
414 #endif // V8_TARGET_ARCH_IA32 386 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/builtins/setup-builtins-internal.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698