Index: Source/bindings/tests/results/V8TestInterface2.h |
diff --git a/Source/bindings/tests/results/V8TestInterface2.h b/Source/bindings/tests/results/V8TestInterface2.h |
index b52cf786994d69519e9c3b663f9c443136010828..13ff938079062a88b8c2d42ba40f2008df9f0578 100644 |
--- a/Source/bindings/tests/results/V8TestInterface2.h |
+++ b/Source/bindings/tests/results/V8TestInterface2.h |
@@ -7,6 +7,7 @@ |
#ifndef V8TestInterface2_h |
#define V8TestInterface2_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,22 +23,22 @@ public: |
static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
static TestInterface2* toNative(v8::Handle<v8::Object> object) |
{ |
- return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
+ return fromInternalPointer(blink::toInternalPointer(object)); |
} |
static TestInterface2* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>); |
static const WrapperTypeInfo wrapperTypeInfo; |
- static void derefObject(void*); |
- static void visitDOMWrapper(void*, const v8::Persistent<v8::Object>&, v8::Isolate*); |
+ static void derefObject(ScriptWrappableBase* internalPointer); |
+ static void visitDOMWrapper(ScriptWrappableBase* internalPointer, const v8::Persistent<v8::Object>&, v8::Isolate*); |
static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
- static inline void* toInternalPointer(TestInterface2* impl) |
+ static inline ScriptWrappableBase* toInternalPointer(TestInterface2* impl) |
{ |
- return impl; |
+ return reinterpret_cast<ScriptWrappableBase*>(static_cast<void*>(impl)); |
} |
- static inline TestInterface2* fromInternalPointer(void* object) |
+ static inline TestInterface2* fromInternalPointer(ScriptWrappableBase* internalPointer) |
{ |
- return static_cast<TestInterface2*>(object); |
+ return reinterpret_cast<TestInterface2*>(static_cast<void*>(internalPointer)); |
} |
static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestInterface2*, v8::Isolate*) { } |
static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*) { } |