Index: src/compiler/typer.h |
diff --git a/src/compiler/typer.h b/src/compiler/typer.h |
index 2adbab5ff7002505e39484277cdc8be98cb7a62e..ff924526d56336af47e076a70e4da69551cf03a2 100644 |
--- a/src/compiler/typer.h |
+++ b/src/compiler/typer.h |
@@ -17,25 +17,28 @@ namespace compiler { |
class Typer { |
public: |
- explicit Typer(Zone* zone); |
+ explicit Typer(Graph* graph, MaybeHandle<Context> context); |
+ ~Typer(); |
- void Init(Node* node); |
- void Run(Graph* graph, MaybeHandle<Context> context); |
- void Narrow(Graph* graph, Node* node, MaybeHandle<Context> context); |
- void Widen(Graph* graph, Node* node, MaybeHandle<Context> context); |
+ void Run(); |
+ void Narrow(Node* node); |
- void DecorateGraph(Graph* graph); |
- |
- Zone* zone() { return zone_; } |
- Isolate* isolate() { return zone_->isolate(); } |
+ Graph* graph() { return graph_; } |
+ MaybeHandle<Context> context() { return context_; } |
+ Zone* zone() { return graph_->zone(); } |
+ Isolate* isolate() { return zone()->isolate(); } |
private: |
class Visitor; |
class RunVisitor; |
class NarrowVisitor; |
class WidenVisitor; |
+ class Decorator; |
+ |
+ Graph* graph_; |
+ MaybeHandle<Context> context_; |
+ Decorator* decorator_; |
- Zone* zone_; |
Type* number_fun0_; |
Type* number_fun1_; |
Type* number_fun2_; |