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

Side by Side Diff: src/compiler/js-generic-lowering.cc

Issue 1693513002: [runtime] Introduce FastNewStrictArgumentsStub to optimize strict arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips and mips64. Created 4 years, 10 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/compiler/js-create-lowering.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 } 527 }
528 528
529 529
530 void JSGenericLowering::LowerJSCreateArguments(Node* node) { 530 void JSGenericLowering::LowerJSCreateArguments(Node* node) {
531 CreateArgumentsType const type = CreateArgumentsTypeOf(node->op()); 531 CreateArgumentsType const type = CreateArgumentsTypeOf(node->op());
532 switch (type) { 532 switch (type) {
533 case CreateArgumentsType::kMappedArguments: 533 case CreateArgumentsType::kMappedArguments:
534 ReplaceWithRuntimeCall(node, Runtime::kNewSloppyArguments_Generic); 534 ReplaceWithRuntimeCall(node, Runtime::kNewSloppyArguments_Generic);
535 break; 535 break;
536 case CreateArgumentsType::kUnmappedArguments: 536 case CreateArgumentsType::kUnmappedArguments:
537 ReplaceWithRuntimeCall(node, Runtime::kNewStrictArguments_Generic); 537 ReplaceWithRuntimeCall(node, Runtime::kNewStrictArguments);
538 break; 538 break;
539 case CreateArgumentsType::kRestParameter: 539 case CreateArgumentsType::kRestParameter:
540 ReplaceWithRuntimeCall(node, Runtime::kNewRestParameter); 540 ReplaceWithRuntimeCall(node, Runtime::kNewRestParameter);
541 break; 541 break;
542 } 542 }
543 } 543 }
544 544
545 545
546 void JSGenericLowering::LowerJSCreateArray(Node* node) { 546 void JSGenericLowering::LowerJSCreateArray(Node* node) {
547 CreateArrayParameters const& p = CreateArrayParametersOf(node->op()); 547 CreateArrayParameters const& p = CreateArrayParametersOf(node->op());
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 } 874 }
875 875
876 876
877 MachineOperatorBuilder* JSGenericLowering::machine() const { 877 MachineOperatorBuilder* JSGenericLowering::machine() const {
878 return jsgraph()->machine(); 878 return jsgraph()->machine();
879 } 879 }
880 880
881 } // namespace compiler 881 } // namespace compiler
882 } // namespace internal 882 } // namespace internal
883 } // namespace v8 883 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698