Ignore:
Timestamp:
Dec 6, 2012, 11:26:20 AM (12 years ago)
Author:
[email protected]
Message:

Remove harmful string->function cache
https://bugs.webkit.org/show_bug.cgi?id=104193

Reviewed by Alexey Proskuryakov.

Remove the string->function code cache that turned out to actually
be quite harmful.

  • runtime/CodeCache.cpp:

(JSC::CodeCache::getFunctionCodeBlock):

  • runtime/CodeCache.h:

(JSC::CodeCache::clear):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Nodes.h

    r136261 r136860  
    4747    class JSScope;
    4848    class ScopeNode;
    49     class SourceProviderCacheItem;
    5049
    5150    typedef unsigned CodeFeatures;
     
    14261425        FunctionNameIsInScopeToggle functionNameIsInScopeToggle() { return m_functionNameIsInScopeToggle; }
    14271426
    1428         void setFunctionStart(int functionStart) { m_functionStart = functionStart; }
    1429         int functionStart() const { return m_functionStart; }
    1430 
    14311427        static const bool scopeIsFunction = true;
    14321428
     
    14391435        FunctionNameIsInScopeToggle m_functionNameIsInScopeToggle;
    14401436        RefPtr<FunctionParameters> m_parameters;
    1441         int m_functionStart;
    14421437    };
    14431438
Note: See TracChangeset for help on using the changeset viewer.