Ignore:
Timestamp:
Sep 26, 2008, 11:49:14 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

マクロBUILD_X64_COMPILERの導入

Location:
branches/x64_compiler_on_32/abdev/BasicCompiler_Common/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/x64_compiler_on_32/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp

    r750 r759  
    33#include <CodeGenerator.h>
    44
    5 #ifdef _AMD64_
     5#if defined _AMD64_ || defined BUILD_X64_COMPILER
    66#include "../../compiler_x64/opcode.h"
    77#else
     
    329329void CodeGenerator::op_AddNeedFreeTempStructure( int reg )
    330330{
    331 #ifdef _AMD64_
     331#if defined _AMD64_ || defined BUILD_X64_COMPILER
    332332    //////////////////////////////////////////////////////
    333333    /////    レジスタ資源のバックアップ
  • branches/x64_compiler_on_32/abdev/BasicCompiler_Common/src/Exception.cpp

    r750 r759  
    11#include "stdafx.h"
    22
    3 #ifdef _AMD64_
     3#if defined _AMD64_ || defined BUILD_X64_COMPILER
    44#include "../../compiler_x64/opcode.h"
    55#else
     
    395395    }
    396396
    397 #ifdef _WIN64
     397#if defined _WIN64 || defined BUILD_X64_COMPILER
    398398    //mov rax,catchAddress
    399399    const PertialSchedule *pPertialSchedule = compiler.codeGenerator.op_mov_RV( sizeof(long), REG_RAX, 0, Schedule::DataTable, true );
     
    408408    int dataTableOffset = compiler.GetObjectModule().dataTable.Add( static_cast<LONG_PTR>(0) );
    409409
    410 #ifdef _WIN64
     410#if defined _WIN64 || defined BUILD_X64_COMPILER
    411411    //mov rax,dataTableOffset
    412412    compiler.codeGenerator.op_mov_RV( sizeof(_int64), REG_RAX, dataTableOffset, Schedule::DataTable);
     
    426426    }
    427427
    428 #ifdef _WIN64
     428#if defined _WIN64 || defined BUILD_X64_COMPILER
    429429    //mov rax,finallyAddress
    430430    const PertialSchedule *pPertialSchedule = compiler.codeGenerator.op_mov_RV( sizeof(long), REG_RAX, 0, Schedule::CatchAddress, true );
     
    439439    int dataTableOffset = compiler.GetObjectModule().dataTable.Add( static_cast<LONG_PTR>(0) );
    440440
    441 #ifdef _WIN64
     441#if defined _WIN64 || defined BUILD_X64_COMPILER
    442442    //mov rax,dataTableOffset
    443443    compiler.codeGenerator.op_mov_RV( sizeof(_int64), REG_RAX, dataTableOffset, Schedule::DataTable);
  • branches/x64_compiler_on_32/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Class.cpp

    r750 r759  
    22
    33#include "../common.h"
    4 #ifdef _AMD64_
     4#if defined _AMD64_ || defined BUILD_X64_COMPILER
    55#include "../../compiler_x64/opcode.h"
    66#else
  • branches/x64_compiler_on_32/abdev/BasicCompiler_Common/src/LexicalScope.cpp

    r750 r759  
    66#include "../common.h"
    77
    8 #ifdef _AMD64_
     8#if defined _AMD64_ || defined BUILD_X64_COMPILER
    99#include "../../compiler_x64/opcode.h"
    1010#else
     
    125125            //メモリを解放する
    126126
    127 #ifdef _AMD64_
     127#if defined _AMD64_ || defined BUILD_X64_COMPILER
    128128            //x64ビットコード
    129129
  • branches/x64_compiler_on_32/abdev/BasicCompiler_Common/src/Linker.cpp

    r750 r759  
    2222        if( schedule.GetType() == Schedule::DataTable )
    2323        {
    24 #ifdef _WIN64
     24#if defined _WIN64 || defined BUILD_X64_COMPILER
    2525            dataTable.OverwriteInt64(
    2626                schedule.GetOffset(),
     
    6262            {
    6363                // 置き換える値が0の場合を除く
    64 #ifdef _WIN64
     64#if defined _WIN64 || defined BUILD_X64_COMPILER
    6565                dataTable.OverwriteInt64(
    6666                    schedule.GetOffset(),
     
    8585        if( schedule.GetType() == Schedule::DllProc )
    8686        {
    87 #ifdef _AMD64_
     87#if defined _AMD64_ || defined BUILD_X64_COMPILER
    8888            nativeCode.Overwrite(
    8989                schedule.GetOffset(),
     
    192192            LONG_PTR vtblOffset = schedule.GetClass().GetComVtblOffset();
    193193
    194 #ifdef _WIN64
     194#if defined _WIN64 || defined BUILD_X64_COMPILER
    195195            dataTable.OverwriteInt64(
    196196                schedule.GetOffset(),
     
    209209            LONG_PTR vtblMasterListOffset = schedule.GetClass().GetVtblMasterListOffset();
    210210
    211 #ifdef _WIN64
     211#if defined _WIN64 || defined BUILD_X64_COMPILER
    212212            dataTable.OverwriteInt64(
    213213                schedule.GetOffset(),
     
    232232            LONG_PTR typeInfoDataTableOffset = schedule.GetClass().GetTypeInfoDataTableOffset();
    233233
    234 #ifdef _WIN64
     234#if defined _WIN64 || defined BUILD_X64_COMPILER
    235235            dataTable.OverwriteInt64(
    236236                schedule.GetOffset(),
  • branches/x64_compiler_on_32/abdev/BasicCompiler_Common/src/ProcedureGenerator.cpp

    r750 r759  
    11#include "stdafx.h"
    22
    3 #ifdef _AMD64_
     3#if defined _AMD64_ || defined BUILD_X64_COMPILER
    44#include "../../compiler_x64/opcode.h"
    55#else
Note: See TracChangeset for help on using the changeset viewer.