Changeset 46598 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Jul 30, 2009, 1:57:44 PM (16 years ago)
Author:
[email protected]
Message:

Merged nitro-extreme branch into trunk.

Location:
trunk/JavaScriptCore/wtf
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/MainThread.cpp

    r40969 r46598  
    3030#include "MainThread.h"
    3131
     32#include "StdLibExtras.h"
    3233#include "CurrentTime.h"
    3334#include "Deque.h"
    34 #include "StdLibExtras.h"
    3535#include "Threading.h"
    3636
  • trunk/JavaScriptCore/wtf/Platform.h

    r46472 r46598  
    558558#endif
    559559
    560 #if !defined(WTF_USE_ALTERNATE_JSIMMEDIATE) && PLATFORM(X86_64) && PLATFORM(MAC)
    561 #define WTF_USE_ALTERNATE_JSIMMEDIATE 1
    562 #endif
     560#if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64)
     561#if PLATFORM(X86_64) && PLATFORM(MAC)
     562#define WTF_USE_JSVALUE64 1
     563#else
     564#define WTF_USE_JSVALUE32 1
     565#endif
     566#endif // !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64)
    563567
    564568#if !defined(ENABLE_REPAINT_THROTTLING)
     
    609613#define ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS 1
    610614#endif
    611 #ifndef ENABLE_JIT_OPTIMIZE_ARITHMETIC
    612 #define ENABLE_JIT_OPTIMIZE_ARITHMETIC 1
    613 #endif
    614615#ifndef ENABLE_JIT_OPTIMIZE_METHOD_CALLS
    615616#define ENABLE_JIT_OPTIMIZE_METHOD_CALLS 1
  • trunk/JavaScriptCore/wtf/StdLibExtras.h

    r43121 r46598  
    4242#endif
    4343
     44// OBJECT_OFFSETOF: Like the C++ offsetof macro, but you can use it with classes.
     45// The magic number 0x4000 is insignificant. We use it to avoid using NULL, since
     46// NULL can cause compiler problems, especially in cases of multiple inheritance.
     47#define OBJECT_OFFSETOF(class, field) (reinterpret_cast<ptrdiff_t>(&(reinterpret_cast<class*>(0x4000)->field)) - 0x4000)
     48
    4449namespace WTF {
    4550
Note: See TracChangeset for help on using the changeset viewer.