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

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

Issue 1987183002: [stubs] Convert Internal/ArraySingleArgumentsConstructor to a TurboFan stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 7 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 namespace { 10 namespace {
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 Zone* zone = isolate->interface_descriptor_zone(); 437 Zone* zone = isolate->interface_descriptor_zone();
438 FunctionType* function = 438 FunctionType* function =
439 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); 439 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction();
440 function->InitParameter(0, Type::Receiver()); // JSFunction 440 function->InitParameter(0, Type::Receiver()); // JSFunction
441 function->InitParameter(1, AnyTagged(zone)); 441 function->InitParameter(1, AnyTagged(zone));
442 function->InitParameter(2, UntaggedIntegral32(zone)); 442 function->InitParameter(2, UntaggedIntegral32(zone));
443 function->InitParameter(3, AnyTagged(zone)); 443 function->InitParameter(3, AnyTagged(zone));
444 return function; 444 return function;
445 } 445 }
446 446
447 FunctionType* ArraySingleArgumentConstructorDescriptor::
448 BuildCallInterfaceDescriptorFunctionType(Isolate* isolate,
449 int paramater_count) {
450 Zone* zone = isolate->interface_descriptor_zone();
451 FunctionType* function =
452 Type::Function(AnyTagged(zone), Type::Undefined(), 5, zone)->AsFunction();
453 function->InitParameter(0, Type::Receiver()); // JSFunction
454 function->InitParameter(1, AnyTagged(zone));
455 function->InitParameter(2, UntaggedIntegral32(zone));
456 function->InitParameter(3, AnyTagged(zone));
457 function->InitParameter(4, AnyTagged(zone));
458 return function;
459 }
460
447 FunctionType* 461 FunctionType*
448 ArrayConstructorDescriptor::BuildCallInterfaceDescriptorFunctionType( 462 ArrayConstructorDescriptor::BuildCallInterfaceDescriptorFunctionType(
449 Isolate* isolate, int paramater_count) { 463 Isolate* isolate, int paramater_count) {
450 Zone* zone = isolate->interface_descriptor_zone(); 464 Zone* zone = isolate->interface_descriptor_zone();
451 FunctionType* function = 465 FunctionType* function =
452 Type::Function(AnyTagged(zone), Type::Undefined(), 3, zone)->AsFunction(); 466 Type::Function(AnyTagged(zone), Type::Undefined(), 3, zone)->AsFunction();
453 function->InitParameter(0, Type::Receiver()); // JSFunction 467 function->InitParameter(0, Type::Receiver()); // JSFunction
454 function->InitParameter(1, AnyTagged(zone)); 468 function->InitParameter(1, AnyTagged(zone));
455 function->InitParameter(2, UntaggedIntegral32(zone)); 469 function->InitParameter(2, UntaggedIntegral32(zone));
456 return function; 470 return function;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); 544 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction();
531 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); 545 function->InitParameter(kAccumulatorParameter, AnyTagged(zone));
532 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); 546 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone));
533 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); 547 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone));
534 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); 548 function->InitParameter(kDispatchTableParameter, AnyTagged(zone));
535 return function; 549 return function;
536 } 550 }
537 551
538 } // namespace internal 552 } // namespace internal
539 } // namespace v8 553 } // 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