[V8] Add a "fallback" mode for named property interceptors
authorAaron Kennedy <aaron.kennedy@nokia.com>
Thu, 27 Oct 2011 10:31:56 +0000 (11:31 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 13 Jun 2012 07:56:28 +0000 (09:56 +0200)
commitc010afb5a3c2948730ab9b35baa3deba1acb6531
treee85a559f2ebad03ba9c659c5549eb42441442b0e
parent52b52c0c2ebf597ce8da9e2bab9daa62c05a711b
[V8] Add a "fallback" mode for named property interceptors

By default interceptors are called before the normal property
resolution on objects.  When an interceptor is installed as a
"fallback" interceptor, it is only called if the object doesn't
already have the property.

In the case of a global object having an fallback interceptor,
the interceptor is not invoked at all for var or function
declarations.

Change-Id: Icf2b84aeca37358df22d6e2229dddd6ff6e1876e
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/3rdparty/v8/include/v8.h
src/3rdparty/v8/src/api.cc
src/3rdparty/v8/src/factory.cc
src/3rdparty/v8/src/objects-inl.h
src/3rdparty/v8/src/objects.cc
src/3rdparty/v8/src/objects.h
src/3rdparty/v8/src/runtime.cc