Commit 59243297 authored by jgruber's avatar jgruber Committed by Commit bot

[debugger] Prevent shared function info duplicates

Clear the list of shared function infos attached to a script before
compiling for live edit in order to avoid duplicates. This was lost in
058deb27.

R=yangguo@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/1958153004
Cr-Commit-Position: refs/heads/master@{#36155}
parent 2301473a
...@@ -1217,6 +1217,9 @@ bool Compiler::CompileForLiveEdit(Handle<Script> script) { ...@@ -1217,6 +1217,9 @@ bool Compiler::CompileForLiveEdit(Handle<Script> script) {
Isolate* isolate = script->GetIsolate(); Isolate* isolate = script->GetIsolate();
DCHECK(AllowCompilation::IsAllowed(isolate)); DCHECK(AllowCompilation::IsAllowed(isolate));
// Get rid of old list of shared function infos.
script->set_shared_function_infos(Smi::FromInt(0));
// Start a compilation. // Start a compilation.
Zone zone(isolate->allocator()); Zone zone(isolate->allocator());
ParseInfo parse_info(&zone, script); ParseInfo parse_info(&zone, script);
......
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