Ignore:
Timestamp:
Feb 23, 2009, 4:29:56 PM (16 years ago)
Author:
[email protected]
Message:

Bug 23787: Allow JIT to generate SSE2 code if using GCC
<https://bugs.webkit.org/show_bug.cgi?id=23787>

Reviewed by Oliver Hunt
Contributed by Csaba Osztrogonac

GCC version of the cpuid check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITArithmetic.cpp

    r41126 r41160  
    622622                mov flags, edx;
    623623            }
     624#elif COMPILER(GCC)
     625            asm (
     626                "movl $0x1, %%eax;"
     627                "pushl %%ebx;"
     628                "cpuid;"
     629                "popl %%ebx;"
     630                "movl %%edx, %0;"
     631                : "=g" (flags)
     632                :
     633                : "%eax", "%ecx", "%edx"
     634            );
    624635#else
    625636            flags = 0;
    626             // FIXME: Add GCC code to do above asm
    627637#endif
    628638            present = (flags & SSE2FeatureBit) != 0;
Note: See TracChangeset for help on using the changeset viewer.