use __MINGW32__ instead of __WINDOWS__ in x86.cpp and assume Linux if it's not defined

This commit is contained in:
Joel Dice 2009-07-27 07:49:54 -06:00
parent 27d863790c
commit 0447d9bed3
2 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ vmCall();
namespace {
const bool DebugCompile = false;
const bool DebugCompile = true;
const bool DebugNatives = false;
const bool DebugCallTable = false;
const bool DebugMethodTree = false;

View File

@ -2101,7 +2101,7 @@ class MyArchitecture: public Assembler::Architecture {
}
virtual unsigned frameFootprint(unsigned footprint) {
#ifdef __WINDOWS__
#ifdef __MINGW32__
return max(footprint, StackAlignmentInWords);
#else
return max(footprint > argumentRegisterCount() ?
@ -2115,9 +2115,9 @@ class MyArchitecture: public Assembler::Architecture {
}
virtual unsigned argumentRegisterCount() {
#ifdef __WINDOWS__
#ifdef __MINGW32__
if (BytesPerWord == 8) return 4; else
#elif defined __LINUX__
#else
if (BytesPerWord == 8) return 6; else
#endif
return 0;
@ -2126,7 +2126,7 @@ class MyArchitecture: public Assembler::Architecture {
virtual int argumentRegister(unsigned index) {
assert(&c, BytesPerWord == 8);
switch (index) {
#ifdef __WINDOWS__
#ifdef __MINGW32__
case 0:
return rcx;
case 1:
@ -2135,7 +2135,7 @@ class MyArchitecture: public Assembler::Architecture {
return r8;
case 3:
return r9;
#elif defined __LINUX__
#else
case 0:
return rdi;
case 1: