| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_ESCAPE_ANALYSIS_H_ | 5 #ifndef V8_COMPILER_ESCAPE_ANALYSIS_H_ |
| 6 #define V8_COMPILER_ESCAPE_ANALYSIS_H_ | 6 #define V8_COMPILER_ESCAPE_ANALYSIS_H_ |
| 7 | 7 |
| 8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
| 9 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool ProcessEffectPhi(Node* node); | 142 bool ProcessEffectPhi(Node* node); |
| 143 void ProcessLoadFromPhi(int offset, Node* from, Node* node, | 143 void ProcessLoadFromPhi(int offset, Node* from, Node* node, |
| 144 VirtualState* states); | 144 VirtualState* states); |
| 145 | 145 |
| 146 void ForwardVirtualState(Node* node); | 146 void ForwardVirtualState(Node* node); |
| 147 int OffsetFromAccess(Node* node); | 147 int OffsetFromAccess(Node* node); |
| 148 VirtualState* CopyForModificationAt(VirtualState* state, Node* node); | 148 VirtualState* CopyForModificationAt(VirtualState* state, Node* node); |
| 149 VirtualObject* CopyForModificationAt(VirtualObject* obj, VirtualState* state, | 149 VirtualObject* CopyForModificationAt(VirtualObject* obj, VirtualState* state, |
| 150 Node* node); | 150 Node* node); |
| 151 VirtualObject* GetVirtualObject(Node* at, NodeId id); | 151 VirtualObject* GetVirtualObject(Node* at, NodeId id); |
| 152 VirtualObject* ResolveVirtualObject(VirtualState* state, Node* node); | |
| 153 Node* GetReplacementIfSame(ZoneVector<VirtualObject*>& objs); | |
| 154 | 152 |
| 155 bool SetEscaped(Node* node); | 153 bool SetEscaped(Node* node); |
| 156 Node* replacement(NodeId id); | 154 Node* replacement(NodeId id); |
| 157 Node* replacement(Node* node); | 155 Node* replacement(Node* node); |
| 158 Node* ResolveReplacement(Node* node); | 156 Node* ResolveReplacement(Node* node); |
| 159 Node* GetReplacement(NodeId id); | 157 Node* GetReplacement(NodeId id); |
| 160 bool SetReplacement(Node* node, Node* rep); | 158 bool SetReplacement(Node* node, Node* rep); |
| 161 bool UpdateReplacement(VirtualState* state, Node* node, Node* rep); | 159 bool UpdateReplacement(VirtualState* state, Node* node, Node* rep); |
| 162 | 160 |
| 163 VirtualObject* GetVirtualObject(VirtualState* state, Node* node); | 161 VirtualObject* GetVirtualObject(VirtualState* state, Node* node); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 188 MergeCache* cache_; | 186 MergeCache* cache_; |
| 189 | 187 |
| 190 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysis); | 188 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysis); |
| 191 }; | 189 }; |
| 192 | 190 |
| 193 } // namespace compiler | 191 } // namespace compiler |
| 194 } // namespace internal | 192 } // namespace internal |
| 195 } // namespace v8 | 193 } // namespace v8 |
| 196 | 194 |
| 197 #endif // V8_COMPILER_ESCAPE_ANALYSIS_H_ | 195 #endif // V8_COMPILER_ESCAPE_ANALYSIS_H_ |
| OLD | NEW |