Changeset 174473 in webkit for trunk/Source/JavaScriptCore


Ignore:
Timestamp:
Oct 8, 2014, 1:16:46 PM (11 years ago)
Author:
[email protected]
Message:

[WinCairo] Enable JIT on 32-bit.
https://bugs.webkit.org/show_bug.cgi?id=137521

Patch by [email protected] <[email protected]> on 2014-10-08
Reviewed by Mark Lam.

Enable JIT on Windows 32-bit, but disable it at runtime if SSE2 is not present.

Source/JavaScriptCore:

  • JavaScriptCore.vcxproj/LLInt/LLIntAssembly/build-LLIntAssembly.pl:
  • runtime/Options.cpp:

(JSC::recomputeDependentOptions):

Source/WTF:

  • wtf/Platform.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r174455 r174473  
     12014-10-08  [email protected]  <[email protected]>
     2
     3        [WinCairo] Enable JIT on 32-bit.
     4        https://bugs.webkit.org/show_bug.cgi?id=137521
     5
     6        Reviewed by Mark Lam.
     7
     8        Enable JIT on Windows 32-bit, but disable it at runtime if SSE2 is not present.
     9
     10        * JavaScriptCore.vcxproj/LLInt/LLIntAssembly/build-LLIntAssembly.pl:
     11        * runtime/Options.cpp:
     12        (JSC::recomputeDependentOptions):
     13
    1142014-10-08  Brent Fulgham  <[email protected]>
    215
  • trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/LLInt/LLIntAssembly/build-LLIntAssembly.pl

    r174162 r174473  
    6363
    6464# If you want to enable the LLINT C loop, set OUTPUTFILENAME to "LLIntAssembly.h"
    65 # We only want the C loop for 32-bit Windows so we can continue to support old CPUs.
    66 my $OUTPUTFILENAME;
    67 if ("$ARGV[3]" eq "32") {
    68     $OUTPUTFILENAME = File::Spec->catfile($DERIVED_SOURCES_DIR, 'LLIntAssembly.h');
    69 } else {
    70     $OUTPUTFILENAME = File::Spec->catfile($DERIVED_SOURCES_DIR, 'LowLevelInterpreterWin.asm');
    71 }
     65my $OUTPUTFILENAME = File::Spec->catfile($DERIVED_SOURCES_DIR, 'LowLevelInterpreterWin.asm');
    7266
    7367my $offlineAsm = File::Spec->catfile($XSRCROOT, 'offlineasm', 'asm.rb');
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r173949 r174473  
    4242#endif
    4343
     44#if OS(WINDOWS)
     45#include "MacroAssemblerX86.h"
     46#endif
     47
    4448namespace JSC {
    4549
     
    228232    Options::useFTLJIT() = false;
    229233#endif
    230 
     234#if OS(WINDOWS) && CPU(X86)
     235    // Disable JIT on Windows if SSE2 is not present
     236    if (!MacroAssemblerX86::supportsFloatingPoint())
     237        Options::useJIT() = false;
     238#endif
    231239    if (Options::showDisassembly()
    232240        || Options::showDFGDisassembly()
Note: See TracChangeset for help on using the changeset viewer.