Changeset 62628 in webkit for trunk/JavaScriptCore/parser/Lexer.h


Ignore:
Timestamp:
Jul 7, 2010, 12:04:46 AM (15 years ago)
Author:
[email protected]
Message:

Refactored string parsing inside the lexer
https://bugs.webkit.org/show_bug.cgi?id=41606

Reviewed by Oliver Hunt.

Does not use goto. Although the last sunspider
parse-only tests yields 1.044x speedup, I think the
patch can have a slight improvement at most.

  • parser/Lexer.cpp:

(JSC::singleEscape):
(JSC::Lexer::parseString):
(JSC::Lexer::lex):

  • parser/Lexer.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/Lexer.h

    r62031 r62628  
    8787        ALWAYS_INLINE bool lastTokenWasRestrKeyword() const;
    8888
     89        ALWAYS_INLINE bool parseString(void* lvalp);
     90
    8991        static const size_t initialReadBufferCapacity = 32;
    90        
     92
    9193        int m_lineNumber;
    9294        int m_lastLineNumber;
Note: See TracChangeset for help on using the changeset viewer.