Index: Source/bindings/tests/results/V8TestOverloadedConstructors.h |
diff --git a/Source/bindings/tests/results/V8TestOverloadedConstructors.h b/Source/bindings/tests/results/V8TestOverloadedConstructors.h |
index 8e0e261ac9aa67cc6e1e6d242101b2b91de826cc..10eacc38d94c5de54582cbdf2bde37bbff712af3 100644 |
--- a/Source/bindings/tests/results/V8TestOverloadedConstructors.h |
+++ b/Source/bindings/tests/results/V8TestOverloadedConstructors.h |
@@ -35,12 +35,21 @@ public: |
static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWorldType); |
static TestOverloadedConstructors* toNative(v8::Handle<v8::Object> object) |
{ |
- return reinterpret_cast<TestOverloadedConstructors*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
+ return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
} |
static void derefObject(void*); |
static WrapperTypeInfo info; |
static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
+ static inline void* toInternalPointer(TestOverloadedConstructors* impl) |
+ { |
+ return impl; |
+ } |
+ |
+ static inline TestOverloadedConstructors* fromInternalPointer(void* object) |
+ { |
+ return static_cast<TestOverloadedConstructors*>(object); |
+ } |
static void installPerContextProperties(v8::Handle<v8::Object>, TestOverloadedConstructors*, v8::Isolate*) { } |
static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8::Isolate*) { } |
private: |
@@ -58,7 +67,7 @@ public: |
inline v8::Handle<v8::Object> wrap(TestOverloadedConstructors* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
ASSERT(impl); |
- ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); |
+ ASSERT(DOMDataStore::getWrapper<V8TestOverloadedConstructors>(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(TestOverloadedConstructors* impl, v8::Handle<v |
{ |
if (UNLIKELY(!impl)) |
return v8NullWithCheck(isolate); |
- v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); |
+ v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestOverloadedConstructors>(impl, isolate); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, creationContext, isolate); |
@@ -83,7 +92,7 @@ inline v8::Handle<v8::Value> toV8ForMainWorld(TestOverloadedConstructors* impl, |
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<V8TestOverloadedConstructors>(impl); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, creationContext, isolate); |
@@ -94,7 +103,7 @@ inline v8::Handle<v8::Value> toV8Fast(TestOverloadedConstructors* impl, const Ho |
{ |
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<V8TestOverloadedConstructors>(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(TestOverloadedConstructors* im |
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<V8TestOverloadedConstructors>(impl); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, container.Holder(), container.GetIsolate()); |