| Index: src/data-flow.h
|
| ===================================================================
|
| --- src/data-flow.h (revision 4136)
|
| +++ src/data-flow.h (working copy)
|
| @@ -464,7 +464,7 @@
|
| FlowGraph* body);
|
|
|
| #ifdef DEBUG
|
| - void PrintText(ZoneList<Node*>* postorder);
|
| + void PrintText(FunctionLiteral* fun, ZoneList<Node*>* postorder);
|
| #endif
|
|
|
| private:
|
| @@ -484,8 +484,7 @@
|
| global_exit_(NULL),
|
| preorder_(4),
|
| postorder_(4),
|
| - definitions_(4) {
|
| - }
|
| + definitions_(4) {}
|
|
|
| void Build(FunctionLiteral* lit);
|
|
|
| @@ -496,6 +495,10 @@
|
| private:
|
| ExitNode* global_exit() { return global_exit_; }
|
|
|
| + // Helpers to allow tranforming the ast during flow graph construction.
|
| + void VisitStatements(ZoneList<Statement*>* stmts);
|
| + Statement* ProcessStatement(Statement* stmt);
|
| +
|
| // AST node visit functions.
|
| #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
|
| AST_NODE_LIST(DECLARE_VISIT)
|
|
|