| Index: Source/bindings/tests/results/V8TestEventTarget.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestEventTarget.cpp b/Source/bindings/tests/results/V8TestEventTarget.cpp
|
| index cbb734e1d6cd0a51ce87cd7630fcc3a05d6b43a1..3e923ebefe0933903b3be1cdeb9fba6e5867c61c 100644
|
| --- a/Source/bindings/tests/results/V8TestEventTarget.cpp
|
| +++ b/Source/bindings/tests/results/V8TestEventTarget.cpp
|
| @@ -36,40 +36,8 @@
|
| #include "core/page/Frame.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)
|
| -// This checks if a DOM object that is about to be wrapped is valid.
|
| -// Specifically, it checks that a vtable of the DOM object is equal to
|
| -// a vtable of an expected class.
|
| -// Due to a dangling pointer, the DOM object you are wrapping might be
|
| -// already freed or realloced. If freed, the check will fail because
|
| -// a free list pointer should be stored at the head of the DOM object.
|
| -// If realloced, the check will fail because the vtable of the DOM object
|
| -// differs from the expected vtable (unless the same class of DOM object
|
| -// is realloced on the slot).
|
| -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)
|
| -
|
| #if defined(OS_WIN)
|
| // In ScriptWrappable, the use of extern function prototypes inside templated static methods has an issue on windows.
|
| // These prototypes do not pick up the surrounding namespace, so drop out of WebCore as a workaround.
|
| @@ -283,10 +251,6 @@ v8::Handle<v8::Object> V8TestEventTarget::createWrapper(PassRefPtr<TestEventTarg
|
| 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(), isolate);
|
| if (UNLIKELY(wrapper.IsEmpty()))
|
| return wrapper;
|
|
|