profile/ivi/qtjsbackend.git
12 years ago[V8] Generalize external object resources
Aaron Kennedy [Tue, 4 Oct 2011 06:06:09 +0000 (16:06 +1000)]
[V8] Generalize external object resources

V8 was already able to manage and finalize an external string
resource.  This change generalizes that mechanism to handle a
single generic external resource - a v8::Object::ExternalResource
derived instance - on normal JSObject's.

This is useful for mapping C++ objects to JS objects where the
C++ object's memory is effectively owned by the JS Object, and
thus needs to destroyed when the JS Object is garbage collected.
The V8 mailing list suggests using a weak persistent handle for
this purpose, but that seems to incur a fairly massive performance
penalty for short lived objects as weak persistent handle callbacks
are not called until the object has been promoted into the old
object space.

Change-Id: Ia21a181927a2e68d33a623bbe47e0f1a4404ec8e

12 years ago[V8] Add a "fallback" mode for named property interceptors
Aaron Kennedy [Thu, 27 Oct 2011 10:31:56 +0000 (11:31 +0100)]
[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: I9228c114b2d2f3a9386617b53f7d8ac86371159d

12 years ago[V8] Add hashing and comparison methods to v8::String
Aaron Kennedy [Tue, 4 Oct 2011 05:04:21 +0000 (15:04 +1000)]
[V8] Add hashing and comparison methods to v8::String

This allows us to more rapidly search for a v8::String inside a hash
of QStrings.

Change-Id: I0a8bfb1aa34f00d987862a7bfe94c822a73d8c54

12 years agoImported v8 version 3.7.3 from https://github.com/v8/v8.git
Simon Hausmann [Thu, 5 Jan 2012 09:12:14 +0000 (10:12 +0100)]
Imported v8 version 3.7.3 from https://github.com/v8/v8.git

Change-Id: I152648081e46f599c2bb88eaaf67034fa5daac3a

12 years agoDisable snapshots until we have support for host builds in modules
Simon Hausmann [Thu, 5 Jan 2012 08:58:19 +0000 (09:58 +0100)]
Disable snapshots until we have support for host builds in modules

Change-Id: I7d16ac00c5255d548b68e7b77d451bd4dde12b25

12 years agoCreated QtJSBackend module.
Simon Hausmann [Thu, 5 Jan 2012 08:38:07 +0000 (09:38 +0100)]
Created QtJSBackend module.

Imported src/v8, tools and tests from qtbase (1fdfc2abfe1fa26b86028934d4853432e25b4655)
and added the necessary build system files to build it as a top-level
Qt module.

Change-Id: I0b784165157bfb031059f1528c1b3b2828284f6f