Ignore:
Timestamp:
Jul 14, 2010, 12:01:15 PM (15 years ago)
Author:
[email protected]
Message:

Guard the CF path of interpreter vs. jit selection with PLATFORM(CF)

RS=Geoff Garen

This allows the code to work on windows as well. Also unifies the
environment variable with the preference name.

  • runtime/JSGlobalData.cpp:

(JSC::JSGlobalData::JSGlobalData):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSGlobalData.cpp

    r63336 r63341  
    158158#endif
    159159#if ENABLE(JIT) && ENABLE(INTERPRETER)
    160 #if PLATFORM(MAC)
     160#if PLATFORM(CF)
    161161    CFStringRef canUseJITKey = CFStringCreateWithCString(0 , "JavaScriptCoreUseJIT", kCFStringEncodingMacRoman);
    162162    CFBooleanRef canUseJIT = (CFBooleanRef)CFPreferencesCopyAppValue(canUseJITKey, kCFPreferencesCurrentApplication);
     
    165165        CFRelease(canUseJIT);
    166166    } else
    167         m_canUseJIT = !getenv("JSC_FORCE_INTERPRETER");
     167        m_canUseJIT = !getenv("JavaScriptCoreUseJIT");
    168168    CFRelease(canUseJITKey);
    169169#elif OS(UNIX)
    170     m_canUseJIT = !getenv("JSC_FORCE_INTERPRETER");
     170    m_canUseJIT = !getenv("JavaScriptCoreUseJIT");
    171171#else
    172172    m_canUseJIT = true;
Note: See TracChangeset for help on using the changeset viewer.