Index: Source/bindings/tests/results/V8TestEvent.h |
diff --git a/Source/bindings/tests/results/V8TestEvent.h b/Source/bindings/tests/results/V8TestEvent.h |
index 467ef74ffc0aa2955249847c98554958e016252a..b1ba4ee847e2a5c3c5483aab2f51141789cefbf0 100644 |
--- a/Source/bindings/tests/results/V8TestEvent.h |
+++ b/Source/bindings/tests/results/V8TestEvent.h |
@@ -36,11 +36,20 @@ public: |
static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWorldType); |
static TestEvent* toNative(v8::Handle<v8::Object> object) |
{ |
- return reinterpret_cast<TestEvent*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
+ return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
} |
static void derefObject(void*); |
static WrapperTypeInfo info; |
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
+ static inline void* toInternalPointer(TestEvent* impl) |
+ { |
+ return V8Event::toInternalPointer(impl); |
+ } |
+ |
+ static inline TestEvent* fromInternalPointer(void* object) |
+ { |
+ return static_cast<TestEvent*>(V8Event::fromInternalPointer(object)); |
+ } |
static void installPerContextProperties(v8::Handle<v8::Object>, TestEvent*, v8::Isolate*) { } |
static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8::Isolate*) { } |
private: |
@@ -58,7 +67,7 @@ public: |
inline v8::Handle<v8::Object> wrap(TestEvent* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
ASSERT(impl); |
- ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); |
+ ASSERT(DOMDataStore::getWrapper<V8TestEvent>(impl, isolate).IsEmpty()); |
if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) { |
const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObject(impl); |
// Might be a XXXConstructor::info instead of an XXX::info. These will both have |
@@ -72,7 +81,7 @@ inline v8::Handle<v8::Value> toV8(TestEvent* impl, v8::Handle<v8::Object> creati |
{ |
if (UNLIKELY(!impl)) |
return v8NullWithCheck(isolate); |
- v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); |
+ v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEvent>(impl, isolate); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, creationContext, isolate); |
@@ -83,7 +92,7 @@ inline v8::Handle<v8::Value> toV8ForMainWorld(TestEvent* impl, v8::Handle<v8::Ob |
ASSERT(worldType(isolate) == MainWorld); |
if (UNLIKELY(!impl)) |
return v8NullWithCheck(isolate); |
- v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapperForMainWorld(impl); |
+ v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapperForMainWorld<V8TestEvent>(impl); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, creationContext, isolate); |
@@ -94,7 +103,7 @@ inline v8::Handle<v8::Value> toV8Fast(TestEvent* impl, const HolderContainer& co |
{ |
if (UNLIKELY(!impl)) |
return v8::Null(container.GetIsolate()); |
- v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperFast(impl, container, wrappable); |
+ v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperFast<V8TestEvent>(impl, container, wrappable); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, container.Holder(), container.GetIsolate()); |
@@ -106,7 +115,7 @@ inline v8::Handle<v8::Value> toV8FastForMainWorld(TestEvent* impl, const HolderC |
ASSERT(worldType(container.GetIsolate()) == MainWorld); |
if (UNLIKELY(!impl)) |
return v8::Null(container.GetIsolate()); |
- v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperForMainWorld(impl); |
+ v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperForMainWorld<V8TestEvent>(impl); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, container.Holder(), container.GetIsolate()); |