Changeset 224 in dev for trunk/abdev/BasicCompiler_Common


Ignore:
Timestamp:
Jul 21, 2007, 4:46:33 AM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/abdev/BasicCompiler_Common
Files:
1 added
4 edited

Legend:

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

    r184 r224  
    11#pragma once
    22
    3 #include <DataTable.h>
    4 
    53void ReallocNativeCodeBuffer();
    6 
    7 class NativeCode
    8 {
    9     DataTable dataTable;
    10 public:
    11     DataTable &GetDataTable()
    12     {
    13         return dataTable;
    14     }
    15 };
  • trunk/abdev/BasicCompiler_Common/include/Compiler.h

    r206 r224  
    44#include <NamespaceSupporter.h>
    55#include <MetaImpl.h>
     6#include <DataTable.h>
    67
    78class Compiler
    89{
    9     // ネイティブコード
    10     NativeCode nativeCode;
    11 
    1210    // 名前空間サポート
    1311    NamespaceSupporter namespaceSupporter;
     
    1614    MetaImpl metaImpl;
    1715
     16    // データテーブル
     17    DataTable dataTable;
     18
    1819public:
    19     NativeCode &GetNativeCode()
    20     {
    21         return nativeCode;
    22     }
    2320
    2421    NamespaceSupporter &GetNamespaceSupporter()
     
    3229    }
    3330
     31    DataTable &GetDataTable()
     32    {
     33        return dataTable;
     34    }
     35
    3436    static bool StringToType( const std::string &typeName, Type &type );
    3537    static const std::string TypeToString( const Type &type );
  • trunk/abdev/BasicCompiler_Common/include/Procedure.h

    r215 r224  
    1111#include <Parameter.h>
    1212#include <Variable.h>
     13#include <NativeCode.h>
    1314
    1415class CClass;
     
    146147    // 識別ID
    147148    int id;
     149
     150    // ネイティブコード
     151    NativeCode nativeCode;
    148152
    149153    // XMLシリアライズ用
     
    171175        ar & BOOST_SERIALIZATION_NVP( localVars );
    172176        ar & BOOST_SERIALIZATION_NVP( id );
     177        ar & BOOST_SERIALIZATION_NVP( nativeCode );
    173178    }
    174179
  • trunk/abdev/BasicCompiler_Common/src/Class.cpp

    r218 r224  
    714714    }
    715715
    716     vtbl_offset=compiler.GetNativeCode().GetDataTable().AddBinary((void *)ppsi,GetVtblNum()*sizeof(LONG_PTR));
     716    vtbl_offset=compiler.GetDataTable().AddBinary((void *)ppsi,GetVtblNum()*sizeof(LONG_PTR));
    717717
    718718    for( int i=0; i < GetVtblNum(); i++ ){
     
    728728
    729729    LONG_PTR *pVtbl;
    730     pVtbl=(LONG_PTR *)((char *)compiler.GetNativeCode().GetDataTable().GetPtr()+vtbl_offset);
     730    pVtbl=(LONG_PTR *)((char *)compiler.GetDataTable().GetPtr()+vtbl_offset);
    731731
    732732    int i;
Note: See TracChangeset for help on using the changeset viewer.