Ignore:
Timestamp:
Jan 20, 2014, 5:10:29 PM (12 years ago)
Author:
[email protected]
Message:

JSC Parser: Shrink BindingNode.
<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):

File:
1 edited

Legend:

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

    r162006 r162393  
    519519        }
    520520    }
    521     return context.createBindingLocation(m_token.m_location, name, m_token.m_endPosition, m_token.m_startPosition, m_token.m_endPosition);
     521    return context.createBindingLocation(m_token.m_location, name, m_token.m_startPosition, m_token.m_endPosition);
    522522}
    523523
Note: See TracChangeset for help on using the changeset viewer.