[V8] Add custom object compare callback
authorAaron Kennedy <aaron.kennedy@nokia.com>
Thu, 27 Oct 2011 12:40:00 +0000 (13:40 +0100)
committerSimon Hausmann <simon.hausmann@nokia.com>
Thu, 5 Jan 2012 11:18:11 +0000 (12:18 +0100)
commitdd34832c519d86f1f7d157d872a87f8ed56de6c8
tree9a66fc51cb19559ffc1e92060c4a54dfa6abd05e
parentb126a7c96ba8a0ae4bd91fd504a4b36a1034c199
[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: Ic7512e8342c071793393e5ad3fcb6fb241f7cc80
13 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/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