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

Unified Diff: src/compiler/bytecode-graph-builder.h

Issue 2541443002: Revert of [ignition/turbo] Perform liveness analysis on the bytecodes (Closed)
Patch Set: Created 4 years, 1 month 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/bytecode-analysis.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/bytecode-graph-builder.h
diff --git a/src/compiler/bytecode-graph-builder.h b/src/compiler/bytecode-graph-builder.h
index 1a39ee05f221e919fdfd487f9620e7faa1e170de..f26ab210e8ce259e930ae587cb85f8582bd0455a 100644
--- a/src/compiler/bytecode-graph-builder.h
+++ b/src/compiler/bytecode-graph-builder.h
@@ -134,6 +134,10 @@
// to the given node and the output value produced by the node is combined.
// Conceptually this frame state is "after" a given operation.
void PrepareFrameState(Node* node, OutputFrameStateCombine combine);
+
+ // Computes register liveness and replaces dead ones in frame states with the
+ // undefined values.
+ void ClearNonLiveSlotsInFrameStates();
void BuildCreateArguments(CreateArgumentsType type);
Node* BuildLoadGlobal(Handle<Name> name, uint32_t feedback_slot_index,
@@ -256,6 +260,8 @@
bytecode_analysis_ = bytecode_analysis;
}
+ LivenessAnalyzer* liveness_analyzer() { return &liveness_analyzer_; }
+
bool IsLivenessAnalysisEnabled() const {
return this->is_liveness_analysis_enabled_;
}
@@ -301,6 +307,9 @@
StateValuesCache state_values_cache_;
+ // Analyzer of register liveness.
+ LivenessAnalyzer liveness_analyzer_;
+
// The Turbofan source position table, to be populated.
SourcePositionTable* source_positions_;
« no previous file with comments | « src/compiler/bytecode-analysis.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698