Diff
Modified: trunk/Source/WebCore/ChangeLog (141104 => 141105)
--- trunk/Source/WebCore/ChangeLog 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/ChangeLog 2013-01-29 14:19:25 UTC (rev 141105)
@@ -1,3 +1,62 @@
+2013-01-29 Florin Malita <fmal...@chromium.org>
+
+ [Chromium] Unreviewed gardening.
+
+ Update bindings-tests results after http://trac.webkit.org/changeset/141034.
+
+ * bindings/scripts/test/V8/V8Float64Array.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8Float64Array::createWrapper):
+ * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestActiveDOMObject::createWrapper):
+ * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestCustomNamedGetter::createWrapper):
+ * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestEventConstructor::createWrapper):
+ * bindings/scripts/test/V8/V8TestEventTarget.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestEventTarget::createWrapper):
+ * bindings/scripts/test/V8/V8TestException.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestException::createWrapper):
+ * bindings/scripts/test/V8/V8TestInterface.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestInterface::createWrapper):
+ * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestMediaQueryListListener::createWrapper):
+ * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestNamedConstructor::createWrapper):
+ * bindings/scripts/test/V8/V8TestNode.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestNode::createWrapper):
+ * bindings/scripts/test/V8/V8TestObj.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestObj::createWrapper):
+ * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestOverloadedConstructors::createWrapper):
+ * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
+ (WebCore):
+ (WebCore::checkTypeOrDieTrying):
+ (WebCore::V8TestSerializedScriptValueInterface::createWrapper):
+
2013-01-29 Andrey Adaikin <aand...@chromium.org>
Web Inspector: [Canvas] support instrumenting canvases in iframes (backend side)
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -40,8 +40,31 @@
#include <wtf/RefPtr.h>
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7Float64Array@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore12Float64ArrayE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(Float64Array* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7Float64Array@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore12Float64ArrayE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8Float64Array::info = { V8Float64Array::GetTemplate, V8Float64Array::derefObject, 0, 0, 0, V8Float64Array::installPerContextPrototypeProperties, &V8ArrayBufferView::info, WrapperTypeObjectPrototype };
namespace Float64ArrayV8Internal {
@@ -150,6 +173,10 @@
{
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
ASSERT(static_cast<void*>(static_cast<ArrayBufferView*>(impl.get())) == static_cast<void*>(impl.get()));
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -31,8 +31,31 @@
#include "V8Node.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestActiveDOMObject@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore19TestActiveDOMObjectE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestActiveDOMObject* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestActiveDOMObject@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore19TestActiveDOMObjectE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestActiveDOMObject::info = { V8TestActiveDOMObject::GetTemplate, V8TestActiveDOMObject::derefObject, 0, 0, 0, V8TestActiveDOMObject::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestActiveDOMObjectV8Internal {
@@ -179,6 +202,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -30,8 +30,31 @@
#include "V8DOMWrapper.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestCustomNamedGetter@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore21TestCustomNamedGetterE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestCustomNamedGetter* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestCustomNamedGetter@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore21TestCustomNamedGetterE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestCustomNamedGetter::info = { V8TestCustomNamedGetter::GetTemplate, V8TestCustomNamedGetter::derefObject, 0, 0, 0, V8TestCustomNamedGetter::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestCustomNamedGetterV8Internal {
@@ -117,6 +140,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventConstructor.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventConstructor.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventConstructor.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -30,8 +30,31 @@
#include "V8DOMWrapper.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestEventConstructor@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore20TestEventConstructorE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestEventConstructor* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestEventConstructor@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore20TestEventConstructorE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestEventConstructor::info = { V8TestEventConstructor::GetTemplate, V8TestEventConstructor::derefObject, 0, 0, 0, V8TestEventConstructor::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestEventConstructorV8Internal {
@@ -149,6 +172,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -34,8 +34,31 @@
#include "V8Node.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestEventTarget@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore15TestEventTargetE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestEventTarget* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestEventTarget@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore15TestEventTargetE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestEventTarget::info = { V8TestEventTarget::GetTemplate, V8TestEventTarget::derefObject, 0, V8TestEventTarget::toEventTarget, 0, V8TestEventTarget::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestEventTargetV8Internal {
@@ -183,6 +206,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -29,8 +29,31 @@
#include "V8DOMWrapper.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestException@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore13TestExceptionE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestException* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestException@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore13TestExceptionE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestException::info = { V8TestException::GetTemplate, V8TestException::derefObject, 0, 0, 0, V8TestException::installPerContextPrototypeProperties, 0, WrapperTypeErrorPrototype };
namespace TestExceptionV8Internal {
@@ -108,6 +131,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -38,8 +38,31 @@
#include <wtf/RefPtr.h>
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestInterface@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore13TestInterfaceE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestInterface* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestInterface@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore13TestInterfaceE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestInterface::info = { V8TestInterface::GetTemplate, V8TestInterface::derefObject, V8TestInterface::toActiveDOMObject, 0, 0, V8TestInterface::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestInterfaceV8Internal {
@@ -338,6 +361,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -31,8 +31,31 @@
#include "V8DOMWrapper.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestMediaQueryListListener@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore26TestMediaQueryListListenerE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestMediaQueryListListener* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestMediaQueryListListener@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore26TestMediaQueryListListenerE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestMediaQueryListListener::info = { V8TestMediaQueryListListener::GetTemplate, V8TestMediaQueryListListener::derefObject, 0, 0, 0, V8TestMediaQueryListListener::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestMediaQueryListListenerV8Internal {
@@ -117,6 +140,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -30,8 +30,31 @@
#include "V8DOMWrapper.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestNamedConstructor@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore20TestNamedConstructorE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestNamedConstructor* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestNamedConstructor@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore20TestNamedConstructorE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestNamedConstructor::info = { V8TestNamedConstructor::GetTemplate, V8TestNamedConstructor::derefObject, V8TestNamedConstructor::toActiveDOMObject, 0, 0, V8TestNamedConstructor::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestNamedConstructorV8Internal {
@@ -158,6 +181,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -30,8 +30,31 @@
#include "V8Node.h"
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestNode@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore8TestNodeE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestNode* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestNode@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore8TestNodeE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestNode::info = { V8TestNode::GetTemplate, V8TestNode::derefObject, 0, V8TestNode::toEventTarget, 0, V8TestNode::installPerContextPrototypeProperties, &V8Node::info, WrapperTypeObjectPrototype };
namespace TestNodeV8Internal {
@@ -119,6 +142,10 @@
{
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
ASSERT(static_cast<void*>(static_cast<Node*>(impl.get())) == static_cast<void*>(impl.get()));
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -72,8 +72,31 @@
#include "V8TestObjectC.h"
#endif
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestObj@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore7TestObjE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestObj* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestObj@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore7TestObjE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestObj::info = { V8TestObj::GetTemplate, V8TestObj::derefObject, 0, 0, 0, V8TestObj::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestObjV8Internal {
@@ -2244,6 +2267,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -35,8 +35,31 @@
#include <wtf/ArrayBufferView.h>
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestOverloadedConstructors@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore26TestOverloadedConstructorsE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestOverloadedConstructors* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestOverloadedConstructors@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore26TestOverloadedConstructorsE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestOverloadedConstructors::info = { V8TestOverloadedConstructors::GetTemplate, V8TestOverloadedConstructors::derefObject, 0, 0, 0, V8TestOverloadedConstructors::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestOverloadedConstructorsV8Internal {
@@ -172,6 +195,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp (141104 => 141105)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp 2013-01-29 14:14:40 UTC (rev 141104)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp 2013-01-29 14:19:25 UTC (rev 141105)
@@ -36,8 +36,31 @@
#include <wtf/ArrayBuffer.h>
#include <wtf/UnusedParam.h>
+#if ENABLE(BINDING_INTEGRITY)
+#if defined(OS_WIN)
+#pragma warning(disable: 4483)
+extern "C" { extern void (*const __identifier("??_7TestSerializedScriptValueInterface@WebCore@@6B@")[])(); }
+#else
+extern "C" { extern void* _ZTVN7WebCore34TestSerializedScriptValueInterfaceE[]; }
+#endif
+#endif // ENABLE(BINDING_INTEGRITY)
+
namespace WebCore {
+#if ENABLE(BINDING_INTEGRITY)
+inline void checkTypeOrDieTrying(TestSerializedScriptValueInterface* object)
+{
+ void* actualVTablePointer = *(reinterpret_cast<void**>(object));
+#if defined(OS_WIN)
+ void* expectedVTablePointer = reinterpret_cast<void*>(__identifier("??_7TestSerializedScriptValueInterface@WebCore@@6B@"));
+#else
+ void* expectedVTablePointer = &_ZTVN7WebCore34TestSerializedScriptValueInterfaceE[2];
+#endif
+ if (actualVTablePointer != expectedVTablePointer)
+ CRASH();
+}
+#endif // ENABLE(BINDING_INTEGRITY)
+
WrapperTypeInfo V8TestSerializedScriptValueInterface::info = { V8TestSerializedScriptValueInterface::GetTemplate, V8TestSerializedScriptValueInterface::derefObject, 0, 0, 0, V8TestSerializedScriptValueInterface::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
namespace TestSerializedScriptValueInterfaceV8Internal {
@@ -290,6 +313,10 @@
ASSERT(impl.get());
ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty());
+#if ENABLE(BINDING_INTEGRITY)
+ checkTypeOrDieTrying(impl.get());
+#endif
+
v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, &info, impl.get());
if (UNLIKELY(wrapper.IsEmpty()))
return wrapper;