Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1482)

Unified Diff: src/usage-analyzer.cc

Issue 12673: Change implementation of eval to make an exact distinction between direct eva... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/codegen-ia32.cc ('K') | « src/scopes.cc ('k') | src/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« src/codegen-ia32.cc ('K') | « src/scopes.cc ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698