Description[turbofan] Optimize Function.prototype.bind for the common case.
When the input to Function.prototype.bind is a known function, we can
inline the allocation of the JSBoundFunction into TurboFan, which
provides a 2x speed-up for several hot functions in Node streams (as
discovered by Matteo Collina). One of example of this can be found in
https://github.com/nodejs/node/pull/13322, which can be optimized and
made more readable using bind instead of closures.
R=jarin@chromium.org
Review-Url: https://codereview.chromium.org/2916063002
Cr-Commit-Position: refs/heads/master@{#45679}
Committed: https://chromium.googlesource.com/v8/v8/+/3028f8075ec713d99ee4c5f419c7403cca14b446
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address feedback. #
Messages
Total messages: 17 (11 generated)
|