Changeset 39910 in webkit for trunk/JavaScriptCore/ChangeLog


Ignore:
Timestamp:
Jan 14, 2009, 2:14:55 PM (17 years ago)
Author:
[email protected]
Message:

Bug 22903: REGRESSION (r36267): visiting this site reliably crashes WebKit nightly

Reviewed by Cameron Zwarich

EvalCodeBlock's do not reference the functions that are declared inside the eval
code, this means that simply marking the EvalCodeBlock through the global object
is insufficient to mark the declared functions. This patch corrects this by
explicitly marking the CodeBlocks of all the functions declared in the cached
EvalNode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r39908 r39910  
     12009-01-14  Oliver Hunt  <[email protected]>
     2
     3        Reviewed by Cameron Zwarich.
     4
     5        Bug 22903: REGRESSION (r36267): visiting this site reliably crashes WebKit nightly
     6
     7        EvalCodeBlock's do not reference the functions that are declared inside the eval
     8        code, this means that simply marking the EvalCodeBlock through the global object
     9        is insufficient to mark the declared functions.  This patch corrects this by
     10        explicitly marking the CodeBlocks of all the functions declared in the cached
     11        EvalNode.
     12
     13        * bytecode/CodeBlock.cpp:
     14        (JSC::CodeBlock::mark):
     15        * bytecode/CodeBlock.h:
     16        (JSC::CodeBlock::hasFunctions):
     17        * bytecode/EvalCodeCache.h:
     18        (JSC::EvalCodeCache::mark):
     19        * parser/Nodes.cpp:
     20        (JSC::ScopeNodeData::mark):
     21        (JSC::EvalNode::mark):
     22        * parser/Nodes.h:
     23
    1242009-01-14  Dmitry Titov  <[email protected]>
    225
Note: See TracChangeset for help on using the changeset viewer.