lib: don't penalize setInterval() common case
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 20 Mar 2015 16:20:43 +0000 (17:20 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 20 Mar 2015 22:42:26 +0000 (23:42 +0100)
commit33fea6ed5f506e7748cb9132f63dc03215a9eb39
treed8864f420b92e07d3cf89de607abba68fc9a453c
parent31da9758a0b9422faa5c2184c4a150118dfab615
lib: don't penalize setInterval() common case

The common case is where setInterval() 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