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

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

Issue 1706263002: MIPS: [Interpreter] Implements calls through CallICStub in the interpreter. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comments. Created 4 years, 10 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/mips64/code-stubs-mips64.cc ('k') | 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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 423 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
424 CallInterfaceDescriptorData* data) { 424 CallInterfaceDescriptorData* data) {
425 Register registers[] = { 425 Register registers[] = {
426 a0, // argument count (not including receiver) 426 a0, // argument count (not including receiver)
427 a2, // address of first argument 427 a2, // address of first argument
428 a1 // the target callable to be call 428 a1 // the target callable to be call
429 }; 429 };
430 data->InitializePlatformSpecific(arraysize(registers), registers); 430 data->InitializePlatformSpecific(arraysize(registers), registers);
431 } 431 }
432 432
433 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific(
434 CallInterfaceDescriptorData* data) {
435 Register registers[] = {
436 a0, // argument count (not including receiver)
437 a4, // address of first argument
438 a1, // the target callable to be call
439 a3, // feedback vector slot id
440 a2 // type feedback vector
441 };
442 data->InitializePlatformSpecific(arraysize(registers), registers);
443 }
444
433 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( 445 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific(
434 CallInterfaceDescriptorData* data) { 446 CallInterfaceDescriptorData* data) {
435 Register registers[] = { 447 Register registers[] = {
436 a0, // argument count (not including receiver) 448 a0, // argument count (not including receiver)
437 a3, // new target 449 a3, // new target
438 a1, // constructor to call 450 a1, // constructor to call
439 a2 // address of the first argument 451 a2 // address of the first argument
440 }; 452 };
441 data->InitializePlatformSpecific(arraysize(registers), registers); 453 data->InitializePlatformSpecific(arraysize(registers), registers);
442 } 454 }
443 455
444 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 456 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
445 CallInterfaceDescriptorData* data) { 457 CallInterfaceDescriptorData* data) {
446 Register registers[] = { 458 Register registers[] = {
447 a0, // argument count (argc) 459 a0, // argument count (argc)
448 a2, // address of first argument (argv) 460 a2, // address of first argument (argv)
449 a1 // the runtime function to call 461 a1 // the runtime function to call
450 }; 462 };
451 data->InitializePlatformSpecific(arraysize(registers), registers); 463 data->InitializePlatformSpecific(arraysize(registers), registers);
452 } 464 }
453 465
454 } // namespace internal 466 } // namespace internal
455 } // namespace v8 467 } // namespace v8
456 468
457 #endif // V8_TARGET_ARCH_MIPS64 469 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698