Allow to define accessors on objects.
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 25 May 2010 12:14:49 +0000 (12:14 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 25 May 2010 12:14:49 +0000 (12:14 +0000)
commit897f7dedc1f260cca4021699bc872293769c4998
treea6d374d95e629f1503903dbce9a7d1fad2c5fa76
parent7bbfc8fc53615454979396e3afdeb68fd851ea4f
Allow to define accessors on objects.

Currently one can only define accessors on object templates.  This patch
allows to create accessors on the fly.

These accessors could control access to elements as well.  This element
support is somewhat rudimentary and may require future work (for example,
we probably don't want to convert index into a string.)

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4714 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8.h
src/api.cc
src/handles.cc
src/handles.h
src/objects.cc
src/objects.h
test/cctest/test-api.cc