| 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();
|
|
|