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

Unified Diff: src/full-codegen.cc

Issue 660083005: AstNumberingVisitor does the work of AstConstructionVisitor (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 9d31cd5230f1315663bb3e1f2d5d17bc6bcd4927..5c61b580a55d413c7333d3707fbafa920b3e91a0 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -308,11 +308,16 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
- if (!AstNumbering::Renumber(info->function(), info->zone())) {
+ if (!AstNumbering::Renumber(info->function(), info->shared_info(),
+ info->zone())) {
DCHECK(!isolate->has_pending_exception());
return false;
}
+ // Now that we know how many feedback slots are needed, ensure that the
+ // feedback vector is large enough.
+ info->EnsureFeedbackVector();
+
Handle<Script> script = info->script();
if (!script->IsUndefined() && !script->source()->IsUndefined()) {
int len = String::cast(script->source())->length();
« src/ast-numbering.cc ('K') | « src/compiler/js-inlining.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698