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, |