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

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

Issue 2862213002: [turbofan] Optimized support for CreateGeneratorObject. (Closed)
Patch Set: Add control input. Created 3 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-operator.h ('k') | src/compiler/linkage.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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 parameters); // parameter 897 parameters); // parameter
898 } 898 }
899 899
900 const Operator* JSOperatorBuilder::DeleteProperty() { 900 const Operator* JSOperatorBuilder::DeleteProperty() {
901 return new (zone()) Operator( // -- 901 return new (zone()) Operator( // --
902 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode 902 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode
903 "JSDeleteProperty", // name 903 "JSDeleteProperty", // name
904 3, 1, 1, 1, 1, 2); // counts 904 3, 1, 1, 1, 1, 2); // counts
905 } 905 }
906 906
907 const Operator* JSOperatorBuilder::CreateGeneratorObject() {
908 return new (zone()) Operator( // --
909 IrOpcode::kJSCreateGeneratorObject, Operator::kEliminatable, // opcode
910 "JSCreateGeneratorObject", // name
911 2, 1, 1, 1, 1, 0); // counts
912 }
907 913
908 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name, 914 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name,
909 const VectorSlotPair& feedback, 915 const VectorSlotPair& feedback,
910 TypeofMode typeof_mode) { 916 TypeofMode typeof_mode) {
911 LoadGlobalParameters parameters(name, feedback, typeof_mode); 917 LoadGlobalParameters parameters(name, feedback, typeof_mode);
912 return new (zone()) Operator1<LoadGlobalParameters>( // -- 918 return new (zone()) Operator1<LoadGlobalParameters>( // --
913 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode 919 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode
914 "JSLoadGlobal", // name 920 "JSLoadGlobal", // name
915 0, 1, 1, 1, 1, 2, // counts 921 0, 1, 1, 1, 1, 2, // counts
916 parameters); // parameter 922 parameters); // parameter
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 1086 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
1081 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 1087 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
1082 "JSCreateScriptContext", // name 1088 "JSCreateScriptContext", // name
1083 1, 1, 1, 1, 1, 2, // counts 1089 1, 1, 1, 1, 1, 2, // counts
1084 scope_info); // parameter 1090 scope_info); // parameter
1085 } 1091 }
1086 1092
1087 } // namespace compiler 1093 } // namespace compiler
1088 } // namespace internal 1094 } // namespace internal
1089 } // namespace v8 1095 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698