Changeset 234 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Jul 25, 2007, 11:21:25 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/CodeGenerator.h
r232 r234 131 131 void __op_format(char op_prefix,char opcode1,char opcode2,int reg,int base_reg,int offset,char mod, Schedule::Type scheduleType = Schedule::None ); 132 132 public: 133 void op_mov_MV ( int op_size, int base_reg, long offset, Schedule::Type offsetScheduleType, long value, Schedule::Type valueScheduleType = Schedule::None ); 133 134 void op_mov_RV (int reg,long offset, Schedule::Type scheduleType = Schedule::None ); 134 135 void op_mov_RR (int reg1,int reg2); -
trunk/abdev/BasicCompiler_Common/src/LexicalScopingImpl.cpp
r226 r234 100 100 compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RCX,REG_RSP, 101 101 -pVar->GetOffsetAddress(), 102 MOD_BASE_DISP32); 103 obp-=sizeof(long); 104 AddLocalVarAddrSchedule(); 105 obp+=sizeof(long); 102 MOD_BASE_DISP32, 103 Schedule::LocalVar); 106 104 #else 107 105 //x86コード 108 106 109 107 //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 ); 114 109 115 110 //push ecx
Note:
See TracChangeset
for help on using the changeset viewer.