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

Unified Diff: src/compiler/js-operator.cc

Issue 2862213002: [turbofan] Optimized support for CreateGeneratorObject. (Closed)
Patch Set: Cleanup. 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..dbd889a86286d56a9d23b1b75733a0a0b88b30e8 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, 0, 1, 1, 0); // counts
Benedikt Meurer 2017/05/06 11:50:09 this should have a control input as well.
mvstanton 2017/05/06 17:52:30 Hmm, I chatted with Michi rather extensively about
Benedikt Meurer 2017/05/06 21:29:23 This way the allocation cannot get hoisted above a
mvstanton 2017/05/06 22:25:31 Good point. We were thinking about the fact that f
+}
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