OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_TYPER_H_ | 5 #ifndef V8_COMPILER_TYPER_H_ |
6 #define V8_COMPILER_TYPER_H_ | 6 #define V8_COMPILER_TYPER_H_ |
7 | 7 |
8 #include "src/compiler/graph.h" | 8 #include "src/compiler/graph.h" |
9 #include "src/types.h" | 9 #include "src/types.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 namespace compiler { | 13 namespace compiler { |
14 | 14 |
15 // Forward declarations. | 15 // Forward declarations. |
16 class LazyTypeCache; | 16 class LazyTypeCache; |
17 | 17 |
18 | 18 |
19 class Typer { | 19 class Typer { |
20 public: | 20 public: |
21 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context); | 21 Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context); |
22 ~Typer(); | 22 ~Typer(); |
23 | 23 |
24 void Run(); | 24 void Run(); |
| 25 // TODO(bmeurer,jarin): Remove this once we have a notion of "roots" on Graph. |
| 26 void Run(const ZoneVector<Node*>& roots); |
25 | 27 |
26 Graph* graph() { return graph_; } | 28 Graph* graph() { return graph_; } |
27 MaybeHandle<Context> context() { return context_; } | 29 MaybeHandle<Context> context() { return context_; } |
28 Zone* zone() { return graph_->zone(); } | 30 Zone* zone() { return graph_->zone(); } |
29 Isolate* isolate() { return isolate_; } | 31 Isolate* isolate() { return isolate_; } |
30 | 32 |
31 private: | 33 private: |
32 class Visitor; | 34 class Visitor; |
33 class Decorator; | 35 class Decorator; |
34 | 36 |
(...skipping 28 matching lines...) Expand all Loading... |
63 LazyTypeCache* cache_; | 65 LazyTypeCache* cache_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(Typer); | 67 DISALLOW_COPY_AND_ASSIGN(Typer); |
66 }; | 68 }; |
67 | 69 |
68 } // namespace compiler | 70 } // namespace compiler |
69 } // namespace internal | 71 } // namespace internal |
70 } // namespace v8 | 72 } // namespace v8 |
71 | 73 |
72 #endif // V8_COMPILER_TYPER_H_ | 74 #endif // V8_COMPILER_TYPER_H_ |
OLD | NEW |