Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 730:09b88beffd2d

Show
Ignore:
Timestamp:
10/26/08 16:16:21 (2 months ago)
Author:
Christian Kamm <kamm incasoftware de>
branch:
default
Message:

Enable arg reversal on x86 by default. Make change to TypeInfo?_Struct.compare to accomodate for it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • premake.lua

    r727 r730  
    3939 
    4040-- x86 ABI support 
    41 X86_REVERSE_PARAMS = 0 --disabled for now 
    42 X86_PASS_IN_EAX = 0 
     41X86_REVERSE_PARAMS = 1 
     42X86_PASS_IN_EAX = 0 --disabled for now 
    4343 
    4444-- D version - don't change these !!! 
  • runtime/internal/genobj.d

    r728 r730  
    801801                    c = 1; 
    802802                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); 
    804808                else 
    805809                    // BUG: relies on the GC not moving objects 
Copyright © 2008, LDC Development Team.