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

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

Issue 1475953002: [stubs] A new approach to TF stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win64 build 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/snapshot/serialize.cc ('k') | test/cctest/cctest.gyp » ('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_X64 5 #if V8_TARGET_ARCH_X64
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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 Register registers[] = { 384 Register registers[] = {
385 rdi, // callee 385 rdi, // callee
386 rbx, // call_data 386 rbx, // call_data
387 rcx, // holder 387 rcx, // holder
388 rdx, // api_function_address 388 rdx, // api_function_address
389 }; 389 };
390 data->InitializePlatformSpecific(arraysize(registers), registers); 390 data->InitializePlatformSpecific(arraysize(registers), registers);
391 } 391 }
392 392
393 393
394 void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
395 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
396 Register registers[] = {
397 rdi, // math rounding function
398 rdx, // vector slot id
399 };
400 data->InitializePlatformSpecific(arraysize(registers), registers);
401 }
402
403
404 void MathRoundVariantCallFromOptimizedCodeDescriptor::
405 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
406 Register registers[] = {
407 rdi, // math rounding function
408 rdx, // vector slot id
409 rbx // type vector
410 };
411 data->InitializePlatformSpecific(arraysize(registers), registers);
412 }
413
414
415 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 394 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
416 CallInterfaceDescriptorData* data) { 395 CallInterfaceDescriptorData* data) {
417 Register registers[] = { 396 Register registers[] = {
418 rax, // argument count (not including receiver) 397 rax, // argument count (not including receiver)
419 rbx, // address of first argument 398 rbx, // address of first argument
420 rdi // the target callable to be call 399 rdi // the target callable to be call
421 }; 400 };
422 data->InitializePlatformSpecific(arraysize(registers), registers); 401 data->InitializePlatformSpecific(arraysize(registers), registers);
423 } 402 }
424 403
(...skipping 17 matching lines...) Expand all
442 r15, // address of first argument (argv) 421 r15, // address of first argument (argv)
443 rbx // the runtime function to call 422 rbx // the runtime function to call
444 }; 423 };
445 data->InitializePlatformSpecific(arraysize(registers), registers); 424 data->InitializePlatformSpecific(arraysize(registers), registers);
446 } 425 }
447 426
448 } // namespace internal 427 } // namespace internal
449 } // namespace v8 428 } // namespace v8
450 429
451 #endif // V8_TARGET_ARCH_X64 430 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/snapshot/serialize.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698