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.
|
} |