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

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

Issue 2412453005: [stubs] Refactor the CallICStub to pass the number of arguments. (Closed)
Patch Set: 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') | src/mips/code-stubs-mips.cc » ('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 #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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 CallInterfaceDescriptorData* data) { 371 CallInterfaceDescriptorData* data) {
372 // kFunction, kSlot 372 // kFunction, kSlot
373 MachineType machine_types[] = {MachineType::AnyTagged(), 373 MachineType machine_types[] = {MachineType::AnyTagged(),
374 MachineType::TaggedSigned()}; 374 MachineType::TaggedSigned()};
375 data->InitializePlatformIndependent(arraysize(machine_types), 0, 375 data->InitializePlatformIndependent(arraysize(machine_types), 0,
376 machine_types); 376 machine_types);
377 } 377 }
378 378
379 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformIndependent( 379 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformIndependent(
380 CallInterfaceDescriptorData* data) { 380 CallInterfaceDescriptorData* data) {
381 // kFunction, kSlot, kVector 381 // kFunction, kActualArgumentsCount, kSlot, kVector
382 MachineType machine_types[] = {MachineType::TaggedPointer(), 382 MachineType machine_types[] = {
383 MachineType::TaggedSigned(), 383 MachineType::TaggedPointer(), MachineType::Int32(),
384 MachineType::AnyTagged()}; 384 MachineType::TaggedSigned(), MachineType::AnyTagged()};
385 data->InitializePlatformIndependent(arraysize(machine_types), 0, 385 data->InitializePlatformIndependent(arraysize(machine_types), 0,
386 machine_types); 386 machine_types);
387 } 387 }
388 388
389 void ArrayNoArgumentConstructorDescriptor::InitializePlatformIndependent( 389 void ArrayNoArgumentConstructorDescriptor::InitializePlatformIndependent(
390 CallInterfaceDescriptorData* data) { 390 CallInterfaceDescriptorData* data) {
391 // kFunction, kAllocationSite, kActualArgumentsCount, kFunctionParameter 391 // kFunction, kAllocationSite, kActualArgumentsCount, kFunctionParameter
392 MachineType machine_types[] = {MachineType::TaggedPointer(), 392 MachineType machine_types[] = {MachineType::TaggedPointer(),
393 MachineType::AnyTagged(), MachineType::Int32(), 393 MachineType::AnyTagged(), MachineType::Int32(),
394 MachineType::AnyTagged()}; 394 MachineType::AnyTagged()};
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 CallInterfaceDescriptorData* data) { 481 CallInterfaceDescriptorData* data) {
482 // kNumberOfArguments, kFirstArgument, kFunctionEntry 482 // kNumberOfArguments, kFirstArgument, kFunctionEntry
483 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), 483 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
484 MachineType::Pointer()}; 484 MachineType::Pointer()};
485 data->InitializePlatformIndependent(arraysize(machine_types), 0, 485 data->InitializePlatformIndependent(arraysize(machine_types), 0,
486 machine_types); 486 machine_types);
487 } 487 }
488 488
489 } // namespace internal 489 } // namespace internal
490 } // namespace v8 490 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698