Changeset 76

Show
Ignore:
Timestamp:
03/23/07 22:18:14 (20 months ago)
Author:
matthiasm
Message:

Changed the order of arguments on the stack for the bytecode "send". Change is idef'd out with FIXME_MATTHIAS. This is on the code generation side only. I have not looked at the VM interpreter side of things.

Location:
NEWT0/trunk/src/newt_core
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/src/newt_core/NewtBC.c

    r71 r76  
    20842084    numArgs = NBCCountNumArgs(stree, node->op2); 
    20852085 
     2086#ifdef FIXME_MATTHIAS 
     2087    // Newton expects the arguments to "send" in this order. 
     2088    // I have not checked if the NEWT VM "send" interprter  
     2089    // needs arguments to be swapped as well 
     2090    NBCGenReceiver(stree, receiver); 
     2091    NBCGenPUSH(node->op1); 
     2092#else 
    20862093    // message の生成 
    20872094    NBCGenPUSH(node->op1); 
     
    20892096    // receiver の生成 
    20902097    NBCGenReceiver(stree, receiver); 
     2098#endif 
    20912099 
    20922100    // メッセージ呼出しの生成 
  • NEWT0/trunk/src/newt_core/incs/VC6/config.h

    r74 r76  
    2929#undef HAVE_GETPWNAM 
    3030 
     31#define FIXME_MATTHIAS 
     32 
    3133#define __PLATFORM__ "WIN32_MSVC6" 
    3234#define __DYLIBSUFFIX__ ".dll"