@ -356,20 +356,20 @@
// callback invocation with small numbers of arguments to avoid the
// callback invocation with small numbers of arguments to avoid the
// performance hit associated with using `fn.apply()`
// performance hit associated with using `fn.apply()`
if ( args === undefined ) {
if ( args === undefined ) {
doNTCallback0 ( callback ) ;
nextTickCallbackWith0Args ( callback ) ;
} else {
} else {
switch ( args . length ) {
switch ( args . length ) {
case 1 :
case 1 :
doNTCallback1 ( callback , args [ 0 ] ) ;
nextTickCallbackWith1Arg ( callback , args [ 0 ] ) ;
break ;
break ;
case 2 :
case 2 :
doNTCallback2 ( callback , args [ 0 ] , args [ 1 ] ) ;
nextTickCallbackWith2Args ( callback , args [ 0 ] , args [ 1 ] ) ;
break ;
break ;
case 3 :
case 3 :
doNTCallback3 ( callback , args [ 0 ] , args [ 1 ] , args [ 2 ] ) ;
nextTickCallbackWith3Args ( callback , args [ 0 ] , args [ 1 ] , args [ 2 ] ) ;
break ;
break ;
default :
default :
doNTCallbackMany ( callback , args ) ;
nextTickCallbackWithManyArgs ( callback , args ) ;
}
}
}
}
if ( 1e4 < tickInfo [ kIndex ] )
if ( 1e4 < tickInfo [ kIndex ] )
@ -397,20 +397,20 @@
// callback invocation with small numbers of arguments to avoid the
// callback invocation with small numbers of arguments to avoid the
// performance hit associated with using `fn.apply()`
// performance hit associated with using `fn.apply()`
if ( args === undefined ) {
if ( args === undefined ) {
doNTCallback0 ( callback ) ;
nextTickCallbackWith0Args ( callback ) ;
} else {
} else {
switch ( args . length ) {
switch ( args . length ) {
case 1 :
case 1 :
doNTCallback1 ( callback , args [ 0 ] ) ;
nextTickCallbackWith1Arg ( callback , args [ 0 ] ) ;
break ;
break ;
case 2 :
case 2 :
doNTCallback2 ( callback , args [ 0 ] , args [ 1 ] ) ;
nextTickCallbackWith2Args ( callback , args [ 0 ] , args [ 1 ] ) ;
break ;
break ;
case 3 :
case 3 :
doNTCallback3 ( callback , args [ 0 ] , args [ 1 ] , args [ 2 ] ) ;
nextTickCallbackWith3Args ( callback , args [ 0 ] , args [ 1 ] , args [ 2 ] ) ;
break ;
break ;
default :
default :
doNTCallbackMany ( callback , args ) ;
nextTickCallbackWithManyArgs ( callback , args ) ;
}
}
}
}
if ( 1e4 < tickInfo [ kIndex ] )
if ( 1e4 < tickInfo [ kIndex ] )
@ -424,7 +424,7 @@
} while ( tickInfo [ kLength ] !== 0 ) ;
} while ( tickInfo [ kLength ] !== 0 ) ;
}
}
function doNTCallback0 ( callback ) {
function nextTickCallbackWith0Args ( callback ) {
var threw = true ;
var threw = true ;
try {
try {
callback ( ) ;
callback ( ) ;
@ -435,7 +435,7 @@
}
}
}
}
function doNTCallback1 ( callback , arg1 ) {
function nextTickCallbackWith1Arg ( callback , arg1 ) {
var threw = true ;
var threw = true ;
try {
try {
callback ( arg1 ) ;
callback ( arg1 ) ;
@ -446,7 +446,7 @@
}
}
}
}
function doNTCallback2 ( callback , arg1 , arg2 ) {
function nextTickCallbackWith2Args ( callback , arg1 , arg2 ) {
var threw = true ;
var threw = true ;
try {
try {
callback ( arg1 , arg2 ) ;
callback ( arg1 , arg2 ) ;
@ -457,7 +457,7 @@
}
}
}
}
function doNTCallback3 ( callback , arg1 , arg2 , arg3 ) {
function nextTickCallbackWith3Args ( callback , arg1 , arg2 , arg3 ) {
var threw = true ;
var threw = true ;
try {
try {
callback ( arg1 , arg2 , arg3 ) ;
callback ( arg1 , arg2 , arg3 ) ;
@ -468,7 +468,7 @@
}
}
}
}
function doNTCallbackMany ( callback , args ) {
function nextTickCallbackWithManyArgs ( callback , args ) {
var threw = true ;
var threw = true ;
try {
try {
callback . apply ( null , args ) ;
callback . apply ( null , args ) ;