Introduce a PrototypeIterator class and use it for prototype access
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 14 Jul 2014 07:19:49 +0000 (07:19 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 14 Jul 2014 07:19:49 +0000 (07:19 +0000)
commit168742b81a213fbfa960344c60cb36f1232aa750
tree426daa028f0c799092e614f219176a709e4e8077
parentdf3c11d7607a09f872e61b50fb9744a36da92c92
Introduce a PrototypeIterator class and use it for prototype access

The new pattern is that we first get the map of the root of the
prototype chain using Object::GetMapRoot() and then walk up the
prototype chain using Map::prototype().

BUG=???
R=verwaest@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/376233002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22365 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
13 files changed:
BUILD.gn
src/accessors.cc
src/api.cc
src/builtins.cc
src/ic-inl.h
src/ic.cc
src/isolate.cc
src/objects.cc
src/objects.h
src/prototype.h [new file with mode: 0644]
src/runtime.cc
src/string-stream.cc
tools/gyp/v8.gyp