DescriptionAmend PersistentValueMap:
- Use the surrounding map (instead of Traits::Impl) for weak callback.
- Provide for a fast reference to a mapped value.
- Restructure Traits to accomondate for the first point above.
[Why?] As discussed, I proceeded to replace Impl with the map.
The problem I encountered with that version is that now the
Traits class depends on itself: The weak-related methods require the
map type in their signature. But the map type includes the Traits class
and hence the Traits class method signatures depend on the specific Traits class. That
makes them practically un-derivable: While you can derive a Traits class
from another one, since the compiler now expects methods with a different
signature. To accommodate, I pulled the dispose traits into the weak traits
class. I also removed the Impl*/MapType* parameter from the Dispose call,
since no implementation seems to need it.
R=dcarney@chromium.org
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=20326
Patch Set 1 : Re-upload after rebase. #
Total comments: 8
Patch Set 2 : Address feedback comments. #
Total comments: 4
Patch Set 3 : Address feedback comments, round 2. #
Messages
Total messages: 9 (0 generated)
|