Description[turbofan] Optimize typeof o === "object" checks.
Properly recognize and optimize typeof in a strict/abstract equality
comparison with the string literal "object" to a check for Null or a
check of the map for Receiver instance type and non-callable.
Drive-by-fix: Also optimize typeof o === "function" somewhat, now that
we have the new types for Callable and NonCallable.
R=jarin@chromium.org
BUG=v8:5267
Review-Url: https://codereview.chromium.org/2646763003
Cr-Commit-Position: refs/heads/master@{#42501}
Committed: https://chromium.googlesource.com/v8/v8/+/695026d411edcc222e514aa7090a42554237cb2a
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address comment. #
Total comments: 2
Messages
Total messages: 15 (7 generated)
|