R=mvstanton@chromium.org
BUG=v8:4132
LOG=N
Review URL: https://codereview.chromium.org/
1214953003
Cr-Commit-Position: refs/heads/master@{#29370}
literal->expected_property_count());
live_edit_tracker.RecordFunctionInfo(result, literal, info.zone());
return result;
- } else {
- // We may have additional data from compilation now.
+ } else if (!lazy) {
+ // We have additional data from compilation now.
DCHECK(!existing->is_compiled());
existing->ReplaceCode(*info.code());
existing->set_scope_info(*scope_info);
existing->set_feedback_vector(*info.feedback_vector());
- return existing;
}
+ return existing;
}
Handle<SharedFunctionInfo> shared(function->shared());
// If recompilation is not possible just skip it.
- if (shared->is_toplevel()) continue;
if (!shared->allows_lazy_compilation()) continue;
if (shared->code()->kind() == Code::BUILTIN) continue;