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/ASTBuilder.h

    r136261 r136860  
    268268        return FunctionBodyNode::create(m_globalData, location, inStrictContext);
    269269    }
    270 
    271     void setFunctionStart(FunctionBodyNode* body, int functionStart)
    272     {
    273         body->setFunctionStart(functionStart);
    274     }
    275270   
    276271    template <bool> PropertyNode* createGetterOrSetterProperty(const JSTokenLocation& location, PropertyNode::Type type, const Identifier* name, ParameterNode* params, FunctionBodyNode* body, int openBracePos, int closeBracePos, int bodyStartLine, int bodyEndLine)
Note: See TracChangeset for help on using the changeset viewer.