コード例 #1
0
ファイル: codegen.cs プロジェクト: retahc/old-code
        EmitScope scope; // New scope for the method

        internal static void WalkArg(EmitContext ec, int i, uint vid)
        {
            if (ec.Resolving)
            {
                Variable v = ec.scope.MarkVariable(vid);
                v.IsArgument = true;
            }
            // Move argument from array to locals, required due to the cache used
            if (ec.Emitting)
            {
                Variable v = ec.scope.GetVariable(vid);
                ec.EmitLoadArg(i);
                ec.EmitStoreVar(v);
            }
        }
コード例 #2
0
ファイル: codegen.cs プロジェクト: emtees/old-code
 EmitScope scope; // New scope for the method
 
 internal static void WalkArg(EmitContext ec, int i, uint vid)
 {
     if(ec.Resolving) {
         Variable v = ec.scope.MarkVariable(vid);
         v.IsArgument = true;
     }
     // Move argument from array to locals, required due to the cache used
     if(ec.Emitting) {
         Variable v = ec.scope.GetVariable(vid);
         ec.EmitLoadArg(i);
         ec.EmitStoreVar(v);
     }
 }