Ignore:
Timestamp:
Jul 9, 2010, 2:24:07 PM (15 years ago)
Author:
[email protected]
Message:

2010-07-09 Oliver Hunt <[email protected]>

Reviewed by Geoffrey Garen.

Remove a couple of excess writes from the lexer
https://bugs.webkit.org/show_bug.cgi?id=41981

Remove a couple of fields from JSTokenInfo, and rename the remaining ones
to something more accurate

  • parser/JSParser.cpp: (JSC::JSParser::next): (JSC::JSParser::tokenStart): (JSC::JSParser::tokenLine): (JSC::JSParser::tokenEnd):
  • parser/JSParser.h: (JSC::JSTokenInfo::JSTokenInfo):
  • parser/Lexer.cpp: (JSC::Lexer::lex):
File:
1 edited

Legend:

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

    r62849 r62995  
    106106
    107107struct JSTokenInfo {
    108     JSTokenInfo() : last_line(0) {}
    109     int first_line;
    110     int last_line;
    111     int first_column;
    112     int last_column;
     108    JSTokenInfo() : line(0) {}
     109    int line;
     110    int startOffset;
     111    int endOffset;
    113112};
    114113
Note: See TracChangeset for help on using the changeset viewer.