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

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

Issue 2829093002: [turbofan] Avoid creating singleton state-values for the accumulator. (Closed)
Patch Set: Improve comment Created 3 years, 8 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-graph.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-graph.cc
diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
index b51623aca2ea96cb7a230d0cb2357b9520fab105..93706acf5a04e463d081966482d356cfd7a08254 100644
--- a/src/compiler/js-graph.cc
+++ b/src/compiler/js-graph.cc
@@ -280,6 +280,14 @@ Node* JSGraph::EmptyStateValues() {
0, SparseInputMask::Dense())));
}
+Node* JSGraph::SingleDeadTypedStateValues() {
+ return CACHED(kSingleDeadTypedStateValues,
+ graph()->NewNode(common()->TypedStateValues(
+ new (graph()->zone()->New(sizeof(ZoneVector<MachineType>)))
+ ZoneVector<MachineType>(0, graph()->zone()),
+ SparseInputMask(SparseInputMask::kEndMarker << 1))));
+}
+
Node* JSGraph::Dead() {
return CACHED(kDead, graph()->NewNode(common()->Dead()));
}
« no previous file with comments | « src/compiler/js-graph.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698