Changeset 28854 in webkit for trunk/JavaScriptCore/kjs/nodes.h
- Timestamp:
- Dec 18, 2007, 11:42:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.h
r28608 r28854 112 112 }; 113 113 114 class Node : Noncopyable { 115 public: 116 Node() KJS_FAST_CALL; 117 Node(PlacementNewAdoptType) KJS_FAST_CALL { } 118 virtual ~Node(); 119 120 UString toString() const KJS_FAST_CALL; 121 int lineNo() const KJS_FAST_CALL { return m_line; } 114 class ParserRefCounted : Noncopyable { 115 protected: 116 ParserRefCounted() KJS_FAST_CALL; 117 ParserRefCounted(PlacementNewAdoptType) KJS_FAST_CALL { } 118 119 public: 122 120 void ref() KJS_FAST_CALL; 123 121 void deref() KJS_FAST_CALL; 124 122 unsigned refcount() KJS_FAST_CALL; 125 static void clearNewNodes() KJS_FAST_CALL; 123 124 static void deleteNewObjects() KJS_FAST_CALL; 125 126 virtual ~ParserRefCounted(); 127 }; 128 129 class Node : public ParserRefCounted { 130 public: 131 Node() KJS_FAST_CALL; 132 Node(PlacementNewAdoptType placementAdopt) KJS_FAST_CALL 133 : ParserRefCounted(placementAdopt) { } 134 135 UString toString() const KJS_FAST_CALL; 136 int lineNo() const KJS_FAST_CALL { return m_line; } 126 137 127 138 // Serialization. … … 1845 1856 virtual void streamTo(SourceStream&) const KJS_FAST_CALL; 1846 1857 virtual void getDeclarations(DeclarationStacks&) KJS_FAST_CALL; 1858 VarDeclNode* getVarDecl() { return varDecl.get(); } 1847 1859 private: 1848 1860 Identifier ident; … … 1952 1964 class ScopeNode : public BlockNode { 1953 1965 public: 1954 ScopeNode(SourceElements* ) KJS_FAST_CALL;1966 ScopeNode(SourceElements*, DeclarationStacks::VarStack*, DeclarationStacks::FunctionStack*) KJS_FAST_CALL; 1955 1967 1956 1968 int sourceId() KJS_FAST_CALL { return m_sourceId; } … … 1958 1970 1959 1971 protected: 1960 void initializeDeclarationStacks(ExecState*) KJS_FAST_CALL;1961 1972 1962 1973 DeclarationStacks::VarStack m_varStack; … … 1970 1981 class ProgramNode : public ScopeNode { 1971 1982 public: 1972 ProgramNode(SourceElements* ) KJS_FAST_CALL;1983 ProgramNode(SourceElements*, DeclarationStacks::VarStack*, DeclarationStacks::FunctionStack*) KJS_FAST_CALL; 1973 1984 virtual Completion execute(ExecState*) KJS_FAST_CALL; 1974 1985 … … 1979 1990 class EvalNode : public ScopeNode { 1980 1991 public: 1981 EvalNode(SourceElements* ) KJS_FAST_CALL;1992 EvalNode(SourceElements*, DeclarationStacks::VarStack*, DeclarationStacks::FunctionStack*) KJS_FAST_CALL; 1982 1993 virtual Completion execute(ExecState*) KJS_FAST_CALL; 1983 1994 … … 1988 1999 class FunctionBodyNode : public ScopeNode { 1989 2000 public: 1990 FunctionBodyNode(SourceElements* ) KJS_FAST_CALL;2001 FunctionBodyNode(SourceElements*, DeclarationStacks::VarStack*, DeclarationStacks::FunctionStack*) KJS_FAST_CALL; 1991 2002 1992 2003 virtual Completion execute(ExecState*) KJS_FAST_CALL; … … 1998 2009 1999 2010 private: 2000 void initializeSymbolTable( ) KJS_FAST_CALL;2011 void initializeSymbolTable(ExecState*) KJS_FAST_CALL; 2001 2012 void optimizeVariableAccess() KJS_FAST_CALL; 2002 2013 ALWAYS_INLINE void processDeclarations(ExecState*) KJS_FAST_CALL;
Note:
See TracChangeset
for help on using the changeset viewer.