|
[turbofan] Optimize typeof in abstract/strict equality comparison.
Add support to optimize certain comparisons of typeof with known
strings to utilize the existing ObjectIs<Type> predicates. Also
add a new ObjectIsCallable, which is used to optimize the common
typeof x === "function" pattern.
R=jarin@chromium.org
Committed: https://crrev.com/e96c143171a31d2bb0982a6896c93e12441cee45
Cr-Commit-Position: refs/heads/master@{#35562}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+167 lines, -1 line) |
Patch |
|
M |
src/compiler/change-lowering.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/change-lowering.cc
|
View
|
|
2 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/js-typed-lowering.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/js-typed-lowering.cc
|
View
|
|
2 chunks |
+48 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/node-matchers.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/opcodes.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/simplified-lowering.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/simplified-operator.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/simplified-operator.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/typer.cc
|
View
|
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/verifier.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-674753.js
|
View
|
|
1 chunk |
+76 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (2 generated)
|