[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

antonm at chromium.org antonm at chromium.org
Wed Dec 22 12:54:51 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit a6cbaa4b3459cdaf313da5093de14c676abbd88f
Author: antonm at chromium.org <antonm at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Sep 1 16:50:29 2010 +0000

    2010-09-01  Anton Muhin  <antonm at chromium.org>
    
            Reviewed by Dimitri Glazkov.
    
            [v8] Use Vector and DEFINE_STATIC_LOCAL instead of plain static array.
            https://bugs.webkit.org/show_bug.cgi?id=45040
    
            By code guidelines all the statics should be wrapped into appropriate macro.
    
            * bindings/v8/V8Binding.cpp:
            (WebCore::int32ToWebCoreString):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66610 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index b9fbda3..779de75 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-09-01  Anton Muhin  <antonm at chromium.org>
+
+        Reviewed by Dimitri Glazkov.
+
+        [v8] Use Vector and DEFINE_STATIC_LOCAL instead of plain static array.
+        https://bugs.webkit.org/show_bug.cgi?id=45040
+
+        By code guidelines all the statics should be wrapped into appropriate macro.
+
+        * bindings/v8/V8Binding.cpp:
+        (WebCore::int32ToWebCoreString):
+
 2010-09-01  Alejandro G. Castro  <alex at igalia.com>
 
         Reviewed by Martin Robinson.
diff --git a/WebCore/bindings/v8/V8Binding.cpp b/WebCore/bindings/v8/V8Binding.cpp
index 734e07b..bfbc647 100644
--- a/WebCore/bindings/v8/V8Binding.cpp
+++ b/WebCore/bindings/v8/V8Binding.cpp
@@ -376,7 +376,7 @@ String int32ToWebCoreString(int value)
 
     // Most numbers used are <= 100. Even if they aren't used there's very little cost in using the space.
     const int kLowNumbers = 100;
-    static AtomicString lowNumbers[kLowNumbers + 1];
+    DEFINE_STATIC_LOCAL(Vector<AtomicString>, lowNumbers, (kLowNumbers + 1));
     String webCoreString;
     if (0 <= value && value <= kLowNumbers) {
         webCoreString = lowNumbers[value];

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list