Mercurial > projects > ldc
comparison runtime/internal/genobj.d @ 730:09b88beffd2d
Enable arg reversal on x86 by default. Make change to TypeInfo_Struct.compare to accomodate for it.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 26 Oct 2008 21:16:21 +0100 |
parents | 635f91212b78 |
children | d63741d00ee3 |
comparison
equal
deleted
inserted
replaced
729:50d01791859c | 730:09b88beffd2d |
---|---|
798 { | 798 { |
799 if (p1) | 799 if (p1) |
800 { if (!p2) | 800 { if (!p2) |
801 c = 1; | 801 c = 1; |
802 else if (xopCmp) | 802 else if (xopCmp) |
803 c = (*xopCmp)(p1, p2); | 803 // the x86 D calling conv requires the this arg to be last here |
804 version(X86) | |
805 c = (*xopCmp)(p2, p1); | |
806 else | |
807 c = (*xopCmp)(p1, p2); | |
804 else | 808 else |
805 // BUG: relies on the GC not moving objects | 809 // BUG: relies on the GC not moving objects |
806 c = memcmp(p1, p2, m_init.length); | 810 c = memcmp(p1, p2, m_init.length); |
807 } | 811 } |
808 else | 812 else |