Title: [97127] trunk/Source/WebCore
- Revision
- 97127
- Author
- [email protected]
- Date
- 2011-10-11 00:00:13 -0700 (Tue, 11 Oct 2011)
Log Message
Update test results.
* bindings/scripts/test/V8/V8TestInterface.h:
(WebCore::V8TestInterface::existingWrapper):
(WebCore::V8TestInterface::wrap):
* bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
(WebCore::V8TestMediaQueryListListener::existingWrapper):
(WebCore::V8TestMediaQueryListListener::wrap):
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::TestObjInternal::readOnlyTestObjAttrAttrGetter):
(WebCore::TestObjInternal::cachedAttribute1AttrGetter):
(WebCore::TestObjInternal::cachedAttribute2AttrGetter):
* bindings/scripts/test/V8/V8TestObj.h:
(WebCore::V8TestObj::existingWrapper):
(WebCore::V8TestObj::wrap):
* bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
(WebCore::V8TestSerializedScriptValueInterface::existingWrapper):
(WebCore::V8TestSerializedScriptValueInterface::wrap):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (97126 => 97127)
--- trunk/Source/WebCore/ChangeLog 2011-10-11 05:33:44 UTC (rev 97126)
+++ trunk/Source/WebCore/ChangeLog 2011-10-11 07:00:13 UTC (rev 97127)
@@ -1,3 +1,24 @@
+2011-10-10 Adam Barth <[email protected]>
+
+ Update test results.
+
+ * bindings/scripts/test/V8/V8TestInterface.h:
+ (WebCore::V8TestInterface::existingWrapper):
+ (WebCore::V8TestInterface::wrap):
+ * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
+ (WebCore::V8TestMediaQueryListListener::existingWrapper):
+ (WebCore::V8TestMediaQueryListListener::wrap):
+ * bindings/scripts/test/V8/V8TestObj.cpp:
+ (WebCore::TestObjInternal::readOnlyTestObjAttrAttrGetter):
+ (WebCore::TestObjInternal::cachedAttribute1AttrGetter):
+ (WebCore::TestObjInternal::cachedAttribute2AttrGetter):
+ * bindings/scripts/test/V8/V8TestObj.h:
+ (WebCore::V8TestObj::existingWrapper):
+ (WebCore::V8TestObj::wrap):
+ * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
+ (WebCore::V8TestSerializedScriptValueInterface::existingWrapper):
+ (WebCore::V8TestSerializedScriptValueInterface::wrap):
+
2011-10-10 Abhishek Arya <[email protected]>
Style not updated on text fragment in :first-letter
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.h (97126 => 97127)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.h 2011-10-11 05:33:44 UTC (rev 97126)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.h 2011-10-11 07:00:13 UTC (rev 97127)
@@ -47,14 +47,20 @@
static WrapperTypeInfo info;
static v8::Handle<v8::Value> constructorCallback(const v8::Arguments& args);
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
+ static v8::Handle<v8::Object> existingWrapper(TestInterface*);
+
private:
static v8::Handle<v8::Object> wrapSlow(TestInterface*);
};
+ALWAYS_INLINE v8::Handle<v8::Object> V8TestInterface::existingWrapper(TestInterface* impl)
+{
+ return getDOMObjectMap().get(impl);
+}
v8::Handle<v8::Object> V8TestInterface::wrap(TestInterface* impl)
{
- v8::Handle<v8::Object> wrapper = getDOMObjectMap().get(impl);
+ v8::Handle<v8::Object> wrapper = existingWrapper(impl);
if (!wrapper.IsEmpty())
return wrapper;
return V8TestInterface::wrapSlow(impl);
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h (97126 => 97127)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h 2011-10-11 05:33:44 UTC (rev 97126)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h 2011-10-11 07:00:13 UTC (rev 97127)
@@ -44,14 +44,20 @@
static void derefObject(void*);
static WrapperTypeInfo info;
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
+ static v8::Handle<v8::Object> existingWrapper(TestMediaQueryListListener*);
+
private:
static v8::Handle<v8::Object> wrapSlow(TestMediaQueryListListener*);
};
+ALWAYS_INLINE v8::Handle<v8::Object> V8TestMediaQueryListListener::existingWrapper(TestMediaQueryListListener* impl)
+{
+ return getDOMObjectMap().get(impl);
+}
v8::Handle<v8::Object> V8TestMediaQueryListListener::wrap(TestMediaQueryListListener* impl)
{
- v8::Handle<v8::Object> wrapper = getDOMObjectMap().get(impl);
+ v8::Handle<v8::Object> wrapper = existingWrapper(impl);
if (!wrapper.IsEmpty())
return wrapper;
return V8TestMediaQueryListListener::wrapSlow(impl);
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp (97126 => 97127)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp 2011-10-11 05:33:44 UTC (rev 97126)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp 2011-10-11 07:00:13 UTC (rev 97127)
@@ -86,7 +86,7 @@
INC_STATS("DOM.TestObj.readOnlyTestObjAttr._get");
TestObj* imp = V8TestObj::toNative(info.Holder());
RefPtr<TestObj> result = imp->readOnlyTestObjAttr();
- v8::Handle<v8::Value> wrapper = result.get() ? getDOMObjectMap().get(result.get()) : v8::Handle<v8::Value>();
+ v8::Handle<v8::Value> wrapper = result.get() ? V8TestObj::existingWrapper(result.get()) : v8::Handle<v8::Object>();
if (wrapper.IsEmpty()) {
wrapper = toV8(result.get());
if (!wrapper.IsEmpty())
@@ -587,7 +587,7 @@
INC_STATS("DOM.TestObj.cachedAttribute1._get");
TestObj* imp = V8TestObj::toNative(info.Holder());
RefPtr<any> result = imp->cachedAttribute1();
- v8::Handle<v8::Value> wrapper = result.get() ? getDOMObjectMap().get(result.get()) : v8::Handle<v8::Value>();
+ v8::Handle<v8::Value> wrapper = result.get() ? V8any::existingWrapper(result.get()) : v8::Handle<v8::Object>();
if (wrapper.IsEmpty()) {
wrapper = toV8(result.get());
if (!wrapper.IsEmpty())
@@ -601,7 +601,7 @@
INC_STATS("DOM.TestObj.cachedAttribute2._get");
TestObj* imp = V8TestObj::toNative(info.Holder());
RefPtr<any> result = imp->cachedAttribute2();
- v8::Handle<v8::Value> wrapper = result.get() ? getDOMObjectMap().get(result.get()) : v8::Handle<v8::Value>();
+ v8::Handle<v8::Value> wrapper = result.get() ? V8any::existingWrapper(result.get()) : v8::Handle<v8::Object>();
if (wrapper.IsEmpty()) {
wrapper = toV8(result.get());
if (!wrapper.IsEmpty())
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.h (97126 => 97127)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.h 2011-10-11 05:33:44 UTC (rev 97126)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.h 2011-10-11 07:00:13 UTC (rev 97127)
@@ -49,14 +49,20 @@
static v8::Handle<v8::Value> customAttrAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info);
static void customAttrAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
+ static v8::Handle<v8::Object> existingWrapper(TestObj*);
+
private:
static v8::Handle<v8::Object> wrapSlow(TestObj*);
};
+ALWAYS_INLINE v8::Handle<v8::Object> V8TestObj::existingWrapper(TestObj* impl)
+{
+ return getDOMObjectMap().get(impl);
+}
v8::Handle<v8::Object> V8TestObj::wrap(TestObj* impl)
{
- v8::Handle<v8::Object> wrapper = getDOMObjectMap().get(impl);
+ v8::Handle<v8::Object> wrapper = existingWrapper(impl);
if (!wrapper.IsEmpty())
return wrapper;
return V8TestObj::wrapSlow(impl);
Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h (97126 => 97127)
--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h 2011-10-11 05:33:44 UTC (rev 97126)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h 2011-10-11 07:00:13 UTC (rev 97127)
@@ -46,14 +46,20 @@
static void derefObject(void*);
static WrapperTypeInfo info;
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
+ static v8::Handle<v8::Object> existingWrapper(TestSerializedScriptValueInterface*);
+
private:
static v8::Handle<v8::Object> wrapSlow(TestSerializedScriptValueInterface*);
};
+ALWAYS_INLINE v8::Handle<v8::Object> V8TestSerializedScriptValueInterface::existingWrapper(TestSerializedScriptValueInterface* impl)
+{
+ return getDOMObjectMap().get(impl);
+}
v8::Handle<v8::Object> V8TestSerializedScriptValueInterface::wrap(TestSerializedScriptValueInterface* impl)
{
- v8::Handle<v8::Object> wrapper = getDOMObjectMap().get(impl);
+ v8::Handle<v8::Object> wrapper = existingWrapper(impl);
if (!wrapper.IsEmpty())
return wrapper;
return V8TestSerializedScriptValueInterface::wrapSlow(impl);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes