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


Ignore:
Timestamp:
Dec 17, 2008, 7:38:10 PM (16 years ago)
Author:
[email protected]
Message:

2008-12-17 Gavin Barraclough <[email protected]>

Reviewed by Sam Weinig.

print("Hello, 64-bit jitted world!");
Get hello-world working through the JIT, on x86-64.

  • assembler/X86Assembler.h:

Fix encoding of opcode + RegisterID format instructions for 64-bit.

  • interpreter/Interpreter.cpp:
  • interpreter/Interpreter.h:

Make VoidPtrPair actually be a pair of void*s.
(Possibly should make this change for 32-bit Mac platforms, too - but won't change 32-bit behaviour in this patch).

  • jit/JIT.cpp:
  • jit/JIT.h:

Provide names for the timeoutCheckRegister & callFrameRegister on x86-64,
force x86-64 ctiTrampoline arguments onto the stack,
implement the asm trampolines for x86-64,
implement the restoreArgumentReference methods for x86-64 calling conventions.

  • jit/JITCall.cpp:
  • jit/JITInlineMethods.h:
  • wtf/Platform.h:

Add switch settings to ENABLE(JIT), on PLATFORM(X86_64) (currently still disabled).

File:
1 edited

Legend:

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

    r39362 r39370  
    435435#define ENABLE_JIT_OPTIMIZE_ARITHMETIC 1
    436436#endif
     437#if !defined(ENABLE_JIT) && PLATFORM(X86_64) && PLATFORM(MAC)
     438#define ENABLE_JIT 0
     439#define WTF_USE_CTI_ARGUMENT 0
     440#endif
    437441
    438442/* WREC supports x86 & x86-64, and has been tested on Mac and Windows ('cept on 64-bit on Mac). */
Note: See TracChangeset for help on using the changeset viewer.