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

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

Issue 2379643003: [turbofan] Refactor the OSR environment merging to create an explicit environment. (Closed)
Patch Set: Address comment Created 4 years, 3 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 | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/ast-graph-builder.h
diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
index edef1c08329ca4b32901377f5833f560e5d45b6e..27f2c9b4c61346203787cc8ab198f24f642bc05b 100644
--- a/src/compiler/ast-graph-builder.h
+++ b/src/compiler/ast-graph-builder.h
@@ -579,6 +579,11 @@ class AstGraphBuilder::Environment : public ZoneObject {
// Copies this environment at a loop header control-flow point.
Environment* CopyForLoop(BitVector* assigned, bool is_osr = false);
+ // Copies this environment for Osr entry. This only produces environment
+ // of the right shape, the caller is responsible for filling in the right
+ // values and dependencies.
+ Environment* CopyForOsrEntry();
+
private:
AstGraphBuilder* builder_;
int parameters_count_;
@@ -608,7 +613,8 @@ class AstGraphBuilder::Environment : public ZoneObject {
bool IsLivenessBlockConsistent();
// Prepare environment to be used as loop header.
- void PrepareForLoop(BitVector* assigned, bool is_osr = false);
+ void PrepareForLoop(BitVector* assigned);
+ void PrepareForOsrEntry();
};
} // namespace compiler
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698