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

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

Issue 2448993002: [turbofan]: Convert StringFromCharCode to var-args style TF builtin (Closed)
Patch Set: Fix comments Created 4 years, 1 month 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformIndependent( 363 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformIndependent(
364 CallInterfaceDescriptorData* data) { 364 CallInterfaceDescriptorData* data) {
365 // kFunction, kActualArgumentsCount, kSlot, kVector 365 // kFunction, kActualArgumentsCount, kSlot, kVector
366 MachineType machine_types[] = { 366 MachineType machine_types[] = {
367 MachineType::TaggedPointer(), MachineType::Int32(), 367 MachineType::TaggedPointer(), MachineType::Int32(),
368 MachineType::TaggedSigned(), MachineType::AnyTagged()}; 368 MachineType::TaggedSigned(), MachineType::AnyTagged()};
369 data->InitializePlatformIndependent(arraysize(machine_types), 0, 369 data->InitializePlatformIndependent(arraysize(machine_types), 0,
370 machine_types); 370 machine_types);
371 } 371 }
372 372
373 void BuiltinDescriptor::InitializePlatformIndependent(
374 CallInterfaceDescriptorData* data) {
375 MachineType machine_types[] = {MachineType::AnyTagged(),
376 MachineType::Int32()};
377 data->InitializePlatformIndependent(arraysize(machine_types), 0,
378 machine_types);
379 }
380
381 void BuiltinDescriptor::InitializePlatformSpecific(
382 CallInterfaceDescriptorData* data) {
383 Register registers[] = {NewTargetRegister(), ArgumentsCountRegister()};
384 data->InitializePlatformSpecific(arraysize(registers), registers);
385 }
386
387 const Register BuiltinDescriptor::ArgumentsCountRegister() {
388 return kJavaScriptCallArgCountRegister;
389 }
390 const Register BuiltinDescriptor::NewTargetRegister() {
391 return kJavaScriptCallNewTargetRegister;
392 }
393
373 void ArrayNoArgumentConstructorDescriptor::InitializePlatformIndependent( 394 void ArrayNoArgumentConstructorDescriptor::InitializePlatformIndependent(
374 CallInterfaceDescriptorData* data) { 395 CallInterfaceDescriptorData* data) {
375 // kFunction, kAllocationSite, kActualArgumentsCount, kFunctionParameter 396 // kFunction, kAllocationSite, kActualArgumentsCount, kFunctionParameter
376 MachineType machine_types[] = {MachineType::TaggedPointer(), 397 MachineType machine_types[] = {MachineType::TaggedPointer(),
377 MachineType::AnyTagged(), MachineType::Int32(), 398 MachineType::AnyTagged(), MachineType::Int32(),
378 MachineType::AnyTagged()}; 399 MachineType::AnyTagged()};
379 data->InitializePlatformIndependent(arraysize(machine_types), 0, 400 data->InitializePlatformIndependent(arraysize(machine_types), 0,
380 machine_types); 401 machine_types);
381 } 402 }
382 403
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 CallInterfaceDescriptorData* data) { 486 CallInterfaceDescriptorData* data) {
466 // kNumberOfArguments, kFirstArgument, kFunctionEntry 487 // kNumberOfArguments, kFirstArgument, kFunctionEntry
467 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), 488 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
468 MachineType::Pointer()}; 489 MachineType::Pointer()};
469 data->InitializePlatformIndependent(arraysize(machine_types), 0, 490 data->InitializePlatformIndependent(arraysize(machine_types), 0,
470 machine_types); 491 machine_types);
471 } 492 }
472 493
473 } // namespace internal 494 } // namespace internal
474 } // namespace v8 495 } // 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