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

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

Issue 1492633006: PPC: [stubs] A new approach to TF stubs (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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 Register registers[] = { 383 Register registers[] = {
384 r3, // callee 384 r3, // callee
385 r7, // call_data 385 r7, // call_data
386 r5, // holder 386 r5, // holder
387 r4, // api_function_address 387 r4, // api_function_address
388 }; 388 };
389 data->InitializePlatformSpecific(arraysize(registers), registers); 389 data->InitializePlatformSpecific(arraysize(registers), registers);
390 } 390 }
391 391
392 392
393 void MathRoundVariantCallFromUnoptimizedCodeDescriptor::
394 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
395 Register registers[] = {
396 r4, // math rounding function
397 r6, // vector slot id
398 };
399 data->InitializePlatformSpecific(arraysize(registers), registers);
400 }
401
402
403 void MathRoundVariantCallFromOptimizedCodeDescriptor::
404 InitializePlatformSpecific(CallInterfaceDescriptorData* data) {
405 Register registers[] = {
406 r4, // math rounding function
407 r6, // vector slot id
408 r7, // type vector
409 };
410 data->InitializePlatformSpecific(arraysize(registers), registers);
411 }
412
413
414 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 393 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
415 CallInterfaceDescriptorData* data) { 394 CallInterfaceDescriptorData* data) {
416 Register registers[] = { 395 Register registers[] = {
417 r3, // argument count (not including receiver) 396 r3, // argument count (not including receiver)
418 r5, // address of first argument 397 r5, // address of first argument
419 r4 // the target callable to be call 398 r4 // the target callable to be call
420 }; 399 };
421 data->InitializePlatformSpecific(arraysize(registers), registers); 400 data->InitializePlatformSpecific(arraysize(registers), registers);
422 } 401 }
423 402
(...skipping 16 matching lines...) Expand all
440 r3, // argument count (argc) 419 r3, // argument count (argc)
441 r5, // address of first argument (argv) 420 r5, // address of first argument (argv)
442 r4 // the runtime function to call 421 r4 // the runtime function to call
443 }; 422 };
444 data->InitializePlatformSpecific(arraysize(registers), registers); 423 data->InitializePlatformSpecific(arraysize(registers), registers);
445 } 424 }
446 } // namespace internal 425 } // namespace internal
447 } // namespace v8 426 } // namespace v8
448 427
449 #endif // V8_TARGET_ARCH_PPC 428 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698