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

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

Issue 1475953002: [stubs] A new approach to TF stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge with ToT 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
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 Register registers[] = { 391 Register registers[] = {
392 edi, // callee 392 edi, // callee
393 ebx, // call_data 393 ebx, // call_data
394 ecx, // holder 394 ecx, // holder
395 edx, // api_function_address 395 edx, // api_function_address
396 }; 396 };
397 data->InitializePlatformSpecific(arraysize(registers), registers); 397 data->InitializePlatformSpecific(arraysize(registers), registers);
398 } 398 }
399 399
400 400
401 void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
402 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
403 Register registers[] = {
404 edi, // math rounding function
405 edx, // vector slot id
406 };
407 data->InitializePlatformSpecific(arraysize(registers), registers);
408 }
409
410
411 void MathRoundVariantCallFromOptimizedCodeDescriptor::
412 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
413 Register registers[] = {
414 edi, // math rounding function
415 edx, // vector slot id
416 ebx // type vector
417 };
418 data->InitializePlatformSpecific(arraysize(registers), registers);
419 }
420
421
422 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 401 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
423 CallInterfaceDescriptorData* data) { 402 CallInterfaceDescriptorData* data) {
424 Register registers[] = { 403 Register registers[] = {
425 eax, // argument count (not including receiver) 404 eax, // argument count (not including receiver)
426 ebx, // address of first argument 405 ebx, // address of first argument
427 edi // the target callable to be call 406 edi // the target callable to be call
428 }; 407 };
429 data->InitializePlatformSpecific(arraysize(registers), registers); 408 data->InitializePlatformSpecific(arraysize(registers), registers);
430 } 409 }
431 410
(...skipping 17 matching lines...) Expand all
449 ecx, // address of first argument (argv) 428 ecx, // address of first argument (argv)
450 ebx // the runtime function to call 429 ebx // the runtime function to call
451 }; 430 };
452 data->InitializePlatformSpecific(arraysize(registers), registers); 431 data->InitializePlatformSpecific(arraysize(registers), registers);
453 } 432 }
454 433
455 } // namespace internal 434 } // namespace internal
456 } // namespace v8 435 } // namespace v8
457 436
458 #endif // V8_TARGET_ARCH_IA32 437 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698