Ignore:
Timestamp:
Apr 25, 2018, 1:43:42 PM (7 years ago)
Author:
[email protected]
Message:

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):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/CodeCache.cpp

    r228533 r231018  
    159159    functionExecutable->setSourceMappingURLDirective(source.provider()->sourceMappingURL());
    160160
    161     m_sourceCode.addCache(key, SourceCodeValue(vm, functionExecutable, m_sourceCode.age()));
     161    if (Options::useCodeCache())
     162        m_sourceCode.addCache(key, SourceCodeValue(vm, functionExecutable, m_sourceCode.age()));
    162163    return functionExecutable;
    163164}
Note: See TracChangeset for help on using the changeset viewer.