Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1150)

Unified Diff: src/factory.cc

Issue 1297273005: Keep track of script objects in a weak fixed array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: do not remove gc. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/debug.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index db11ebb390dc5cc6bfbf08e51958cc2cff5a83e7..a8bd0bf8e8667291e3a1da1a6c28402d86e7873c 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -848,6 +848,7 @@ Handle<Script> Factory::NewScript(Handle<String> source) {
script->set_shared_function_infos(Smi::FromInt(0));
script->set_flags(Smi::FromInt(0));
+ heap->set_script_list(*WeakFixedArray::Add(script_list(), script));
return script;
}
« no previous file with comments | « src/debug/debug.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698