• akling@apple.com's avatar
    JSC Parser: Shrink BindingNode. · bdf5d1d4
    akling@apple.com authored
    <https://webkit.org/b/127253>
    
    The "divot" and "end" source locations are always identical for
    BindingNodes, so store only "start" and "end" instead.
    
    1.19 MB progression on Membuster3.
    
    Reviewed by Geoff Garen.
    
    * bytecompiler/NodesCodegen.cpp:
    (JSC::BindingNode::bindValue):
    * parser/ASTBuilder.h:
    (JSC::ASTBuilder::createBindingLocation):
    * parser/NodeConstructors.h:
    (JSC::BindingNode::create):
    (JSC::BindingNode::BindingNode):
    * parser/Nodes.h:
    (JSC::BindingNode::divotStart):
    (JSC::BindingNode::divotEnd):
    * parser/Parser.cpp:
    (JSC::Parser<LexerType>::createBindingPattern):
    * parser/SyntaxChecker.h:
    (JSC::SyntaxChecker::operatorStackPop):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bdf5d1d4
SyntaxChecker.h 14.9 KB