Ignore:
Timestamp:
May 5, 2008, 12:39:50 AM (17 years ago)
Author:
dai_9181
Message:

・PutWithScheduleメソッドを追加。
・NativeCodeクラスが持つCompilerクラスへの依存度を除去した。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/compiler_x86/x86CodeGenerator.cpp

    r465 r551  
    8282        }
    8383
    84         pNativeCode->PutEx( disp, scheduleType );
     84        this->PutWithSchedule( disp, scheduleType );
    8585    }
    8686
     
    139139            pPertialSchedule = pertialSchedules.back();
    140140        }
    141         pNativeCode->PutEx( offset, offsetScheduleType );
     141        this->PutWithSchedule( offset, offsetScheduleType );
    142142
    143143        pNativeCode->Put( (char)value );
     
    154154            pPertialSchedule = pertialSchedules.back();
    155155        }
    156         pNativeCode->PutEx( offset, offsetScheduleType );
     156        this->PutWithSchedule( offset, offsetScheduleType );
    157157
    158158        pNativeCode->Put( (short)value );
     
    168168            pPertialSchedule = pertialSchedules.back();
    169169        }
    170         pNativeCode->PutEx( offset, offsetScheduleType );
    171 
    172         pNativeCode->PutEx( value, valueScheduleType );
     170        this->PutWithSchedule( offset, offsetScheduleType );
     171
     172        this->PutWithSchedule( value, valueScheduleType );
    173173    }
    174174
     
    188188        pPertialSchedule = pertialSchedules.back();
    189189    }
    190     pNativeCode->PutEx( offset, scheduleType );
     190    this->PutWithSchedule( offset, scheduleType );
    191191
    192192    return pPertialSchedule;
     
    253253            pPertialSchedule = pertialSchedules.back();
    254254        }
    255         pNativeCode->PutEx( offset, scheduleType );
     255        this->PutWithSchedule( offset, scheduleType );
    256256    }
    257257    else{
     
    320320            pPertialSchedule = pertialSchedules.back();
    321321        }
    322         pNativeCode->PutEx( offset, scheduleType );
     322        this->PutWithSchedule( offset, scheduleType );
    323323    }
    324324    else{
     
    476476        pPertialSchedule = pertialSchedules.back();
    477477    }
    478     pNativeCode->PutEx( offset, scheduleType );
     478    this->PutWithSchedule( offset, scheduleType );
    479479
    480480    return pPertialSchedule;
     
    785785        //push 32ビット値
    786786        pNativeCode->Put( (char)0x68 );
    787         pNativeCode->PutEx( data, scheduleType );
     787        this->PutWithSchedule( data, scheduleType );
    788788    }
    789789}
     
    10101010        pPertialSchedule = pertialSchedules.back();
    10111011    }
    1012     pNativeCode->PutEx( offset, scheduleType );
     1012    this->PutWithSchedule( offset, scheduleType );
    10131013
    10141014    return pPertialSchedule;
     
    10471047            pPertialSchedule = pertialSchedules.back();
    10481048        }
    1049         pNativeCode->PutEx( offset, scheduleType );
     1049        this->PutWithSchedule( offset, scheduleType );
    10501050    }
    10511051    else{
     
    11071107        pPertialSchedule = pertialSchedules.back();
    11081108    }
    1109     pNativeCode->PutEx( offset, scheduleType );
     1109    this->PutWithSchedule( offset, scheduleType );
    11101110
    11111111    return pPertialSchedule;
     
    11441144            pPertialSchedule = pertialSchedules.back();
    11451145        }
    1146         pNativeCode->PutEx( offset, scheduleType );
     1146        this->PutWithSchedule( offset, scheduleType );
    11471147    }
    11481148    else{
Note: See TracChangeset for help on using the changeset viewer.