Title: [185711] trunk/Tools
- Revision
- 185711
- Author
- [email protected]
- Date
- 2015-06-18 11:05:52 -0700 (Thu, 18 Jun 2015)
Log Message
Refactor CheckedArithmeticOperations.cpp to use templates instead of macros.
https://bugs.webkit.org/show_bug.cgi?id=146103
Not reviewed.
Follow up to fix some typos not caught before original patch was landed.
* TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
(TestWebKitAPI::CheckedArithmeticTester::run):
(TestWebKitAPI::AllowMixedSignednessTest::run):
(TestWebKitAPI::IgnoreMixedSignednessTest::run):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (185710 => 185711)
--- trunk/Tools/ChangeLog 2015-06-18 18:00:11 UTC (rev 185710)
+++ trunk/Tools/ChangeLog 2015-06-18 18:05:52 UTC (rev 185711)
@@ -1,3 +1,17 @@
+2015-06-18 Mark Lam <[email protected]>
+
+ Refactor CheckedArithmeticOperations.cpp to use templates instead of macros.
+ https://bugs.webkit.org/show_bug.cgi?id=146103
+
+ Not reviewed.
+
+ Follow up to fix some typos not caught before original patch was landed.
+
+ * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
+ (TestWebKitAPI::CheckedArithmeticTester::run):
+ (TestWebKitAPI::AllowMixedSignednessTest::run):
+ (TestWebKitAPI::IgnoreMixedSignednessTest::run):
+
2015-06-18 Daniel Bates <[email protected]>
Make webkitdirs::runGitUpdate() work when invoked in more than one Git checkout
Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp (185710 => 185711)
--- trunk/Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp 2015-06-18 18:00:11 UTC (rev 185710)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp 2015-06-18 18:05:52 UTC (rev 185711)
@@ -33,12 +33,12 @@
{ \
typedef Coercer<type> CoercerType; \
typedef MixedSignednessTester<type, CoercerType> MixedSignednessTesterType; \
- CheckedArithmeticTester<type, CoercerType, MixedSignednessTesterType>(); \
+ CheckedArithmeticTester<type, CoercerType, MixedSignednessTesterType>::run(); \
}
-#define coerceLiteral(x) Coerser::coerce(x)
+#define coerceLiteral(x) Coercer::coerce(x)
-template <typename type, typename Coerser, typename MixedSignednessTester>
+template <typename type, typename Coercer, typename MixedSignednessTester>
class CheckedArithmeticTester {
public:
static void run()
@@ -125,7 +125,7 @@
}
};
-template <typename type, typename Coerser>
+template <typename type, typename Coercer>
class AllowMixedSignednessTest {
public:
static void run()
@@ -164,7 +164,7 @@
}
};
-template <typename type, typename Coerser>
+template <typename type, typename Coercer>
class IgnoreMixedSignednessTest {
public:
static void run() { }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes