This isn't intended to be a full drop-in replacement for an STL container,
it is
just templatizing things more to get more compile-time checking instead of
insane casts all over the code, and it is reducing our usual ad-hoc
inconsistent
naming of things by using well-known names.
Folding things together is normally only a good idea if things are really,
really performance-critical, which is not the case here: We need a mapping
from
the property names to their getters/setters only during a very short time
span
(during a single method), so adding this info to the AST nodes feels plainly
wrong and increases the permanent memory usage.
In general we should not fold things together more than they already are,
but do
the exact opposite and untangle things. Ask Andreas about his fun in the
parser
while trying to implement modules... :-)
https://chromiumcodereview.appspot.com/9691040/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev