Changeset 185711 in webkit


Ignore:
Timestamp:
Jun 18, 2015, 11:05:52 AM (10 years ago)
Author:
mark.lam@apple.com
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):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r185710 r185711  
     12015-06-18  Mark Lam  <mark.lam@apple.com>
     2
     3        Refactor CheckedArithmeticOperations.cpp to use templates instead of macros.
     4        https://bugs.webkit.org/show_bug.cgi?id=146103
     5
     6        Not reviewed.
     7
     8        Follow up to fix some typos not caught before original patch was landed.
     9
     10        * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
     11        (TestWebKitAPI::CheckedArithmeticTester::run):
     12        (TestWebKitAPI::AllowMixedSignednessTest::run):
     13        (TestWebKitAPI::IgnoreMixedSignednessTest::run):
     14
    1152015-06-18  Daniel Bates  <dabates@apple.com>
    216
  • trunk/Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp

    r185708 r185711  
    3434        typedef Coercer<type> CoercerType; \
    3535        typedef MixedSignednessTester<type, CoercerType> MixedSignednessTesterType; \
    36         CheckedArithmeticTester<type, CoercerType, MixedSignednessTesterType>(); \
     36        CheckedArithmeticTester<type, CoercerType, MixedSignednessTesterType>::run(); \
    3737    }
    3838   
    39 #define coerceLiteral(x) Coerser::coerce(x)
     39#define coerceLiteral(x) Coercer::coerce(x)
    4040   
    41 template <typename type, typename Coerser, typename MixedSignednessTester>
     41template <typename type, typename Coercer, typename MixedSignednessTester>
    4242class CheckedArithmeticTester {
    4343public:
     
    126126};
    127127
    128 template <typename type, typename Coerser>
     128template <typename type, typename Coercer>
    129129class AllowMixedSignednessTest {
    130130public:
     
    165165};
    166166
    167 template <typename type, typename Coerser>
     167template <typename type, typename Coercer>
    168168class IgnoreMixedSignednessTest {
    169169public:
Note: See TracChangeset for help on using the changeset viewer.