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

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

Issue 2573573004: [stubs] Enable graph verification for builtins. (Closed)
Patch Set: Created 4 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 #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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // kFunction, kActualArgumentsCount, kSlot, kVector 395 // kFunction, kActualArgumentsCount, kSlot, kVector
396 MachineType machine_types[] = { 396 MachineType machine_types[] = {
397 MachineType::TaggedPointer(), MachineType::Int32(), 397 MachineType::TaggedPointer(), MachineType::Int32(),
398 MachineType::TaggedSigned(), MachineType::AnyTagged()}; 398 MachineType::TaggedSigned(), MachineType::AnyTagged()};
399 data->InitializePlatformIndependent(arraysize(machine_types), 0, 399 data->InitializePlatformIndependent(arraysize(machine_types), 0,
400 machine_types); 400 machine_types);
401 } 401 }
402 402
403 void BuiltinDescriptor::InitializePlatformIndependent( 403 void BuiltinDescriptor::InitializePlatformIndependent(
404 CallInterfaceDescriptorData* data) { 404 CallInterfaceDescriptorData* data) {
405 MachineType machine_types[] = {MachineType::AnyTagged(), 405 // kTarget, kNewTarget, kArgumentsCount
406 MachineType::AnyTagged(), 406 MachineType machine_types[] = {
407 MachineType::Pointer()}; 407 MachineType::AnyTagged(), MachineType::AnyTagged(), MachineType::Int32()};
408 data->InitializePlatformIndependent(arraysize(machine_types), 0, 408 data->InitializePlatformIndependent(arraysize(machine_types), 0,
409 machine_types); 409 machine_types);
410 } 410 }
411 411
412 void BuiltinDescriptor::InitializePlatformSpecific( 412 void BuiltinDescriptor::InitializePlatformSpecific(
413 CallInterfaceDescriptorData* data) { 413 CallInterfaceDescriptorData* data) {
414 Register registers[] = {TargetRegister(), NewTargetRegister(), 414 Register registers[] = {TargetRegister(), NewTargetRegister(),
415 ArgumentsCountRegister()}; 415 ArgumentsCountRegister()};
416 data->InitializePlatformSpecific(arraysize(registers), registers); 416 data->InitializePlatformSpecific(arraysize(registers), registers);
417 } 417 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 CallInterfaceDescriptorData* data) { 522 CallInterfaceDescriptorData* data) {
523 // kNumberOfArguments, kFirstArgument, kFunctionEntry 523 // kNumberOfArguments, kFirstArgument, kFunctionEntry
524 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), 524 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
525 MachineType::Pointer()}; 525 MachineType::Pointer()};
526 data->InitializePlatformIndependent(arraysize(machine_types), 0, 526 data->InitializePlatformIndependent(arraysize(machine_types), 0,
527 machine_types); 527 machine_types);
528 } 528 }
529 529
530 } // namespace internal 530 } // namespace internal
531 } // namespace v8 531 } // namespace v8
OLDNEW
« src/compiler/machine-graph-verifier.cc ('K') | « src/interface-descriptors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698