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

Unified Diff: src/compiler/all-nodes.cc

Issue 2216353002: [turbofan] Also inline into try blocks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@p5-base
Patch Set: Don't inspect control outputs if the operator is NoThrow Created 4 years, 4 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
Index: src/compiler/all-nodes.cc
diff --git a/src/compiler/all-nodes.cc b/src/compiler/all-nodes.cc
index ed4a218c2bc42917aebbe332b72fbaea484ed209..7fa6720242d9e9ed15c9d7f618aad0263a011499 100644
--- a/src/compiler/all-nodes.cc
+++ b/src/compiler/all-nodes.cc
@@ -12,7 +12,16 @@ namespace compiler {
AllNodes::AllNodes(Zone* local_zone, const Graph* graph)
: live(local_zone), is_live(graph->NodeCount(), false, local_zone) {
- Node* end = graph->end();
+ Mark(local_zone, graph->end(), graph);
+}
+
+AllNodes::AllNodes(Zone* local_zone, Node* end, const Graph* graph)
+ : live(local_zone), is_live(graph->NodeCount(), false, local_zone) {
+ Mark(local_zone, end, graph);
+}
+
+void AllNodes::Mark(Zone* local_zone, Node* end, const Graph* graph) {
+ DCHECK_LT(end->id(), graph->NodeCount());
is_live[end->id()] = true;
live.push_back(end);
// Find all live nodes reachable from end.
« no previous file with comments | « src/compiler/all-nodes.h ('k') | src/compiler/js-inlining.h » ('j') | src/compiler/js-inlining.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698