Reviewed by Maciej.
Based on a patch by Oliver Hunt. https://bugs.webkit.org/show_bug.cgi?id=19180 speed up SunSpider by optimizing immediate number cases 1.4% speedup on SunSpider. * VM/Machine.cpp: (KJS::Machine::privateExecute): * kjs/JSImmediate.h: (KJS::JSImmediate::incImmediateNumber): (KJS::JSImmediate::decImmediateNumber): Added fast paths for ++ and --. (KJS::JSImmediate::canDoFastAdditiveOperations): Corrected a comment. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Showing with 67 additions and 7 deletions