https://bugs.webkit.org/show_bug.cgi?id=184998
Reviewed by Saam Barati.
* runtime/CodeCache.cpp:
(JSC::CodeCache::getUnlinkedGlobalFunctionExecutable):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231018
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2018-04-25 Keith Miller <keith_miller@apple.com>
+ getUnlinkedGlobalFunctionExecutable should only save things to the code cache if the option is set
+ https://bugs.webkit.org/show_bug.cgi?id=184998
+
+ Reviewed by Saam Barati.
+
+ * runtime/CodeCache.cpp:
+ (JSC::CodeCache::getUnlinkedGlobalFunctionExecutable):
+
+2018-04-25 Keith Miller <keith_miller@apple.com>
+
Add missing scope release to functionProtoFuncToString
https://bugs.webkit.org/show_bug.cgi?id=184995
functionExecutable->setSourceURLDirective(source.provider()->sourceURL());
functionExecutable->setSourceMappingURLDirective(source.provider()->sourceMappingURL());
- m_sourceCode.addCache(key, SourceCodeValue(vm, functionExecutable, m_sourceCode.age()));
+ if (Options::useCodeCache())
+ m_sourceCode.addCache(key, SourceCodeValue(vm, functionExecutable, m_sourceCode.age()));
return functionExecutable;
}