|
|
When checking against non-parametrized types use a cache to hold result tuples (class, result). That cache is stored in the instruction stream. Currently implemented for instanceof, ia32 only. Should migrate to other type tests and architectures.
70x improvement on a benchmark (similar to what is seen in html _unwrap).
Committed: https://code.google.com/p/dart/source/detail?r=6281
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+175 lines, -19 lines) |
Patch |
 |
M |
runtime/vm/class_finalizer.cc
|
View
|
1
2
3
|
1 chunk |
+17 lines, -6 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_generator.cc
|
View
|
1
2
3
|
2 chunks |
+43 lines, -7 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_generator_ia32.cc
|
View
|
1
2
3
|
5 chunks |
+48 lines, -4 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_generator_x64.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/code_patcher.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_patcher_arm.cc
|
View
|
1
2
3
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_patcher_ia32.cc
|
View
|
1
2
3
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_patcher_x64.cc
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/flow_graph_compiler_x64.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/object.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.cc
|
View
|
1
2
3
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|