Ignore:
Timestamp:
Jul 25, 2008, 8:52:24 PM (17 years ago)
Author:
[email protected]
Message:

Bug 19718: Named anonymous functions are slow accessing global variables
<https://bugs.webkit.org/show_bug.cgi?id=19718>

Reviewed by Cameron Zwarich.

To fix this we switch over to an activation-like scope object for
on which we attach the function name property, and add logic to
prevent cross scope assignment to read only properties.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CodeGenerator.h

    r35309 r35368  
    105105        // NB: depth does _not_ include the local scope.  eg. a depth of 0 refers
    106106        // to the scope containing this codeblock.
    107         bool findScopedProperty(const Identifier&, int& index, size_t& depth);
     107        bool findScopedProperty(const Identifier&, int& index, size_t& depth, bool forWriting);
    108108
    109109        // Returns the register storing "this"
Note: See TracChangeset for help on using the changeset viewer.