Title: [133954] trunk/Source/WebCore
Revision
133954
Author
jsb...@chromium.org
Date
2012-11-08 14:35:38 -0800 (Thu, 08 Nov 2012)

Log Message

Unreviewed, rolling out r133945.
http://trac.webkit.org/changeset/133945
https://bugs.webkit.org/show_bug.cgi?id=101645

Numerous layout and unit test failures (Requested by
jsbell|gardener on #webkit).

Patch by Sheriff Bot <webkit.review....@gmail.com> on 2012-11-08

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateHeader):
* bindings/scripts/test/V8/V8Float64Array.h:
(WebCore::V8Float64Array::toNative):
* bindings/scripts/test/V8/V8TestActiveDOMObject.h:
(WebCore::V8TestActiveDOMObject::toNative):
* bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
(WebCore::V8TestCustomNamedGetter::toNative):
* bindings/scripts/test/V8/V8TestEventConstructor.h:
(WebCore::V8TestEventConstructor::toNative):
* bindings/scripts/test/V8/V8TestEventTarget.h:
(WebCore::V8TestEventTarget::toNative):
* bindings/scripts/test/V8/V8TestException.h:
(WebCore::V8TestException::toNative):
* bindings/scripts/test/V8/V8TestInterface.h:
(WebCore::V8TestInterface::toNative):
* bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
(WebCore::V8TestMediaQueryListListener::toNative):
* bindings/scripts/test/V8/V8TestNamedConstructor.h:
(WebCore::V8TestNamedConstructor::toNative):
* bindings/scripts/test/V8/V8TestNode.h:
(WebCore::V8TestNode::toNative):
* bindings/scripts/test/V8/V8TestObj.h:
(WebCore::V8TestObj::toNative):
* bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
(WebCore::V8TestSerializedScriptValueInterface::toNative):
* bindings/v8/NPV8Object.cpp:
(WebCore::v8ObjectToNPObject):
(WebCore::npCreateV8ScriptObject):
* bindings/v8/V8Collection.h:
(WebCore::toNativeCollection):
* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::setIsolatedWorldField):
(WebCore::V8DOMWindowShell::enteredIsolatedWorldContext):
* bindings/v8/V8DOMWrapper.cpp:
(WebCore::V8DOMWrapper::isWrapperOfType):
* bindings/v8/V8DOMWrapper.h:
(WebCore::V8DOMWrapper::setDOMWrapper):
(WebCore::V8DOMWrapper::clearDOMWrapper):
* bindings/v8/WrapperTypeInfo.h:
(WebCore::toNative):
(WebCore::toWrapperTypeInfo):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (133953 => 133954)


--- trunk/Source/WebCore/ChangeLog	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/ChangeLog	2012-11-08 22:35:38 UTC (rev 133954)
@@ -1,3 +1,55 @@
+2012-11-08  Sheriff Bot  <webkit.review....@gmail.com>
+
+        Unreviewed, rolling out r133945.
+        http://trac.webkit.org/changeset/133945
+        https://bugs.webkit.org/show_bug.cgi?id=101645
+
+        Numerous layout and unit test failures (Requested by
+        jsbell|gardener on #webkit).
+
+        * bindings/scripts/CodeGeneratorV8.pm:
+        (GenerateHeader):
+        * bindings/scripts/test/V8/V8Float64Array.h:
+        (WebCore::V8Float64Array::toNative):
+        * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
+        (WebCore::V8TestActiveDOMObject::toNative):
+        * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
+        (WebCore::V8TestCustomNamedGetter::toNative):
+        * bindings/scripts/test/V8/V8TestEventConstructor.h:
+        (WebCore::V8TestEventConstructor::toNative):
+        * bindings/scripts/test/V8/V8TestEventTarget.h:
+        (WebCore::V8TestEventTarget::toNative):
+        * bindings/scripts/test/V8/V8TestException.h:
+        (WebCore::V8TestException::toNative):
+        * bindings/scripts/test/V8/V8TestInterface.h:
+        (WebCore::V8TestInterface::toNative):
+        * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
+        (WebCore::V8TestMediaQueryListListener::toNative):
+        * bindings/scripts/test/V8/V8TestNamedConstructor.h:
+        (WebCore::V8TestNamedConstructor::toNative):
+        * bindings/scripts/test/V8/V8TestNode.h:
+        (WebCore::V8TestNode::toNative):
+        * bindings/scripts/test/V8/V8TestObj.h:
+        (WebCore::V8TestObj::toNative):
+        * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
+        (WebCore::V8TestSerializedScriptValueInterface::toNative):
+        * bindings/v8/NPV8Object.cpp:
+        (WebCore::v8ObjectToNPObject):
+        (WebCore::npCreateV8ScriptObject):
+        * bindings/v8/V8Collection.h:
+        (WebCore::toNativeCollection):
+        * bindings/v8/V8DOMWindowShell.cpp:
+        (WebCore::setIsolatedWorldField):
+        (WebCore::V8DOMWindowShell::enteredIsolatedWorldContext):
+        * bindings/v8/V8DOMWrapper.cpp:
+        (WebCore::V8DOMWrapper::isWrapperOfType):
+        * bindings/v8/V8DOMWrapper.h:
+        (WebCore::V8DOMWrapper::setDOMWrapper):
+        (WebCore::V8DOMWrapper::clearDOMWrapper):
+        * bindings/v8/WrapperTypeInfo.h:
+        (WebCore::toNative):
+        (WebCore::toWrapperTypeInfo):
+
 2012-11-01  Filip Pizlo  <fpi...@apple.com>
 
         JSC should infer when indexed storage contains only integers or doubles

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm	2012-11-08 22:35:38 UTC (rev 133954)
@@ -379,7 +379,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static ${nativeType}* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<${nativeType}*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<${nativeType}*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(${nativeType}*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -40,7 +40,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static Float64Array* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<Float64Array*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<Float64Array*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(Float64Array*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -39,7 +39,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestActiveDOMObject* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestActiveDOMObject*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestActiveDOMObject*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestActiveDOMObject*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -39,7 +39,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestCustomNamedGetter* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestCustomNamedGetter*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestCustomNamedGetter*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestCustomNamedGetter*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventConstructor.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventConstructor.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventConstructor.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -40,7 +40,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestEventConstructor* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestEventConstructor*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestEventConstructor*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestEventConstructor*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -39,7 +39,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestEventTarget* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestEventTarget*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestEventTarget*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestEventTarget*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestException.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestException.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestException.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -39,7 +39,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestException* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestException*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestException*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestException*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -41,7 +41,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestInterface* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestInterface*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestInterface*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestInterface*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -39,7 +39,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestMediaQueryListListener* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestMediaQueryListListener*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestMediaQueryListListener*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestMediaQueryListListener*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -45,7 +45,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestNamedConstructor* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestNamedConstructor*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestNamedConstructor*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestNamedConstructor*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -39,7 +39,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestNode* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestNode*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestNode*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -39,7 +39,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestObj* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestObj*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestObj*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestObj*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -41,7 +41,7 @@
     static v8::Persistent<v8::FunctionTemplate> GetTemplate();
     static TestSerializedScriptValueInterface* toNative(v8::Handle<v8::Object> object)
     {
-        return reinterpret_cast<TestSerializedScriptValueInterface*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+        return reinterpret_cast<TestSerializedScriptValueInterface*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
     }
     inline static v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface*, v8::Handle<v8::Object> creationContext = v8::Handle<v8::Object>(), v8::Isolate* = 0);
     static void derefObject(void*);

Modified: trunk/Source/WebCore/bindings/v8/NPV8Object.cpp (133953 => 133954)


--- trunk/Source/WebCore/bindings/v8/NPV8Object.cpp	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/v8/NPV8Object.cpp	2012-11-08 22:35:38 UTC (rev 133954)
@@ -120,7 +120,7 @@
 
 NPObject* v8ObjectToNPObject(v8::Handle<v8::Object> object)
 {
-    return reinterpret_cast<NPObject*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); 
+    return reinterpret_cast<NPObject*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex)); 
 }
 
 static NPClass V8NPObjectClass = { NP_CLASS_STRUCT_VERSION,
@@ -135,7 +135,7 @@
 {
     // Check to see if this object is already wrapped.
     if (object->InternalFieldCount() == npObjectInternalFieldCount) {
-        WrapperTypeInfo* typeInfo = static_cast<WrapperTypeInfo*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperTypeIndex));
+        WrapperTypeInfo* typeInfo = static_cast<WrapperTypeInfo*>(object->GetPointerFromInternalField(v8DOMWrapperTypeIndex));
         if (typeInfo == npObjectTypeInfo()) {
 
             NPObject* returnValue = v8ObjectToNPObject(object);

Modified: trunk/Source/WebCore/bindings/v8/V8Collection.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/v8/V8Collection.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/v8/V8Collection.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -50,7 +50,7 @@
 
 template<class Collection> static Collection* toNativeCollection(v8::Local<v8::Object> object)
 {
-    return reinterpret_cast<Collection*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
+    return reinterpret_cast<Collection*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
 }
 
 template<class T> static v8::Handle<v8::Value> getV8Object(PassRefPtr<T> implementation, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)

Modified: trunk/Source/WebCore/bindings/v8/V8DOMWindowShell.cpp (133953 => 133954)


--- trunk/Source/WebCore/bindings/v8/V8DOMWindowShell.cpp	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/v8/V8DOMWindowShell.cpp	2012-11-08 22:35:38 UTC (rev 133954)
@@ -171,12 +171,12 @@
 
 static void setIsolatedWorldField(V8DOMWindowShell* shell, v8::Local<v8::Context> context)
 {
-    toInnerGlobalObject(context)->SetAlignedPointerInInternalField(V8DOMWindow::enteredIsolatedWorldIndex, shell);
+    toInnerGlobalObject(context)->SetPointerInInternalField(V8DOMWindow::enteredIsolatedWorldIndex, shell);
 }
 
 V8DOMWindowShell* V8DOMWindowShell::enteredIsolatedWorldContext()
 {
-    return static_cast<V8DOMWindowShell*>(toInnerGlobalObject(v8::Context::GetEntered())->GetAlignedPointerFromInternalField(V8DOMWindow::enteredIsolatedWorldIndex));
+    return static_cast<V8DOMWindowShell*>(toInnerGlobalObject(v8::Context::GetEntered())->GetPointerFromInternalField(V8DOMWindow::enteredIsolatedWorldIndex));
 }
 
 static void setInjectedScriptContextDebugId(v8::Handle<v8::Context> targetContext, int debugId)

Modified: trunk/Source/WebCore/bindings/v8/V8DOMWrapper.cpp (133953 => 133954)


--- trunk/Source/WebCore/bindings/v8/V8DOMWrapper.cpp	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/v8/V8DOMWrapper.cpp	2012-11-08 22:35:38 UTC (rev 133954)
@@ -157,7 +157,7 @@
     v8::Handle<v8::Value> wrapper = object->GetInternalField(v8DOMWrapperObjectIndex);
     ASSERT_UNUSED(wrapper, wrapper->IsNumber() || wrapper->IsExternal());
 
-    WrapperTypeInfo* typeInfo = static_cast<WrapperTypeInfo*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperTypeIndex));
+    WrapperTypeInfo* typeInfo = static_cast<WrapperTypeInfo*>(object->GetPointerFromInternalField(v8DOMWrapperTypeIndex));
     return typeInfo == type;
 }
 

Modified: trunk/Source/WebCore/bindings/v8/V8DOMWrapper.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/v8/V8DOMWrapper.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/v8/V8DOMWrapper.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -69,16 +69,16 @@
         static void setDOMWrapper(v8::Handle<v8::Object> object, WrapperTypeInfo* type, void* cptr)
         {
             ASSERT(object->InternalFieldCount() >= 2);
-            object->SetAlignedPointerInInternalField(v8DOMWrapperObjectIndex, cptr);
-            object->SetAlignedPointerInInternalField(v8DOMWrapperTypeIndex, type);
+            object->SetPointerInInternalField(v8DOMWrapperObjectIndex, cptr);
+            object->SetPointerInInternalField(v8DOMWrapperTypeIndex, type);
         }
 
         static void clearDOMWrapper(v8::Handle<v8::Object> object, WrapperTypeInfo* type)
         {
             ASSERT(object->InternalFieldCount() >= 2);
             ASSERT(type);
-            object->SetAlignedPointerInInternalField(v8DOMWrapperTypeIndex, type);
-            object->SetAlignedPointerInInternalField(v8DOMWrapperObjectIndex, 0);
+            object->SetPointerInInternalField(v8DOMWrapperTypeIndex, type);
+            object->SetPointerInInternalField(v8DOMWrapperObjectIndex, 0);
         }
 
         static v8::Handle<v8::Object> lookupDOMWrapper(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Handle<v8::Object> object)

Modified: trunk/Source/WebCore/bindings/v8/WrapperTypeInfo.h (133953 => 133954)


--- trunk/Source/WebCore/bindings/v8/WrapperTypeInfo.h	2012-11-08 22:28:25 UTC (rev 133953)
+++ trunk/Source/WebCore/bindings/v8/WrapperTypeInfo.h	2012-11-08 22:35:38 UTC (rev 133954)
@@ -122,13 +122,13 @@
     inline void* toNative(v8::Handle<v8::Object> object)
     {
         ASSERT(object->InternalFieldCount() >= v8DOMWrapperObjectIndex);
-        return object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex);
+        return object->GetPointerFromInternalField(v8DOMWrapperObjectIndex);
     }
 
     inline WrapperTypeInfo* toWrapperTypeInfo(v8::Handle<v8::Object> object)
     {
         ASSERT(object->InternalFieldCount() >= v8DOMWrapperTypeIndex);
-        return static_cast<WrapperTypeInfo*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperTypeIndex));
+        return static_cast<WrapperTypeInfo*>(object->GetPointerFromInternalField(v8DOMWrapperTypeIndex));
     }
 
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to