Changeset 234 in dev for trunk/abdev/BasicCompiler_Common


Ignore:
Timestamp:
Jul 25, 2007, 11:21:25 AM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/abdev/BasicCompiler_Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h

    r232 r234  
    131131    void __op_format(char op_prefix,char opcode1,char opcode2,int reg,int base_reg,int offset,char mod, Schedule::Type scheduleType = Schedule::None );
    132132public:
     133    void op_mov_MV          ( int op_size, int base_reg, long offset, Schedule::Type offsetScheduleType, long value, Schedule::Type valueScheduleType = Schedule::None );
    133134    void op_mov_RV          (int reg,long offset, Schedule::Type scheduleType = Schedule::None );
    134135    void op_mov_RR          (int reg1,int reg2);
  • trunk/abdev/BasicCompiler_Common/src/LexicalScopingImpl.cpp

    r226 r234  
    100100            compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RCX,REG_RSP,
    101101                -pVar->GetOffsetAddress(),
    102                 MOD_BASE_DISP32);
    103             obp-=sizeof(long);
    104             AddLocalVarAddrSchedule();
    105             obp+=sizeof(long);
     102                MOD_BASE_DISP32,
     103                Schedule::LocalVar);
    106104#else
    107105            //x86コード
    108106
    109107            //mov ecx,dword ptr[ebp+offset]
    110             compiler.codeGenerator.op_mov_RM(sizeof(long),REG_ECX,REG_EBP,-pVar->GetOffsetAddress(),MOD_BASE_DISP32);
    111             obp-=sizeof(long);
    112             AddLocalVarAddrSchedule();
    113             obp+=sizeof(long);
     108            compiler.codeGenerator.op_mov_RM(sizeof(long),REG_ECX,REG_EBP,-pVar->GetOffsetAddress(),MOD_BASE_DISP32, Schedule::LocalVar );
    114109
    115110            //push ecx
Note: See TracChangeset for help on using the changeset viewer.