Reviewers: dcarney, Toon Verwaest,
Message:
ptal
I haven't converted cctests and map->prototype() yet
Description:
Introduce a PrototypeIterator template and use it all over the place
The idea is to have one central place where all prototype access happens.
The different template parameters specialize on
- How to objects are stored (raw pointer vs handle)
- Whether we walk the prototype chain based on the map, or via a type switch
- Where the prototype chain ends (null value, non hidden prototype,
given object)
A macro is provided for the common case that only the first prototype is
accessed.
BUG=???
[email protected],[email protected]
LOG=n
Please review this at https://codereview.chromium.org/348313002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+499, -198 lines):
M BUILD.gn
M src/accessors.cc
M src/api.cc
M src/builtins.cc
M src/deoptimizer.cc
M src/heap-snapshot-generator.cc
M src/hydrogen.cc
M src/ic.cc
M src/ic-inl.h
M src/isolate.cc
M src/json-stringifier.h
M src/objects.h
M src/objects.cc
M src/objects-inl.h
M src/objects-printer.cc
A src/prototype-iterator.h
M src/runtime.cc
M src/string-stream.cc
M src/stub-cache.cc
M tools/gyp/v8.gyp
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.