| Index: src/compiler/typer.h
|
| diff --git a/src/compiler/typer.h b/src/compiler/typer.h
|
| index 2957e4b4a8e0dd0035ce4d532f476e4d5825df5a..a5bc72580807e29ce5ada669d1eb36bf5db39329 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_;
|
|
|