Changeset 129774 in webkit for trunk/Source/JavaScriptCore/dfg


Ignore:
Timestamp:
Sep 27, 2012, 10:09:02 AM (13 years ago)
Author:
Patrick Gansterer
Message:

Fix usage of COMPILER() macros
https://bugs.webkit.org/show_bug.cgi?id=97642

Reviewed by Geoffrey Garen.

Add COMPILER(GCC) around compiler specific code and remove it from generic code.
This allows us to implement the DFG code for other compilers to in a next step.

  • dfg/DFGOperations.cpp:
  • jit/HostCallReturnValue.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp

    r129426 r129774  
    5050#if ENABLE(DFG_JIT)
    5151
    52 #if CPU(X86_64)
     52#if COMPILER(GCC) && CPU(X86_64)
    5353
    5454#define FUNCTION_WRAPPER_WITH_RETURN_ADDRESS(function, register) \
     
    6565#define FUNCTION_WRAPPER_WITH_RETURN_ADDRESS_EJCI(function) FUNCTION_WRAPPER_WITH_RETURN_ADDRESS(function, r8)
    6666
    67 #elif CPU(X86)
     67#elif COMPILER(GCC) && CPU(X86)
    6868
    6969#define FUNCTION_WRAPPER_WITH_RETURN_ADDRESS(function, offset) \
     
    14261426#endif // ENABLE(DFG_JIT)
    14271427
    1428 #if COMPILER(GCC)
    1429 
    14301428namespace JSC {
    14311429
    1432 #if CPU(X86_64)
     1430#if COMPILER(GCC) && CPU(X86_64)
    14331431asm (
    14341432".globl " SYMBOL_STRING(getHostCallReturnValue) "\n"
     
    14391437    "jmp " LOCAL_REFERENCE(getHostCallReturnValueWithExecState) "\n"
    14401438);
    1441 #elif CPU(X86)
     1439#elif COMPILER(GCC) && CPU(X86)
    14421440asm (
    14431441".text" "\n" \
     
    14491447    "jmp " LOCAL_REFERENCE(getHostCallReturnValueWithExecState) "\n"
    14501448);
    1451 #elif CPU(ARM_THUMB2)
     1449#elif COMPILER(GCC) && CPU(ARM_THUMB2)
    14521450asm (
    14531451".text" "\n"
     
    14621460    "b " LOCAL_REFERENCE(getHostCallReturnValueWithExecState) "\n"
    14631461);
    1464 #elif CPU(ARM_TRADITIONAL)
     1462#elif COMPILER(GCC) && CPU(ARM_TRADITIONAL)
    14651463asm (
    14661464".text" "\n"
     
    14841482} // namespace JSC
    14851483
    1486 #endif // COMPILER(GCC)
    1487 
    14881484#endif // ENABLE(JIT)
Note: See TracChangeset for help on using the changeset viewer.