-
ggaren@apple.com authored
Added toJSNumber, a fast path for converting a JSValue to a JS number, and deployed it in postfix expressions. In the fast case this eliminates a call to jsNumber. 0.4% speedup on SunSpider. * ChangeLog: * kjs/nodes.cpp: (KJS::PostIncResolveNode::evaluate): (KJS::PostIncLocalVarNode::evaluate): (KJS::PostDecResolveNode::evaluate): (KJS::PostDecLocalVarNode::evaluate): (KJS::PostIncBracketNode::evaluate): (KJS::PostDecBracketNode::evaluate): (KJS::PostIncDotNode::evaluate): (KJS::PostDecDotNode::evaluate): (KJS::UnaryPlusNode::evaluate): * kjs/value.h: (KJS::JSValue::toJSNumber): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2954278c