System\Linq\Expressions\Interpreter\LightCompiler.cs (43)
317LocalDefinition local = _locals.DefineLocal(p, 0);
341return new Interpreter(lambdaName, _locals, _instructions.ToArray(), debugInfos);
380if (_locals.TryGetLocalOrClosure(expr, out LocalVariable? local))
384_locals.Box(expr, _instructions);
391return _locals.AddClosureVariable(expr);
401if (!_locals.TryGetLocalOrClosure(variable, out LocalVariable? local))
543LocalDefinition local = _locals.DefineLocal(variable, start);
566_locals.UndefineLocal(local, _instructions.Count);
626local = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.Count);
646_locals.UndefineLocal(local, _instructions.Count);
677LocalDefinition local = _locals.DefineLocal(Expression.Parameter(value.Type), start);
681_locals.UndefineLocal(local, _instructions.Count);
708LocalDefinition local = _locals.DefineLocal(Expression.Parameter(value.Type), start);
712_locals.UndefineLocal(local, _instructions.Count);
769LocalDefinition leftTemp = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.Count);
773LocalDefinition rightTemp = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.Count);
883_locals.UndefineLocal(leftTemp, _instructions.Count);
884_locals.UndefineLocal(rightTemp, _instructions.Count);
1047LocalDefinition opTemp = _locals.DefineLocal(Expression.Parameter(operandType), _instructions.Count);
1090updater.UndefineTemps(_instructions, _locals);
1100_locals.UndefineLocal(opTemp, _instructions.Count);
1378LocalDefinition result = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.Count);
1379LocalDefinition leftTemp = _locals.DefineLocal(Expression.Parameter(node.Left.Type), _instructions.Count);
1403LocalDefinition rightTemp = _locals.DefineLocal(Expression.Parameter(node.Right.Type), _instructions.Count);
1447_locals.UndefineLocal(leftTemp, _instructions.Count);
1448_locals.UndefineLocal(rightTemp, _instructions.Count);
1449_locals.UndefineLocal(result, _instructions.Count);
1599LocalDefinition temp = _locals.DefineLocal(Expression.Parameter(node.SwitchValue.Type), _instructions.Count);
1625_locals.UndefineLocal(temp, _instructions.Count);
2011LocalDefinition local = _locals.DefineLocal(parameter, _instructions.Count);
2065_locals.UndefineLocal(local, _instructions.Count);
2197updater.UndefineTemps(_instructions, _locals);
2205LocalDefinition left = _locals.DefineLocal(Expression.Parameter(array.Type, nameof(array)), _instructions.Count);
2206LocalDefinition right = _locals.DefineLocal(Expression.Parameter(index.Type, nameof(index)), _instructions.Count);
2270objTmp = _locals.DefineLocal(Expression.Parameter(indexNode.Object.Type), _instructions.Count);
2283LocalDefinition argTmp = _locals.DefineLocal(Expression.Parameter(arg.Type), _instructions.Count);
2308memberTemp = _locals.DefineLocal(Expression.Parameter(member.Expression.Type, "member"), _instructions.Count);
2360LocalDefinition objTmp = _locals.DefineLocal(Expression.Parameter(array.Type), _instructions.Count);
2371LocalDefinition argTmp = _locals.DefineLocal(Expression.Parameter(arg.Type), _instructions.Count);
2580if (compiler._locals.ClosureVariables != null)
2582foreach (ParameterExpression variable in compiler._locals.ClosureVariables.Keys)
2643LocalDefinition local = _locals.DefineLocal(temp, _instructions.Count);
2650_locals.UndefineLocal(local, _instructions.Count);