adding quicker dispatches to avoid touching arguments[i]
This commit is contained in:
parent
c7de7c5f7c
commit
b7ac392030
|
@ -884,6 +884,8 @@
|
||||||
return checkedMulSlowPath(M, Array.prototype.slice.call(arguments, 1));
|
return checkedMulSlowPath(M, Array.prototype.slice.call(arguments, 1));
|
||||||
}
|
}
|
||||||
return prod;
|
return prod;
|
||||||
|
} else {
|
||||||
|
return plt.baselib.numbers.multiply(x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Secondary path: if everything is a fixnum...
|
// Secondary path: if everything is a fixnum...
|
||||||
|
@ -928,6 +930,8 @@
|
||||||
return checkedSubSlowPath(M, Array.prototype.slice.call(arguments, 1));
|
return checkedSubSlowPath(M, Array.prototype.slice.call(arguments, 1));
|
||||||
}
|
}
|
||||||
return sum;
|
return sum;
|
||||||
|
} else {
|
||||||
|
return plt.baselib.numbers.subtract(x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return checkedSubSlowPath(M, Array.prototype.slice.call(arguments, 1));
|
return checkedSubSlowPath(M, Array.prototype.slice.call(arguments, 1));
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
(provide version)
|
(provide version)
|
||||||
(: version String)
|
(: version String)
|
||||||
|
|
||||||
(define version "1.161")
|
(define version "1.162")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user