Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index e399a3496c342f536e92fc0d4aee84a5d83270a2..a993d4856b1e154a5924e71e80588e7993ef06e5 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -306,6 +306,9 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); |
+ // 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(); |