Changeset 39960 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
Jan 15, 2009, 10:51:20 PM (16 years ago)
Author:
[email protected]
Message:

2009-01-15 Gavin Barraclough <[email protected]>

Reviewed by Oliver Hunt.

Add support for integer addition, subtraction and multiplication
in JIT code on x86-64.

  • assembler/MacroAssembler.h: (JSC::MacroAssembler::mul32): (JSC::MacroAssembler::sub32): (JSC::MacroAssembler::joMul32): (JSC::MacroAssembler::joSub32):
  • jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases):
  • jit/JIT.h:
  • jit/JITArithmetic.cpp: (JSC::JIT::compileFastArith_op_add): (JSC::JIT::compileFastArithSlow_op_add): (JSC::JIT::compileFastArith_op_mul): (JSC::JIT::compileFastArithSlow_op_mul): (JSC::JIT::compileFastArith_op_sub): (JSC::JIT::compileFastArithSlow_op_sub):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r39958 r39960  
    445445    #define ENABLE_JIT 0
    446446    #define WTF_USE_JIT_STUB_ARGUMENT_REGISTER 1
    447     #define ENABLE_JIT_OPTIMIZE_CALL 1
    448     #define ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS 1
    449447/* The JIT is tested & working on x86 Mac */
    450448#elif PLATFORM(X86) && PLATFORM(MAC)
    451449    #define ENABLE_JIT 1
    452450    #define WTF_USE_JIT_STUB_ARGUMENT_VA_LIST 1
    453     #define ENABLE_JIT_OPTIMIZE_CALL 1
    454     #define ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS 1
    455     #define ENABLE_JIT_OPTIMIZE_ARITHMETIC 1
    456451/* The JIT is tested & working on x86 Windows */
    457452#elif PLATFORM(X86) && PLATFORM(WIN)
    458453    #define ENABLE_JIT 1
    459454    #define WTF_USE_JIT_STUB_ARGUMENT_REGISTER 1
     455#endif
    460456    #define ENABLE_JIT_OPTIMIZE_CALL 1
    461457    #define ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS 1
    462458    #define ENABLE_JIT_OPTIMIZE_ARITHMETIC 1
    463 #endif
    464459#endif
    465460
Note: See TracChangeset for help on using the changeset viewer.