コード例 #1
0
            private FieldBuilder EmitLoadFreeEnv(FreeAddress address)
            {
                JITInterpreter_DS.EmitLoadThis(mILGenerator);
                ASTNodeVisitor_JITCompiler visitor = mParent;

                for (int i = 1; i < address.envIndex; ++i)
                {
                    mILGenerator.Emit(OpCodes.Ldfld, visitor.mHeapEnvFieldBuilders[PREV_ENV_FIELD_NAME]);
                    visitor = visitor.mParent;
                }
                return(visitor.mHeapEnvFieldBuilders[visitor.mLambdaNode.locals[address.index]]);
            }
コード例 #2
0
 private void EndEmitPopFree(FreeAddress address, FieldBuilder field)
 {
     mILGenerator.Emit(OpCodes.Stfld, field);
 }
コード例 #3
0
 private FieldBuilder BeginEmitPopFree(FreeAddress address)
 {
     return(EmitLoadFreeEnv(address));
 }
コード例 #4
0
            private void EmitLoadFree(FreeAddress address)
            {
                var field = EmitLoadFreeEnv(address);

                mILGenerator.Emit(OpCodes.Ldfld, field);
            }
コード例 #5
0
 private void EndEmitPopFree(FreeAddress address)
 {
     mILGenerator.Emit(OpCodes.Stfld, typeof(SharedValue).GetField("value"));
 }
コード例 #6
0
 private void BeginEmitPopFree(FreeAddress address)
 {
     JITInterpreter_DS2.EmitLoadThis(mILGenerator);
     mILGenerator.Emit(OpCodes.Ldfld, FieldBuilders[address]);
 }
コード例 #7
0
 private void EmitLoadFree(FreeAddress address)
 {
     JITInterpreter_DS2.EmitLoadThis(mILGenerator);
     mILGenerator.Emit(OpCodes.Ldfld, FieldBuilders[address]);
     mILGenerator.Emit(OpCodes.Ldfld, typeof(SharedValue).GetField("value"));
 }
コード例 #8
0
 private void BeginEmitPopFree(FreeAddress address)
 {
     JITInterpreter_DS2.EmitLoadThis(mILGenerator);
     mILGenerator.Emit(OpCodes.Ldfld, FieldBuilders[address]);
 }
コード例 #9
0
 private void EndEmitPopFree(FreeAddress address)
 {
     mILGenerator.Emit(OpCodes.Stfld, typeof(SharedValue).GetField("value"));
 }
コード例 #10
0
 private void EmitLoadFree(FreeAddress address)
 {
     JITInterpreter_DS2.EmitLoadThis(mILGenerator);
     mILGenerator.Emit(OpCodes.Ldfld, FieldBuilders[address]);
     mILGenerator.Emit(OpCodes.Ldfld, typeof(SharedValue).GetField("value"));
 }
コード例 #11
0
 private void EndEmitPopFree(FreeAddress address, FieldBuilder field)
 {
     mILGenerator.Emit(OpCodes.Stfld, field);
 }
コード例 #12
0
 private FieldBuilder EmitLoadFreeEnv(FreeAddress address)
 {
     JITInterpreter_DS.EmitLoadThis(mILGenerator);
     ASTNodeVisitor_JITCompiler visitor = mParent;
     for (int i = 1; i < address.envIndex; ++i) {
         mILGenerator.Emit(OpCodes.Ldfld, visitor.mHeapEnvFieldBuilders[PREV_ENV_FIELD_NAME]);
         visitor = visitor.mParent;
     }
     return visitor.mHeapEnvFieldBuilders[visitor.mLambdaNode.locals[address.index]];
 }
コード例 #13
0
 private void EmitLoadFree(FreeAddress address)
 {
     var field = EmitLoadFreeEnv(address);
     mILGenerator.Emit(OpCodes.Ldfld, field);
 }
コード例 #14
0
 private FieldBuilder BeginEmitPopFree(FreeAddress address)
 {
     return EmitLoadFreeEnv(address);
 }