Fix compilation on amd64 (not working yet, just building)
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 9 Oct 2012 08:28:59 +0000 (10:28 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 9 Oct 2012 08:28:59 +0000 (10:28 +0200)
masm/assembler/MacroAssembler.h
masm/config.h
masm/disassembler/udis86/ud_opcode.pyc
masm/disassembler/udis86/ud_optable.pyc
masm/stubs/WTFStubs.cpp
qv4isel_masm_p.h

index 1a9af29..43c9b47 100644 (file)
@@ -578,7 +578,7 @@ public:
         default: {
             if (value <= 0xff)
                 return false;
-#if CPU(X86_64)
+#if CPU(X86_64) && 0
             JSValue jsValue = JSValue::decode(reinterpret_cast<void*>(value));
             if (jsValue.isInt32())
                 return shouldBlind(Imm32(jsValue.asInt32()));
index d462525..7e0779f 100644 (file)
@@ -6,5 +6,6 @@
 #include <wtf/Vector.h>
 #endif
 #include <limits.h>
+#include <math.h>
 
 #endif // MASM_CONFIG_H
index cade0c2..75a1d62 100644 (file)
Binary files a/masm/disassembler/udis86/ud_opcode.pyc and b/masm/disassembler/udis86/ud_opcode.pyc differ
index 8f36a9c..76896dc 100644 (file)
Binary files a/masm/disassembler/udis86/ud_optable.pyc and b/masm/disassembler/udis86/ud_optable.pyc differ
index 072bfdb..7e16bbc 100644 (file)
@@ -7,7 +7,7 @@
 
 namespace WTF {
 
-void* fastMalloc(unsigned int size)
+void* fastMalloc(size_t size)
 {
     return malloc(size);
 }
index 910040e..a177f9c 100644 (file)
@@ -33,6 +33,17 @@ protected:
     static const RegisterID Gpr3 = JSC::X86Registers::esi;
     static const RegisterID CalleeSavedGpr = Gpr3;
     static const FPRegisterID FPGpr0 = JSC::X86Registers::xmm0;
+#elif CPU(X86_64)
+    static const RegisterID StackFrameRegister = JSC::X86Registers::ebp;
+    static const RegisterID StackPointerRegister = JSC::X86Registers::esp;
+    static const RegisterID ContextRegister = JSC::X86Registers::esi;
+    static const RegisterID ReturnValueRegister = JSC::X86Registers::eax;
+    static const RegisterID Gpr0 = JSC::X86Registers::eax;
+    static const RegisterID Gpr1 = JSC::X86Registers::ecx;
+    static const RegisterID Gpr2 = JSC::X86Registers::edx;
+    static const RegisterID Gpr3 = JSC::X86Registers::esi;
+    static const RegisterID CalleeSavedGpr = Gpr3;
+    static const FPRegisterID FPGpr0 = JSC::X86Registers::xmm0;
 #else
 #error Argh.
 #endif