Commit e6df4d74 authored by neis's avatar neis Committed by Commit bot

Don't create ScopeInfo if there already is one.

R=mstarzinger@chromium.org, rmcilroy@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2263493002
Cr-Commit-Position: refs/heads/master@{#38741}
parent 5368cf9d
......@@ -515,8 +515,7 @@ bool CompileUnoptimizedCode(CompilationInfo* info) {
void InstallSharedScopeInfo(CompilationInfo* info,
Handle<SharedFunctionInfo> shared) {
Handle<ScopeInfo> scope_info =
ScopeInfo::Create(info->isolate(), info->zone(), info->scope());
Handle<ScopeInfo> scope_info = info->scope()->GetScopeInfo(info->isolate());
shared->set_scope_info(*scope_info);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment