Description[turbofan] Also optimize instanceof with bound functions.
For bound functions on the right-hand side of instanceof we can
constant-fold to the actual [[BoundTargetFunction]], actually
instance OrdinaryHasInstance. Move the Function.prototype[@@hasInstance]
reduction up to the JSCallReducer to allow this optimization to become
effective (and also enable other optimizations).
BUG=v8:5267
R=jarin@chromium.org
Committed: https://crrev.com/719d6c1d58b54c08fc02c7fb3c6afb449ac93c13
Cr-Commit-Position: refs/heads/master@{#41352}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 13 (7 generated)
|