Ignore:
Timestamp:
Sep 9, 2012, 10:10:21 AM (13 years ago)
Author:
[email protected]
Message:

Rolled out <http://trac.webkit.org/changeset/127939> because it broke
fast/js/named-function-expression.html.

Refactored bytecode generator initialization to support moving captured vars around
https://bugs.webkit.org/show_bug.cgi?id=96159

Reviewed by Gavin Barraclough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Nodes.h

    r127939 r127987  
    8686
    8787    namespace DeclarationStacks {
    88         struct VarDeclaration {
    89             VarDeclaration(const Identifier* name, unsigned attributes)
    90                 : name(name)
    91                 , attributes(attributes)
    92                 , reg(0)
    93             {
    94             }
    95             const Identifier* name;
    96             unsigned attributes;
    97             RegisterID* reg;
    98         };
    99         struct FunctionDeclaration {
    100             explicit FunctionDeclaration(FunctionBodyNode* node)
    101                 : node(node)
    102                 , reg(0)
    103             {
    104             }
    105             FunctionBodyNode* node;
    106             RegisterID* reg;
    107         };
    10888        enum VarAttrs { IsConstant = 1, HasInitializer = 2 };
    109         typedef Vector<VarDeclaration> VarStack;
    110         typedef Vector<FunctionDeclaration> FunctionStack;
     89        typedef Vector<std::pair<const Identifier*, unsigned> > VarStack;
     90        typedef Vector<FunctionBodyNode*> FunctionStack;
    11191    }
    11292
Note: See TracChangeset for help on using the changeset viewer.