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

Unified Diff: src/compiler/escape-analysis.h

Issue 1527533002: [turbofan] Move replacements out of virtual object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-cluster-3
Patch Set: Address comment Created 5 years 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/escape-analysis.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/escape-analysis.h
diff --git a/src/compiler/escape-analysis.h b/src/compiler/escape-analysis.h
index 1ba86da6a48614cc4ad08ca25889da664463e0ba..7e5d5a784d8cc5d74722ab13996438b7c9cd7527 100644
--- a/src/compiler/escape-analysis.h
+++ b/src/compiler/escape-analysis.h
@@ -107,7 +107,7 @@ class EscapeAnalysis {
void Run();
- Node* GetReplacement(Node* at, NodeId id);
+ Node* GetReplacement(Node* node);
bool IsVirtual(Node* node);
bool IsEscaped(Node* node);
@@ -134,8 +134,16 @@ class EscapeAnalysis {
int OffsetFromAccess(Node* node);
VirtualObject* GetVirtualObject(Node* at, NodeId id);
+ VirtualObject* ResolveVirtualObject(VirtualState* state, Node* node);
+ Node* GetReplacementIfSame(ZoneVector<VirtualObject*>& objs);
bool SetEscaped(Node* node);
+ Node* replacement(NodeId id);
+ Node* replacement(Node* node);
+ Node* ResolveReplacement(Node* node);
+ Node* GetReplacement(NodeId id);
+ bool SetReplacement(Node* node, Node* rep);
+ bool UpdateReplacement(VirtualState* state, Node* node, Node* rep);
void DebugPrint();
void DebugPrintState(VirtualState* state);
@@ -149,6 +157,7 @@ class EscapeAnalysis {
CommonOperatorBuilder* const common_;
Zone* const zone_;
ZoneVector<VirtualState*> virtual_states_;
+ ZoneVector<Node*> replacements_;
EscapeStatusAnalysis escape_status_;
MergeCache cache_;
« no previous file with comments | « no previous file | src/compiler/escape-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698