| Index: src/usage-analyzer.cc
|
| ===================================================================
|
| --- src/usage-analyzer.cc (revision 854)
|
| +++ src/usage-analyzer.cc (working copy)
|
| @@ -39,7 +39,7 @@
|
| static const int InitialWeight = 100;
|
|
|
|
|
| -class UsageComputer: public Visitor {
|
| +class UsageComputer: public AstVisitor {
|
| public:
|
| static bool Traverse(Node* node);
|
|
|
| @@ -73,6 +73,7 @@
|
| void VisitThrow(Throw* node);
|
| void VisitProperty(Property* node);
|
| void VisitCall(Call* node);
|
| + void VisitCallEval(CallEval* node);
|
| void VisitCallNew(CallNew* node);
|
| void VisitCallRuntime(CallRuntime* node);
|
| void VisitUnaryOperation(UnaryOperation* node);
|
| @@ -321,6 +322,11 @@
|
| }
|
|
|
|
|
| +void UsageComputer::VisitCallEval(CallEval* node) {
|
| + VisitCall(node);
|
| +}
|
| +
|
| +
|
| void UsageComputer::VisitCallNew(CallNew* node) {
|
| VisitCall(node);
|
| }
|
|
|