• oliver@apple.com's avatar
    2011-06-03 Oliver Hunt <oliver@apple.com> · 77099a66
    oliver@apple.com authored
            Reviewed by Maciej Stachowiak.
            Lexer needs to provide Identifier for reserved words
            Alas it is necessary to provide an Identifier reference for keywords
            so that we can do the right thing when they're used in object literals.
            We now keep Identifiers for all reserved words in the CommonIdentifiers
            structure so that we can access them without a hash lookup.
            * KeywordLookupGenerator.py:
            * parser/Lexer.cpp:
            * parser/Lexer.h:
            * runtime/CommonIdentifiers.cpp:
            * runtime/CommonIdentifiers.h:
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@88094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CommonIdentifiers.h 3.83 KB