[V8] Add custom object compare callback
authorAaron Kennedy <aaron.kennedy@nokia.com>
Thu, 27 Oct 2011 12:40:00 +0000 (13:40 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 13 Jun 2012 07:56:57 +0000 (09:56 +0200)
commit6c28d75933a9a56a311573593711a7e73eeab8c3
tree7ca910683e52518d150fa5f9621048c354456f81
parentad36f9389077067fc8c990ba3655d7ac4fb6c286
[V8] Add custom object compare callback

A global custom object comparison callback can be set with:
    V8::SetUserObjectComparisonCallbackFunction()
When two JSObjects are compared (== or !=), if either one has
the MarkAsUseUserObjectComparison() bit set, the custom comparison
callback is invoked to do the actual comparison.

This is useful when you have "value" objects that you want to
compare as equal, even though they are actually different JS object
instances.

Change-Id: Id1794ffc17131566c7ee30ab5fcf11445dab2ab2
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
14 files changed:
src/3rdparty/v8/include/v8.h
src/3rdparty/v8/src/api.cc
src/3rdparty/v8/src/arm/code-stubs-arm.cc
src/3rdparty/v8/src/factory.cc
src/3rdparty/v8/src/ia32/code-stubs-ia32.cc
src/3rdparty/v8/src/isolate.cc
src/3rdparty/v8/src/isolate.h
src/3rdparty/v8/src/mips/code-stubs-mips.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
src/3rdparty/v8/src/runtime.h
src/3rdparty/v8/src/x64/code-stubs-x64.cc