-
mjs@apple.com authored
Reviewed by Cameron Zwarich. - Some code cleanup to how we handle code features. 1) Rename FeatureInfo typedef to CodeFeatures. 2) Rename NodeFeatureInfo template to NodeInfo. 3) Keep CodeFeature bitmask in ScopeNode instead of trying to break it out into individual bools. 4) Rename misleadingly named "needsClosure" method to "containsClosures", which better describes the meaning of ClosureFeature. 5) Make setUsersArguments() not take an argument since it only goes one way. * JavaScriptCore.exp: * VM/CodeBlock.h: (JSC::CodeBlock::CodeBlock): * kjs/NodeInfo.h: * kjs/Parser.cpp: (JSC::Parser::didFinishParsing): * kjs/Parser.h: (JSC::Parser::parse): * kjs/grammar.y: * kjs/nodes.cpp: (JSC::ScopeNode::ScopeNode): (JSC::ProgramNode::ProgramNode): (JSC::ProgramNode::create): (JSC::EvalNode::EvalNode): (JSC::EvalNode::create): (JSC::FunctionBodyNode::FunctionBodyNode): (JSC::FunctionBodyNode::create): * kjs/nodes.h: (JSC::ScopeNode::usesEval): (JSC::ScopeNode::containsClosures): (JSC::ScopeNode::usesArguments): (JSC::ScopeNode::setUsesArguments): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
43625524