Ignore:
Timestamp:
Jun 19, 2009, 12:10:49 AM (16 years ago)
Author:
[email protected]
Message:

Bug 26532: Native functions do not correctly unlink from optimised callsites when they're collected
<https://bugs.webkit.org/show_bug.cgi?id=26532> <rdar://problem/6625385>

Reviewed by Gavin "Viceroy of Venezuela" Barraclough.

We need to make sure that each native function instance correctly unlinks any references to it
when it is collected. Allowing this to happen required a few changes:

  • Every native function needs a codeblock to track the link information
  • To have this codeblock, every function now also needs its own functionbodynode so we no longer get to have a single shared instance.
  • Identifying a host function is now done by looking for CodeBlock::codeType() == NativeCode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r44831 r44844  
    332332__ZNK3JSC12StringObject8toStringEPNS_9ExecStateE
    333333__ZNK3JSC14JSGlobalObject14isDynamicScopeEv
     334__ZNK3JSC16FunctionBodyNode14isHostFunctionEv
    334335__ZNK3JSC16InternalFunction9classInfoEv
    335336__ZNK3JSC16JSVariableObject16isVariableObjectEv
Note: See TracChangeset for help on using the changeset viewer.