Encapsulate element handling into a class keyed on ElementsKind
authordanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Aug 2011 11:12:46 +0000 (11:12 +0000)
committerdanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Aug 2011 11:12:46 +0000 (11:12 +0000)
commitbdf6895bb332d3b3a6bf3035752e53df8537d1af
tree4eaf032192000fa330109aa5c2adaa8be137da79
parent8a8329ed751eb6fa990bb7eb5699b713c5f2e4e4
Encapsulate element handling into a class keyed on ElementsKind

Advantage is that it's much easier to add new element types (like FAST_SMI_ELEMENTS), and that handling logic for each element kind is (more) consolidated.

Currently, only GetElementsWithReceiver uses the new encapsulation, but the goal is to move much more element functionality into the class incrementally.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7527001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8810 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
12 files changed:
src/SConscript
src/elements.cc [new file with mode: 0644]
src/elements.h [new file with mode: 0644]
src/objects-debug.cc
src/objects-inl.h
src/objects-printer.cc
src/objects.cc
src/objects.h
src/runtime.cc
src/v8.cc
test/cctest/test-api.cc
tools/gyp/v8.gyp