|
Better codegen for '<expression> === void <literal>'.
Detect the pattern in both, the full compiler and crankshaft and generate direct pointer
comparisons. Along the way I cleaned up 'typeof <expression> == <string literal>' comparisons
as well by lifting platform independent code and checking the symmetric case.
BUG= v8:1440
TEST=cctest/test-api.cc
Committed: http://code.google.com/p/v8/source/detail?r=8420
Total comments: 10
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+231 lines, -84 lines) |
Patch |
|
M |
src/arm/full-codegen-arm.cc
|
View
|
1
|
3 chunks |
+19 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/ast.h
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ast.cc
|
View
|
1
|
1 chunk |
+53 lines, -0 lines |
2 comments
|
Download
|
|
M |
src/full-codegen.h
|
View
|
1
|
1 chunk |
+16 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.cc
|
View
|
1
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/hydrogen.h
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/hydrogen.cc
|
View
|
1
|
2 chunks |
+33 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
1
|
3 chunks |
+19 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
1
|
3 chunks |
+19 lines, -23 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
1
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|