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

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

Issue 2380523005: [interpreter] Specify and type the parameters of the Interpreter*Descriptors. (Closed)
Patch Set: Update. Created 4 years, 2 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/interface-descriptors.h ('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 #include "src/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 10
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 void InterpreterDispatchDescriptor::InitializePlatformIndependent( 417 void InterpreterDispatchDescriptor::InitializePlatformIndependent(
418 CallInterfaceDescriptorData* data) { 418 CallInterfaceDescriptorData* data) {
419 // kAccumulator, kBytecodeOffset, kBytecodeArray, kDispatchTable 419 // kAccumulator, kBytecodeOffset, kBytecodeArray, kDispatchTable
420 MachineType machine_types[] = { 420 MachineType machine_types[] = {
421 MachineType::AnyTagged(), MachineType::IntPtr(), MachineType::AnyTagged(), 421 MachineType::AnyTagged(), MachineType::IntPtr(), MachineType::AnyTagged(),
422 MachineType::AnyTagged()}; 422 MachineType::AnyTagged()};
423 data->InitializePlatformIndependent(arraysize(machine_types), 0, 423 data->InitializePlatformIndependent(arraysize(machine_types), 0,
424 machine_types); 424 machine_types);
425 } 425 }
426 426
427 void InterpreterPushArgsAndCallDescriptor::InitializePlatformIndependent(
428 CallInterfaceDescriptorData* data) {
429 // kNumberOfArguments, kFirstArgument, kFunction
430 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
431 MachineType::AnyTagged()};
432 data->InitializePlatformIndependent(arraysize(machine_types), 0,
433 machine_types);
434 }
435
436 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformIndependent(
437 CallInterfaceDescriptorData* data) {
438 // kNumberOfArguments, kNewTarget, kConstructor, kFeedbackElement,
439 // kFirstArgument
440 MachineType machine_types[] = {
441 MachineType::Int32(), MachineType::AnyTagged(), MachineType::AnyTagged(),
442 MachineType::AnyTagged(), MachineType::Pointer()};
443 data->InitializePlatformIndependent(arraysize(machine_types), 0,
444 machine_types);
445 }
446
447 void InterpreterPushArgsAndConstructArrayDescriptor::
448 InitializePlatformIndependent(CallInterfaceDescriptorData* data) {
449 // kNumberOfArguments, kFunction, kFeedbackElement, kFirstArgument
450 MachineType machine_types[] = {MachineType::Int32(), MachineType::AnyTagged(),
451 MachineType::AnyTagged(),
452 MachineType::Pointer()};
453 data->InitializePlatformIndependent(arraysize(machine_types), 0,
454 machine_types);
455 }
456
457 void InterpreterCEntryDescriptor::InitializePlatformIndependent(
458 CallInterfaceDescriptorData* data) {
459 // kNumberOfArguments, kFirstArgument, kFunctionEntry
460 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
461 MachineType::Pointer()};
462 data->InitializePlatformIndependent(arraysize(machine_types), 0,
463 machine_types);
464 }
465
427 } // namespace internal 466 } // namespace internal
428 } // namespace v8 467 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698