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

Unified Diff: src/rewriter.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
Index: src/rewriter.cc
===================================================================
--- src/rewriter.cc (revision 854)
+++ src/rewriter.cc (working copy)
@@ -34,7 +34,7 @@
namespace v8 { namespace internal {
-class AstOptimizer: public Visitor {
+class AstOptimizer: public AstVisitor {
public:
explicit AstOptimizer() {
}
@@ -344,6 +344,12 @@
}
+void AstOptimizer::VisitCallEval(CallEval* node) {
+ Visit(node->expression());
+ OptimizeArguments(node->arguments());
+}
+
+
void AstOptimizer::VisitCallNew(CallNew* node) {
Visit(node->expression());
OptimizeArguments(node->arguments());
@@ -469,7 +475,7 @@
}
-class Processor: public Visitor {
+class Processor: public AstVisitor {
public:
explicit Processor(VariableProxy* result)
: result_(result),
@@ -702,6 +708,12 @@
}
+void Processor::VisitCallEval(CallEval* node) {
+ USE(node);
+ UNREACHABLE();
+}
+
+
void Processor::VisitCallNew(CallNew* node) {
USE(node);
UNREACHABLE();
« src/codegen-ia32.cc ('K') | « src/prettyprinter.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698