Ignore:
Timestamp:
Jun 13, 2011, 3:46:21 PM (14 years ago)
Author:
[email protected]
Message:

2011-06-13 Oliver Hunt <[email protected]>

Reviewed by Gavin Barraclough.

Fix llocp and lvalp names in the lexer to something more meaningful
https://bugs.webkit.org/show_bug.cgi?id=62605

A simple rename

  • parser/Lexer.cpp: (JSC::Lexer::parseIdentifier): (JSC::Lexer::parseString): (JSC::Lexer::lex):
  • parser/Lexer.h: (JSC::Lexer::lexExpectIdentifier):
File:
1 edited

Legend:

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

    r88719 r88724  
    5858            DontBuildKeywords = 4
    5959        };
    60         JSTokenType lex(JSTokenData* lvalp, JSTokenInfo* llocp, unsigned, bool strictMode);
     60        JSTokenType lex(JSTokenData*, JSTokenInfo*, unsigned, bool strictMode);
    6161        bool nextTokenIsColon();
    6262        int lineNumber() const { return m_lineNumber; }
     
    9090        SourceProvider* sourceProvider() const { return m_source->provider(); }
    9191       
    92         JSTokenType lexExpectIdentifier(JSTokenData* lvalp, JSTokenInfo* llocp, unsigned, bool strictMode);
     92        JSTokenType lexExpectIdentifier(JSTokenData*, JSTokenInfo*, unsigned, bool strictMode);
    9393       
    9494    private:
     
    120120        template <bool shouldCreateIdentifier> ALWAYS_INLINE JSTokenType parseKeyword(JSTokenData*);
    121121        template <bool shouldBuildIdentifiers> ALWAYS_INLINE JSTokenType parseIdentifier(JSTokenData*, unsigned);
    122         template <bool shouldBuildStrings> ALWAYS_INLINE bool parseString(JSTokenData* lvalp, bool strictMode);
     122        template <bool shouldBuildStrings> ALWAYS_INLINE bool parseString(JSTokenData*, bool strictMode);
    123123        ALWAYS_INLINE void parseHex(double& returnValue);
    124124        ALWAYS_INLINE bool parseOctal(double& returnValue);
     
    182182    }
    183183
    184     ALWAYS_INLINE JSTokenType Lexer::lexExpectIdentifier(JSTokenData* lvalp, JSTokenInfo* llocp, unsigned lexType, bool strictMode)
     184    ALWAYS_INLINE JSTokenType Lexer::lexExpectIdentifier(JSTokenData* tokenData, JSTokenInfo* tokenInfo, unsigned lexType, bool strictMode)
    185185    {
    186186        ASSERT((lexType & IgnoreReservedWords));
     
    213213        // Create the identifier if needed
    214214        if (lexType & DontBuildKeywords)
    215             lvalp->ident = 0;
     215            tokenData->ident = 0;
    216216        else
    217             lvalp->ident = makeIdentifier(start, ptr - start);
    218         llocp->line = m_lineNumber;
    219         llocp->startOffset = start - m_codeStart;
    220         llocp->endOffset = currentOffset();
     217            tokenData->ident = makeIdentifier(start, ptr - start);
     218        tokenInfo->line = m_lineNumber;
     219        tokenInfo->startOffset = start - m_codeStart;
     220        tokenInfo->endOffset = currentOffset();
    221221        m_lastToken = IDENT;
    222222        return IDENT;
    223223       
    224224    slowCase:
    225         return lex(lvalp, llocp, lexType, strictMode);
     225        return lex(tokenData, tokenInfo, lexType, strictMode);
    226226    }
    227227
Note: See TracChangeset for help on using the changeset viewer.