A first skeleton for introducing Harmony proxies.
authorrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 13 May 2011 10:58:25 +0000 (10:58 +0000)
committerrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 13 May 2011 10:58:25 +0000 (10:58 +0000)
commite14402b1df1229945156dff36b01cab400d120ee
tree1d82c8ff2b41cb81a04906bbfec0dbe556e941cc
parentedac3d93c20e6ded8479cdde0c82ab070c2d17ac
A first skeleton for introducing Harmony proxies.

1) Add new type JSProxy for representing proxy objects.
   Currently devoid of functionality, i.e., all properties are undefined.

2) Some rudimentary global $Proxy functions to create proxies.

Next step: Hook up getProperty and getOwnProperty handlers. Will probably
require introducing a new LookupResult type, which is a mixture of
INTERCEPTOR (handles any property) and CALLBACK (calls back to JS).
Can we unify this somehow?

TODO: Should probably rename existing Proxy type to something like
"Foreign", to avoid confusion.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7887 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
17 files changed:
include/v8.h
src/bootstrapper.cc
src/factory.cc
src/factory.h
src/heap.cc
src/heap.h
src/ia32/frames-ia32.h
src/objects-debug.cc
src/objects-inl.h
src/objects-printer.cc
src/objects-visiting.cc
src/objects.cc
src/objects.h
src/proxy.js
src/runtime.cc
src/runtime.h
src/runtime.js