|
Make maps in monomorphic IC stubs weak.
Maps in monomorphic Load, KeyedLoad, Store, KeyedStore, and CompareNil IC
stubs are treated as weak references by the marking visitor.
During generation of an IC stub with a weak map, the stub is appended to the
dependent code array of the map. When the map dies, all stubs in its dependent
code array are invalidated by setting embedded maps to undefined.
BUG= v8:2073
LOG=Y
TEST=cctest/test-heap/WeakMapInMonomorphic*IC
R=mstarzinger@chromium.org, verwaest@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=20679
Total comments: 6
Total comments: 1
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+672 lines, -310 lines) |
Patch |
|
M |
src/code-stubs.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/code-stubs.cc
|
View
|
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/flag-definitions.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/handles.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/heap.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+5 lines, -258 lines |
0 comments
|
Download
|
|
M |
src/ic.h
|
View
|
1
2
3
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ic.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/lithium-codegen.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/mark-compact.h
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/mark-compact.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+76 lines, -30 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
4
5
|
9 chunks |
+43 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+36 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-debug.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
2
3
4
5
|
2 chunks |
+35 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-visiting.h
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-visiting.cc
|
View
|
1
2
|
1 chunk |
+277 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-visiting-inl.h
|
View
|
1
2
3
4
5
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/stub-cache.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-heap.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+108 lines, -0 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|