Changeset 58308 in webkit


Ignore:
Timestamp:
Apr 27, 2010 6:56:53 AM (14 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

Compile fix for Visual Studio 2010
https://bugs.webkit.org/show_bug.cgi?id=37867

Reviewed by Simon Hausmann.

Patch by Prasanth Ullattil <prasanth.ullattil@nokia.com>

  • runtime/Structure.cpp:

(JSC::Structure::transitionTableAdd):

  • wtf/MathExtras.h:
  • wtf/Platform.h:
Location:
trunk/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r58307 r58308  
     12010-04-21  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Compile fix for Visual Studio 2010
     6        https://bugs.webkit.org/show_bug.cgi?id=37867
     7
     8        Patch by Prasanth Ullattil <prasanth.ullattil@nokia.com>
     9
     10        * runtime/Structure.cpp:
     11        (JSC::Structure::transitionTableAdd):
     12        * wtf/MathExtras.h:
     13        * wtf/Platform.h:
     14
    1152010-04-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
    216
  • trunk/JavaScriptCore/runtime/Structure.cpp

    r55256 r58308  
    169169        TransitionTable::iterator find = transitionTable()->find(key);
    170170        if (find == transitionTable()->end())
    171             transitionTable()->add(key, Transition(structure, 0));
     171            transitionTable()->add(key, Transition(structure, static_cast<Structure*>(0)));
    172172        else
    173173            find->second.first = structure;
     
    176176        // an existing transition
    177177        ASSERT(!transitionTable()->contains(key));
    178         transitionTable()->add(key, Transition(0, structure));
     178        transitionTable()->add(key, Transition(static_cast<Structure*>(0), structure));
    179179    }
    180180}
  • trunk/JavaScriptCore/wtf/MathExtras.h

    r58167 r58308  
    123123
    124124#if COMPILER(MSVC)
    125 
     125// The 64bit version of abs() is already defined in stdlib.h which comes with VC10
     126#if COMPILER(MSVC9_OR_LOWER)
    126127inline long long abs(long long num) { return _abs64(num); }
     128#endif
    127129
    128130inline bool isinf(double num) { return !_finite(num) && !_isnan(num); }
  • trunk/JavaScriptCore/wtf/Platform.h

    r58307 r58308  
    6060/* COMPILER(MSVC) Microsoft Visual C++ */
    6161/* COMPILER(MSVC7_OR_LOWER) Microsoft Visual C++ 2003 or lower*/
     62/* COMPILER(MSVC9_OR_LOWER) Microsoft Visual C++ 2008 or lower*/
    6263#if defined(_MSC_VER)
    6364#define WTF_COMPILER_MSVC 1
    6465#if _MSC_VER < 1400
    6566#define WTF_COMPILER_MSVC7_OR_LOWER 1
     67#elif _MSC_VER < 1600
     68#define WTF_COMPILER_MSVC9_OR_LOWER 1
    6669#endif
    6770#endif
Note: See TracChangeset for help on using the changeset viewer.