Ignore:
Timestamp:
Aug 3, 2015, 1:47:54 PM (10 years ago)
Author:
[email protected]
Message:

Clean up the naming for AST expression generation.
https://bugs.webkit.org/show_bug.cgi?id=147581

Patch by Keith Miller <[email protected]> on 2015-08-03
Reviewed by Yusuke Suzuki.

  • parser/ASTBuilder.h:

(JSC::ASTBuilder::createThisExpr):
(JSC::ASTBuilder::createSuperExpr):
(JSC::ASTBuilder::createNewTargetExpr):
(JSC::ASTBuilder::thisExpr): Deleted.
(JSC::ASTBuilder::superExpr): Deleted.
(JSC::ASTBuilder::newTargetExpr): Deleted.

  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parsePrimaryExpression):
(JSC::Parser<LexerType>::parseMemberExpression):

  • parser/SyntaxChecker.h:

(JSC::SyntaxChecker::createThisExpr):
(JSC::SyntaxChecker::createSuperExpr):
(JSC::SyntaxChecker::createNewTargetExpr):
(JSC::SyntaxChecker::thisExpr): Deleted.
(JSC::SyntaxChecker::superExpr): Deleted.
(JSC::SyntaxChecker::newTargetExpr): Deleted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Parser.cpp

    r187680 r187760  
    27672767        JSTokenLocation location(tokenLocation());
    27682768        next();
    2769         return context.thisExpr(location, m_thisTDZMode);
     2769        return context.createThisExpr(location, m_thisTDZMode);
    27702770    }
    27712771    case IDENT: {
     
    29172917                semanticFailIfFalse(currentScope()->isFunction(), "new.target is only valid inside functions");
    29182918                baseIsNewTarget = true;
    2919                 base = context.newTargetExpr(location);
     2919                base = context.createNewTargetExpr(location);
    29202920                newCount--;
    29212921                next();
     
    29272927
    29282928    if (baseIsSuper) {
    2929         base = context.superExpr(location);
     2929        base = context.createSuperExpr(location);
    29302930        next();
    29312931        currentScope()->setNeedsSuperBinding();
Note: See TracChangeset for help on using the changeset viewer.