| Index: Source/bindings/tests/results/V8TestTypedefs.h
|
| diff --git a/Source/bindings/tests/results/V8TestTypedefs.h b/Source/bindings/tests/results/V8TestTypedefs.h
|
| index fa32bbe5203322d0e73b73d990c08d125e3567af..8df64451ce5fa539627ef55b6efc4b3c2dfb6dcd 100644
|
| --- a/Source/bindings/tests/results/V8TestTypedefs.h
|
| +++ b/Source/bindings/tests/results/V8TestTypedefs.h
|
| @@ -35,12 +35,21 @@ public:
|
| static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWorldType);
|
| static TestTypedefs* toNative(v8::Handle<v8::Object> object)
|
| {
|
| - return reinterpret_cast<TestTypedefs*>(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(TestTypedefs* impl)
|
| + {
|
| + return impl;
|
| + }
|
| +
|
| + static inline TestTypedefs* fromInternalPointer(void* object)
|
| + {
|
| + return static_cast<TestTypedefs*>(object);
|
| + }
|
| static void installPerContextProperties(v8::Handle<v8::Object>, TestTypedefs*, v8::Isolate*) { }
|
| static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8::Isolate*) { }
|
| private:
|
| @@ -58,7 +67,7 @@ public:
|
| inline v8::Handle<v8::Object> wrap(TestTypedefs* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| {
|
| ASSERT(impl);
|
| - ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty());
|
| + ASSERT(DOMDataStore::getWrapper<V8TestTypedefs>(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(TestTypedefs* impl, v8::Handle<v8::Object> cre
|
| {
|
| if (UNLIKELY(!impl))
|
| return v8NullWithCheck(isolate);
|
| - v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate);
|
| + v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestTypedefs>(impl, isolate);
|
| if (!wrapper.IsEmpty())
|
| return wrapper;
|
| return wrap(impl, creationContext, isolate);
|
| @@ -83,7 +92,7 @@ inline v8::Handle<v8::Value> toV8ForMainWorld(TestTypedefs* impl, v8::Handle<v8:
|
| 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<V8TestTypedefs>(impl);
|
| if (!wrapper.IsEmpty())
|
| return wrapper;
|
| return wrap(impl, creationContext, isolate);
|
| @@ -94,7 +103,7 @@ inline v8::Handle<v8::Value> toV8Fast(TestTypedefs* impl, const HolderContainer&
|
| {
|
| 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<V8TestTypedefs>(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(TestTypedefs* impl, const Hold
|
| 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<V8TestTypedefs>(impl);
|
| if (!wrapper.IsEmpty())
|
| return wrapper;
|
| return wrap(impl, container.Holder(), container.GetIsolate());
|
|
|