Index: Source/bindings/tests/results/V8TestException.h |
diff --git a/Source/bindings/tests/results/V8TestException.h b/Source/bindings/tests/results/V8TestException.h |
index 54c41a7caa62cd5c225116905c8ca65de6b843c3..3872bd2c2de804278f1450e817e31956ef15a9a7 100644 |
--- a/Source/bindings/tests/results/V8TestException.h |
+++ b/Source/bindings/tests/results/V8TestException.h |
@@ -7,6 +7,7 @@ |
#ifndef V8TestException_h |
#define V8TestException_h |
+#include "bindings/core/v8/ScriptWrappable.h" |
#include "bindings/core/v8/V8Binding.h" |
#include "bindings/core/v8/V8DOMWrapper.h" |
#include "bindings/core/v8/WrapperTypeInfo.h" |
@@ -22,20 +23,20 @@ public: |
static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
static TestException* toNative(v8::Handle<v8::Object> object) |
{ |
- return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
+ return fromInternalPointer(blink::toInternalPointer(object)); |
} |
static TestException* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>); |
static const WrapperTypeInfo wrapperTypeInfo; |
- static void derefObject(void*); |
+ static void derefObject(ScriptWrappableBase* internalPointer); |
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
- static inline void* toInternalPointer(TestException* impl) |
+ static inline ScriptWrappableBase* toInternalPointer(TestException* impl) |
{ |
- return impl; |
+ return reinterpret_cast<ScriptWrappableBase*>(static_cast<void*>(impl)); |
} |
- static inline TestException* fromInternalPointer(void* object) |
+ static inline TestException* fromInternalPointer(ScriptWrappableBase* internalPointer) |
{ |
- return static_cast<TestException*>(object); |
+ return reinterpret_cast<TestException*>(static_cast<void*>(internalPointer)); |
} |
static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestException*, v8::Isolate*) { } |
static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*) { } |