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

Side by Side Diff: src/compiler/escape-analysis.h

Issue 2416243002: Make unittests work in component build (Closed)
Patch Set: updates Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/compiler/effect-control-linearizer.h ('k') | src/compiler/escape-analysis-reducer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/globals.h"
9 10
10 namespace v8 { 11 namespace v8 {
11 namespace internal { 12 namespace internal {
12 namespace compiler { 13 namespace compiler {
13 14
14 // Forward declarations. 15 // Forward declarations.
15 class CommonOperatorBuilder; 16 class CommonOperatorBuilder;
16 class EscapeStatusAnalysis; 17 class EscapeStatusAnalysis;
17 class MergeCache; 18 class MergeCache;
18 class VirtualState; 19 class VirtualState;
19 class VirtualObject; 20 class VirtualObject;
20 21
21 // EscapeObjectAnalysis simulates stores to determine values of loads if 22 // EscapeObjectAnalysis simulates stores to determine values of loads if
22 // an object is virtual and eliminated. 23 // an object is virtual and eliminated.
23 class EscapeAnalysis { 24 class V8_EXPORT_PRIVATE EscapeAnalysis {
24 public: 25 public:
25 EscapeAnalysis(Graph* graph, CommonOperatorBuilder* common, Zone* zone); 26 EscapeAnalysis(Graph* graph, CommonOperatorBuilder* common, Zone* zone);
26 ~EscapeAnalysis(); 27 ~EscapeAnalysis();
27 28
28 void Run(); 29 void Run();
29 30
30 Node* GetReplacement(Node* node); 31 Node* GetReplacement(Node* node);
31 bool IsVirtual(Node* node); 32 bool IsVirtual(Node* node);
32 bool IsEscaped(Node* node); 33 bool IsEscaped(Node* node);
33 bool CompareVirtualObjects(Node* left, Node* right); 34 bool CompareVirtualObjects(Node* left, Node* right);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 MergeCache* cache_; 81 MergeCache* cache_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysis); 83 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysis);
83 }; 84 };
84 85
85 } // namespace compiler 86 } // namespace compiler
86 } // namespace internal 87 } // namespace internal
87 } // namespace v8 88 } // namespace v8
88 89
89 #endif // V8_COMPILER_ESCAPE_ANALYSIS_H_ 90 #endif // V8_COMPILER_ESCAPE_ANALYSIS_H_
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.h ('k') | src/compiler/escape-analysis-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698