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

Side by Side Diff: src/compiler/js-operator.cc

Issue 1965013005: [turbofan] Slighly improve JSCreateArguments lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment. Fix control input. 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/compiler/js-create-lowering.cc ('k') | src/frames.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/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return new (zone()) Operator1<ContextAccess>( // -- 700 return new (zone()) Operator1<ContextAccess>( // --
701 IrOpcode::kJSStoreContext, // opcode 701 IrOpcode::kJSStoreContext, // opcode
702 Operator::kNoRead | Operator::kNoThrow, // flags 702 Operator::kNoRead | Operator::kNoThrow, // flags
703 "JSStoreContext", // name 703 "JSStoreContext", // name
704 2, 1, 1, 0, 1, 0, // counts 704 2, 1, 1, 0, 1, 0, // counts
705 access); // parameter 705 access); // parameter
706 } 706 }
707 707
708 708
709 const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) { 709 const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) {
710 return new (zone()) Operator1<CreateArgumentsType>( // -- 710 return new (zone()) Operator1<CreateArgumentsType>( // --
711 IrOpcode::kJSCreateArguments, Operator::kNoThrow, // opcode 711 IrOpcode::kJSCreateArguments, Operator::kEliminatable, // opcode
712 "JSCreateArguments", // name 712 "JSCreateArguments", // name
713 1, 1, 1, 1, 1, 0, // counts 713 1, 1, 0, 1, 1, 0, // counts
714 type); // parameter 714 type); // parameter
715 } 715 }
716 716
717 717
718 const Operator* JSOperatorBuilder::CreateArray(size_t arity, 718 const Operator* JSOperatorBuilder::CreateArray(size_t arity,
719 Handle<AllocationSite> site) { 719 Handle<AllocationSite> site) {
720 // constructor, new_target, arg1, ..., argN 720 // constructor, new_target, arg1, ..., argN
721 int const value_input_count = static_cast<int>(arity) + 2; 721 int const value_input_count = static_cast<int>(arity) + 2;
722 CreateArrayParameters parameters(arity, site); 722 CreateArrayParameters parameters(arity, site);
723 return new (zone()) Operator1<CreateArrayParameters>( // -- 723 return new (zone()) Operator1<CreateArrayParameters>( // --
724 IrOpcode::kJSCreateArray, Operator::kNoProperties, // opcode 724 IrOpcode::kJSCreateArray, Operator::kNoProperties, // opcode
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 809 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
810 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 810 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
811 "JSCreateScriptContext", // name 811 "JSCreateScriptContext", // name
812 1, 1, 1, 1, 1, 2, // counts 812 1, 1, 1, 1, 1, 2, // counts
813 scpope_info); // parameter 813 scpope_info); // parameter
814 } 814 }
815 815
816 } // namespace compiler 816 } // namespace compiler
817 } // namespace internal 817 } // namespace internal
818 } // namespace v8 818 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698