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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index 1e2c15882b2f52a471574e460bb2b91b1e60027b..1b894d7cc1e384b5d6ff960c22dafd54ff9620bb 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -904,6 +904,12 @@ const Operator* JSOperatorBuilder::DeleteProperty() {
3, 1, 1, 1, 1, 2); // counts
}
+const Operator* JSOperatorBuilder::CreateGeneratorObject() {
+ return new (zone()) Operator( // --
+ IrOpcode::kJSCreateGeneratorObject, Operator::kEliminatable, // opcode
+ "JSCreateGeneratorObject", // name
+ 2, 1, 1, 1, 1, 0); // counts
+}
const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name,
const VectorSlotPair& feedback,
« 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