Changeset 31072 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Mar 14, 2008, 6:05:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r30871 r31072 47 47 class FunctionBodyNodeWithDebuggerHooks : public FunctionBodyNode { 48 48 public: 49 FunctionBodyNodeWithDebuggerHooks(SourceElements*, VarStack*, FunctionStack* ) KJS_FAST_CALL;49 FunctionBodyNodeWithDebuggerHooks(SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure) KJS_FAST_CALL; 50 50 virtual JSValue* execute(ExecState*) KJS_FAST_CALL; 51 51 }; … … 4346 4346 // ------------------------------ FunctionBodyNode ----------------------------- 4347 4347 4348 ScopeNode::ScopeNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack )4348 ScopeNode::ScopeNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack, bool usesEval, bool needsClosure) 4349 4349 : BlockNode(children) 4350 4350 , m_sourceURL(parser().sourceURL()) 4351 4351 , m_sourceId(parser().sourceId()) 4352 , m_usesEval(usesEval) 4353 , m_needsClosure(needsClosure) 4352 4354 { 4353 4355 if (varStack) … … 4359 4361 // ------------------------------ ProgramNode ----------------------------- 4360 4362 4361 ProgramNode::ProgramNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack )4362 : ScopeNode(children, varStack, funcStack )4363 { 4364 } 4365 4366 ProgramNode* ProgramNode::create(SourceElements* children, VarStack* varStack, FunctionStack* funcStack )4367 { 4368 return new ProgramNode(children, varStack, funcStack );4363 ProgramNode::ProgramNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack, bool usesEval, bool needsClosure) 4364 : ScopeNode(children, varStack, funcStack, usesEval, needsClosure) 4365 { 4366 } 4367 4368 ProgramNode* ProgramNode::create(SourceElements* children, VarStack* varStack, FunctionStack* funcStack, bool usesEval, bool needsClosure) 4369 { 4370 return new ProgramNode(children, varStack, funcStack, usesEval, needsClosure); 4369 4371 } 4370 4372 4371 4373 // ------------------------------ EvalNode ----------------------------- 4372 4374 4373 EvalNode::EvalNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack )4374 : ScopeNode(children, varStack, funcStack )4375 { 4376 } 4377 4378 EvalNode* EvalNode::create(SourceElements* children, VarStack* varStack, FunctionStack* funcStack )4379 { 4380 return new EvalNode(children, varStack, funcStack );4375 EvalNode::EvalNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack, bool usesEval, bool needsClosure) 4376 : ScopeNode(children, varStack, funcStack, usesEval, needsClosure) 4377 { 4378 } 4379 4380 EvalNode* EvalNode::create(SourceElements* children, VarStack* varStack, FunctionStack* funcStack, bool usesEval, bool needsClosure) 4381 { 4382 return new EvalNode(children, varStack, funcStack, usesEval, needsClosure); 4381 4383 } 4382 4384 4383 4385 // ------------------------------ FunctionBodyNode ----------------------------- 4384 4386 4385 FunctionBodyNode::FunctionBodyNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack )4386 : ScopeNode(children, varStack, funcStack )4387 FunctionBodyNode::FunctionBodyNode(SourceElements* children, VarStack* varStack, FunctionStack* funcStack, bool usesEval, bool needsClosure) 4388 : ScopeNode(children, varStack, funcStack, usesEval, needsClosure) 4387 4389 , m_initialized(false) 4388 4390 { 4389 4391 } 4390 4392 4391 FunctionBodyNode* FunctionBodyNode::create(SourceElements* children, VarStack* varStack, FunctionStack* funcStack )4393 FunctionBodyNode* FunctionBodyNode::create(SourceElements* children, VarStack* varStack, FunctionStack* funcStack, bool usesEval, bool needsClosure) 4392 4394 { 4393 4395 if (Debugger::debuggersPresent) 4394 return new FunctionBodyNodeWithDebuggerHooks(children, varStack, funcStack );4395 return new FunctionBodyNode(children, varStack, funcStack );4396 return new FunctionBodyNodeWithDebuggerHooks(children, varStack, funcStack, usesEval, needsClosure); 4397 return new FunctionBodyNode(children, varStack, funcStack, usesEval, needsClosure); 4396 4398 } 4397 4399 … … 4648 4650 // ------------------------------ FunctionBodyNodeWithDebuggerHooks --------------------------------- 4649 4651 4650 FunctionBodyNodeWithDebuggerHooks::FunctionBodyNodeWithDebuggerHooks(SourceElements* children, DeclarationStacks::VarStack* varStack, DeclarationStacks::FunctionStack* funcStack )4651 : FunctionBodyNode(children, varStack, funcStack )4652 FunctionBodyNodeWithDebuggerHooks::FunctionBodyNodeWithDebuggerHooks(SourceElements* children, DeclarationStacks::VarStack* varStack, DeclarationStacks::FunctionStack* funcStack, bool usesEval, bool needsClosure) 4653 : FunctionBodyNode(children, varStack, funcStack, usesEval, needsClosure) 4652 4654 { 4653 4655 }
Note:
See TracChangeset
for help on using the changeset viewer.