Shovel.Vm.Vm.HandlePrim0 C# (CSharp) Метод

HandlePrim0() статический приватный Метод

static private HandlePrim0 ( Vm vm ) : void
vm Vm
Результат void
        static void HandlePrim0(Vm vm)
        {
            var instruction = vm.CurrentInstruction ();
            if (vm.GetCurrentCache () == null) {
                var primName = (string)instruction.Arguments;
                if (!Vm.Prim0Hash.ContainsKey (primName)) {
                    vm.RaiseShovelError (String.Format (
                        "Cannot take address of primitive '{0}' (implemented as instruction).",
                        primName)
                    );
                }
                vm.SetCurrentCache (Value.Make (Vm.Prim0Hash [primName]));
            }
            vm.stack.Push ((Value)vm.GetCurrentCache ());
            vm.IncrementTicks (1);
            vm.programCounter++;
        }
Vm