Changeset 11 in dev for BasicCompiler_Common/gc.cpp


Ignore:
Timestamp:
Dec 8, 2006, 3:25:27 AM (18 years ago)
Author:
dai_9181
Message:

Const変数の書き込み規制を有効化(グローバル/ローカル変数のみ)
定数オブジェクトと定数メンバは未実装。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/gc.cpp

    r5 r11  
    2424    OpcodeDim(temporary,0);
    2525
    26     GetVarOffset(1,"_System_gc_GlobalRoot_StartPtr",&type,&RelativeVar,&lpIndex);
     26    GetVarOffsetReadWrite("_System_gc_GlobalRoot_StartPtr",&type,&RelativeVar,&lpIndex);
    2727
    2828    //mov rax,ptr
     
    4444    OpcodeDim(temporary,0);
    4545
    46     GetVarOffset(1,"_System_gc_GlobalRoot_Size",&type,&RelativeVar,&lpIndex);
     46    GetVarOffsetReadWrite("_System_gc_GlobalRoot_Size",&type,&RelativeVar,&lpIndex);
    4747
    4848    //mov rax,ptr
     
    6565    OpcodeDim(temporary,0);
    6666
    67     GetVarOffset(1,"_System_gc_StackRoot_StartPtr",&type,&RelativeVar,&lpIndex);
     67    GetVarOffsetReadWrite("_System_gc_StackRoot_StartPtr",&type,&RelativeVar,&lpIndex);
    6868
    6969    //mov rax,rsp
Note: See TracChangeset for help on using the changeset viewer.