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


Ignore:
Timestamp:
Sep 8, 2010, 2:59:24 AM (15 years ago)
Author:
[email protected]
Message:

Refactoring multiline comments in the lexer
https://bugs.webkit.org/show_bug.cgi?id=45289

Reviewed by Darin Adler.

MultiLine comment parsing is moved to a separate function.

Slight performance increase on --parse-only tests (from 33.6ms to 32.8ms)
SunSpider reports no change (from 523.1ms to 521.2ms).

  • parser/Lexer.cpp:

(JSC::Lexer::parseMultilineComment):
(JSC::Lexer::lex):

  • parser/Lexer.h:
File:
1 edited

Legend:

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

    r66375 r66962  
    102102        ALWAYS_INLINE void parseNumberAfterDecimalPoint();
    103103        ALWAYS_INLINE bool parseNumberAfterExponentIndicator();
     104        ALWAYS_INLINE bool parseMultilineComment();
    104105
    105106        static const size_t initialReadBufferCapacity = 32;
Note: See TracChangeset for help on using the changeset viewer.