[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

eric at webkit.org eric at webkit.org
Thu Apr 8 00:30:21 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit 10d7966816efb1df2a3eca5cf78273ca6ed47ee1
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Dec 9 23:01:31 2009 +0000

    2009-12-09  Zoltan Herczeg  <zherczeg at inf.u-szeged.hu>
    
            Reviewed by Eric Seidel.
    
            https://bugs.webkit.org/show_bug.cgi?id=31930
    
            Update to r51457. ASSERTs changed to COMPILE_ASSERTs.
            The speedup is 25%.
    
            * runtime/JSGlobalData.cpp:
            (JSC::VPtrSet::VPtrSet):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51928 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 352ce76..7940139 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,15 @@
+2009-12-09  Zoltan Herczeg  <zherczeg at inf.u-szeged.hu>
+
+        Reviewed by Eric Seidel.
+
+        https://bugs.webkit.org/show_bug.cgi?id=31930
+
+        Update to r51457. ASSERTs changed to COMPILE_ASSERTs.
+        The speedup is 25%.
+
+        * runtime/JSGlobalData.cpp:
+        (JSC::VPtrSet::VPtrSet):
+
 2009-12-09  Steve Block  <steveblock at google.com>
 
         Reviewed by Adam Barth.
diff --git a/JavaScriptCore/runtime/JSGlobalData.cpp b/JavaScriptCore/runtime/JSGlobalData.cpp
index 1e4593d..234449f 100644
--- a/JavaScriptCore/runtime/JSGlobalData.cpp
+++ b/JavaScriptCore/runtime/JSGlobalData.cpp
@@ -85,22 +85,22 @@ VPtrSet::VPtrSet()
     CollectorCell cell;
     void* storage = &cell;
 
-    ASSERT(sizeof(JSArray) <= sizeof(CollectorCell));
+    COMPILE_ASSERT(sizeof(JSArray) <= sizeof(CollectorCell), sizeof_JSArray_must_be_less_than_CollectorCell);
     JSCell* jsArray = new (storage) JSArray(JSArray::createStructure(jsNull()));
     jsArrayVPtr = jsArray->vptr();
     jsArray->~JSCell();
 
-    ASSERT(sizeof(JSByteArray) <= sizeof(CollectorCell));
+    COMPILE_ASSERT(sizeof(JSByteArray) <= sizeof(CollectorCell), sizeof_JSByteArray_must_be_less_than_CollectorCell);
     JSCell* jsByteArray = new (storage) JSByteArray(JSByteArray::VPtrStealingHack);
     jsByteArrayVPtr = jsByteArray->vptr();
     jsByteArray->~JSCell();
 
-    ASSERT(sizeof(JSString) <= sizeof(CollectorCell));
+    COMPILE_ASSERT(sizeof(JSString) <= sizeof(CollectorCell), sizeof_JSString_must_be_less_than_CollectorCell);
     JSCell* jsString = new (storage) JSString(JSString::VPtrStealingHack);
     jsStringVPtr = jsString->vptr();
     jsString->~JSCell();
 
-    ASSERT(sizeof(JSFunction) <= sizeof(CollectorCell));
+    COMPILE_ASSERT(sizeof(JSFunction) <= sizeof(CollectorCell), sizeof_JSFunction_must_be_less_than_CollectorCell);
     JSCell* jsFunction = new (storage) JSFunction(JSFunction::createStructure(jsNull()));
     jsFunctionVPtr = jsFunction->vptr();
     jsFunction->~JSCell();

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list