Changeset 27389 in webkit for trunk/JavaScriptCore/kjs/nodes.h


Ignore:
Timestamp:
Nov 2, 2007, 8:24:28 PM (18 years ago)
Author:
mjs
Message:

Reviewed by Oliver.


  • add SourceElements as a typedef for Vector<RefPtr<StatementNode> >.
  • kjs/grammar.y:
  • kjs/nodes.cpp: (KJS::statementListPushFIFO): (KJS::statementListGetDeclarations): (KJS::statementListInitializeDeclarationStacks): (KJS::statementListInitializeVariableAccessStack): (KJS::statementListExecute): (KJS::BlockNode::BlockNode): (KJS::FunctionBodyNode::FunctionBodyNode): (KJS::ProgramNode::ProgramNode):
  • kjs/nodes.h: (KJS::CaseClauseNode::):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.h

    r27373 r27389  
    15051505  };
    15061506
     1507  typedef Vector<RefPtr<StatementNode> > SourceElements;
     1508
    15071509  class BlockNode : public StatementNode {
    15081510  public:
    1509     BlockNode(Vector<RefPtr<StatementNode> > *children) KJS_FAST_CALL;
     1511    BlockNode(SourceElements* children) KJS_FAST_CALL;
    15101512    virtual void optimizeVariableAccess(FunctionBodyNode*, DeclarationStacks::NodeStack&) KJS_FAST_CALL;
    15111513    virtual Completion execute(ExecState*) KJS_FAST_CALL;
     
    15131515    virtual void getDeclarations(DeclarationStacks&) KJS_FAST_CALL;
    15141516  protected:
    1515     OwnPtr<Vector<RefPtr<StatementNode> > > m_children;
     1517    OwnPtr<SourceElements> m_children;
    15161518  };
    15171519
     
    17031705  class FunctionBodyNode : public BlockNode {
    17041706  public:
    1705     FunctionBodyNode(Vector<RefPtr<StatementNode> > *children) KJS_FAST_CALL;
     1707    FunctionBodyNode(SourceElements* children) KJS_FAST_CALL;
    17061708    int sourceId() KJS_FAST_CALL { return m_sourceId; }
    17071709    const UString& sourceURL() KJS_FAST_CALL { return m_sourceURL; }
     
    17761778  class CaseClauseNode : public Node {
    17771779  public:
    1778       CaseClauseNode(Node *e) KJS_FAST_CALL : expr(e) { m_mayHaveDeclarations = true; }
    1779       CaseClauseNode(Node *e, Vector<RefPtr<StatementNode> > *children) KJS_FAST_CALL
     1780      CaseClauseNode(Node* e) KJS_FAST_CALL : expr(e) { m_mayHaveDeclarations = true; }
     1781      CaseClauseNode(Node* e, SourceElements* children) KJS_FAST_CALL
    17801782      : expr(e), m_children(children) { m_mayHaveDeclarations = true; }
    17811783      virtual void optimizeVariableAccess(FunctionBodyNode*, DeclarationStacks::NodeStack&) KJS_FAST_CALL;
     
    17871789  private:
    17881790      RefPtr<Node> expr;
    1789       OwnPtr<Vector<RefPtr<StatementNode> > > m_children;
     1791      OwnPtr<SourceElements> m_children;
    17901792  };
    17911793 
     
    18381840  class ProgramNode : public FunctionBodyNode {
    18391841  public:
    1840     ProgramNode(Vector<RefPtr<StatementNode> > *children) KJS_FAST_CALL;
     1842    ProgramNode(SourceElements* children) KJS_FAST_CALL;
    18411843  };
    18421844
Note: See TracChangeset for help on using the changeset viewer.