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

Unified Diff: src/compiler.cc

Issue 558042: Add fast code generator visitor. (Closed)
Patch Set: Created 10 years, 11 months 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
« no previous file with comments | « src/compiler.h ('k') | src/fast-codegen.h » ('j') | src/fast-codegen.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 604af2c0c99a2a114408c0952aec53d7d0160bc4..98a26f85ac95955cf738b90589273fd08fb3e538 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -31,7 +31,6 @@
#include "codegen-inl.h"
#include "compilation-cache.h"
#include "compiler.h"
-#include "data-flow.h"
#include "debug.h"
#include "fast-codegen.h"
#include "full-codegen.h"
@@ -113,10 +112,9 @@ static Handle<Code> MakeCode(FunctionLiteral* literal,
FastCodeGenSyntaxChecker checker;
checker.Check(literal, info);
if (checker.has_supported_syntax()) {
- AstLabeler labeler;
- labeler.Label(literal);
+ // Does not yet generate code.
+ FastCodeGenerator::MakeCode(literal, script, is_eval, info);
}
- // Does not yet generate code.
}
return CodeGenerator::MakeCode(literal, script, is_eval, info);
@@ -513,10 +511,9 @@ Handle<JSFunction> Compiler::BuildBoilerplate(FunctionLiteral* literal,
FastCodeGenSyntaxChecker checker;
checker.Check(literal, &info);
if (checker.has_supported_syntax()) {
- AstLabeler label_nodes;
- label_nodes.Label(literal);
+ // Does not yet generate code.
+ FastCodeGenerator::MakeCode(literal, script, false, &info);
}
- // Generate no code.
}
if (!is_compiled) {
« no previous file with comments | « src/compiler.h ('k') | src/fast-codegen.h » ('j') | src/fast-codegen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698