Title: [124978] trunk/Source/WebCore
Revision
124978
Author
[email protected]
Date
2012-08-07 21:07:13 -0700 (Tue, 07 Aug 2012)

Log Message

[V8] Move V8BindingMacros.h from bindings/v8/custom/ to bindings/v8/
https://bugs.webkit.org/show_bug.cgi?id=93254

Reviewed by Eric Seidel.

V8BindingMacros.h should exist in bindings/v8/.
This patch also moves related enums from V8Binding.h to V8BindingMacros.h.

No tests. No change in behavior.

* WebCore.gypi:
* bindings/v8/V8BindingMacros.h: Renamed from Source/WebCore/bindings/v8/custom/V8BindingMacros.h.
(WebCore):

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (124977 => 124978)


--- trunk/Source/WebCore/ChangeLog	2012-08-08 04:01:25 UTC (rev 124977)
+++ trunk/Source/WebCore/ChangeLog	2012-08-08 04:07:13 UTC (rev 124978)
@@ -1,5 +1,21 @@
 2012-08-07  Kentaro Hara  <[email protected]>
 
+        [V8] Move V8BindingMacros.h from bindings/v8/custom/ to bindings/v8/
+        https://bugs.webkit.org/show_bug.cgi?id=93254
+
+        Reviewed by Eric Seidel.
+
+        V8BindingMacros.h should exist in bindings/v8/.
+        This patch also moves related enums from V8Binding.h to V8BindingMacros.h.
+
+        No tests. No change in behavior.
+
+        * WebCore.gypi:
+        * bindings/v8/V8BindingMacros.h: Renamed from Source/WebCore/bindings/v8/custom/V8BindingMacros.h.
+        (WebCore):
+
+2012-08-07  Kentaro Hara  <[email protected]>
+
         [V8] StringCache::m_lastStringImpl and StringCache::m_lastV8String should be in sync
         https://bugs.webkit.org/show_bug.cgi?id=93065
 

Modified: trunk/Source/WebCore/WebCore.gypi (124977 => 124978)


--- trunk/Source/WebCore/WebCore.gypi	2012-08-08 04:01:25 UTC (rev 124977)
+++ trunk/Source/WebCore/WebCore.gypi	2012-08-08 04:07:13 UTC (rev 124978)
@@ -2249,6 +2249,7 @@
             'bindings/v8/V8AbstractEventListener.h',
             'bindings/v8/V8Binding.cpp',
             'bindings/v8/V8Binding.h',
+            'bindings/v8/V8BindingMacros.h',
             'bindings/v8/V8BindingPerContextData.cpp',
             'bindings/v8/V8BindingPerContextData.h',
             'bindings/v8/V8ConfigureDOMAttributesAndMethods.cpp',
@@ -2311,7 +2312,6 @@
             'bindings/v8/custom/V8ArrayBufferViewCustom.h',
             'bindings/v8/custom/V8AudioBufferSourceNodeCustom.cpp',
             'bindings/v8/custom/V8AudioContextCustom.cpp',
-            'bindings/v8/custom/V8BindingMacros.h',
             'bindings/v8/custom/V8BlobCustom.cpp',
             'bindings/v8/custom/V8CSSRuleCustom.cpp',
             'bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp',

Modified: trunk/Source/WebCore/bindings/v8/V8Binding.h (124977 => 124978)


--- trunk/Source/WebCore/bindings/v8/V8Binding.h	2012-08-08 04:01:25 UTC (rev 124977)
+++ trunk/Source/WebCore/bindings/v8/V8Binding.h	2012-08-08 04:07:13 UTC (rev 124978)
@@ -638,11 +638,6 @@
         return V8ParameterBase::prepareBase();
     }
 
-    enum ParameterDefaultPolicy {
-        DefaultIsUndefined,
-        DefaultIsNullString
-    };
-
 } // namespace WebCore
 
 #endif // V8Binding_h

Copied: trunk/Source/WebCore/bindings/v8/V8BindingMacros.h (from rev 124977, trunk/Source/WebCore/bindings/v8/custom/V8BindingMacros.h) (0 => 124978)


--- trunk/Source/WebCore/bindings/v8/V8BindingMacros.h	                        (rev 0)
+++ trunk/Source/WebCore/bindings/v8/V8BindingMacros.h	2012-08-08 04:07:13 UTC (rev 124978)
@@ -0,0 +1,65 @@
+/*
+ * Copyright (C) 2010 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ *     * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ *     * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef V8BindingMacros_h
+#define V8BindingMacros_h
+
+namespace WebCore {
+
+enum ParameterDefaultPolicy {
+    DefaultIsUndefined,
+    DefaultIsNullString
+};
+
+#define EXCEPTION_BLOCK(type, var, value) \
+    type var;                             \
+    {                                     \
+        v8::TryCatch block;               \
+        var = (value);                    \
+        if (block.HasCaught())            \
+            return block.ReThrow();       \
+    }
+
+#define STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(type, var, value) \
+    type var(value);                                            \
+    if (!var.prepare())                                         \
+        return v8::Undefined();
+
+#define STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(type, var, value) \
+    type var(value);                                                 \
+    if (!var.prepare())                                              \
+        return;
+
+#define MAYBE_MISSING_PARAMETER(args, index, policy) \
+    (((policy) == DefaultIsNullString && (index) >= (args).Length()) ? (v8::Local<v8::Value>()) : ((args)[(index)]))
+
+} // namespace WebCore
+
+#endif // V8BindingMacros_h

Deleted: trunk/Source/WebCore/bindings/v8/custom/V8BindingMacros.h (124977 => 124978)


--- trunk/Source/WebCore/bindings/v8/custom/V8BindingMacros.h	2012-08-08 04:01:25 UTC (rev 124977)
+++ trunk/Source/WebCore/bindings/v8/custom/V8BindingMacros.h	2012-08-08 04:07:13 UTC (rev 124978)
@@ -1,51 +0,0 @@
-/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *     * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *     * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define EXCEPTION_BLOCK(type, var, value) \
-    type var;                             \
-    {                                     \
-        v8::TryCatch block;               \
-        var = (value);                    \
-        if (block.HasCaught())            \
-            return block.ReThrow();       \
-    }
-
-#define STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(type, var, value) \
-    type var(value);                                            \
-    if (!var.prepare())                                         \
-        return v8::Undefined();
-
-#define STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(type, var, value) \
-    type var(value);                                                 \
-    if (!var.prepare())                                              \
-        return;
-
-#define MAYBE_MISSING_PARAMETER(args, index, policy) \
-    (((policy) == DefaultIsNullString && (index) >= (args).Length()) ? (v8::Local<v8::Value>()) : ((args)[(index)]))
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to