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

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

Issue 2930933002: [turbofan] JSCreateClosure doesn't have any JS observable side effects. (Closed)
Patch Set: Created 3 years, 6 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-generic-lowering.cc ('k') | no next file » | 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 eafa8b4601185245b29e58fbfb7ec185a9a9cea8..70917c1acf605dd4252ea6de6cc9d3500379e802 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -1064,11 +1064,11 @@ const Operator* JSOperatorBuilder::CreateClosure(
Handle<SharedFunctionInfo> shared_info, VectorSlotPair const& feedback,
PretenureFlag pretenure) {
CreateClosureParameters parameters(shared_info, feedback, pretenure);
- return new (zone()) Operator1<CreateClosureParameters>( // --
- IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode
- "JSCreateClosure", // name
- 0, 1, 1, 1, 1, 0, // counts
- parameters); // parameter
+ return new (zone()) Operator1<CreateClosureParameters>( // --
+ IrOpcode::kJSCreateClosure, Operator::kEliminatable, // opcode
+ "JSCreateClosure", // name
+ 0, 1, 1, 1, 1, 0, // counts
+ parameters); // parameter
}
const Operator* JSOperatorBuilder::CreateLiteralArray(
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698