[Webkit-unassigned] [Bug 22897] Clear bytecode vector after JITing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 17 11:41:21 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22897





------- Comment #3 from ggaren at apple.com  2008-12-17 11:41 PDT -------
(From update of attachment 26087)
>      m_codeBlock->setJITCode(codeRef);
> +#if !ENABLE(OPCODE_SAMPLING)
> +    m_codeBlock->instructions().clear();
> +#endif

I think it would be better to do this:

#if ENABLE(OPCODE_SAMPLING)
    // Don't clear instructions -- we need them for sampling.
#elsif !defined(NDEBUG)
    if (!s_dumpsGeneratedCode)
        m_codeBlock->instructions().clear();
#else
    m_codeBlock->instructions().clear();
#endif


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list