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

Unified Diff: src/factory.cc

Issue 1410223007: Add non-script SharedFunctionInfos to the Iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: First patch. Created 5 years, 2 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 | « no previous file | src/heap/heap.h » ('j') | src/heap/heap.h » ('J')
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 c66f90a65fbe2d7fc197e09e90fc20af2eec8b8a..a6c09dd67f1d2c372ababb29eb1878970971c023 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2161,6 +2161,10 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
share->set_compiler_hints(0);
share->set_opt_count_and_bailout_reason(0);
+ // Link into the list.
+ Handle<Object> new_noscript_list =
+ WeakFixedArray::Add(noscript_shared_function_infos(), share);
+ isolate()->heap()->set_noscript_shared_function_infos(*new_noscript_list);
return share;
Michael Starzinger 2015/10/27 09:45:51 nit: Empty newline before return.
mvstanton 2015/10/27 10:58:24 Done.
}
« no previous file with comments | « no previous file | src/heap/heap.h » ('j') | src/heap/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698