lib: don't penalize setTimeout() common case
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 20 Mar 2015 15:55:19 +0000 (16:55 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 20 Mar 2015 22:42:26 +0000 (23:42 +0100)
commit31da9758a0b9422faa5c2184c4a150118dfab615
tree3837c6384763232263ce34ede512dbdfb25519f3
parentb64983d77cc3ed2e4b585f3bfc8ed23802389a52
lib: don't penalize setTimeout() common case

The common case is where setTimeout() is called with two arguments,
the callback and the timeout.  Specifying optional arguments in the
parameter list forces common case calls to go through an arguments
adaptor stack frame.

PR-URL: https://github.com/iojs/io.js/pull/1221
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
lib/timers.js