Пример #1
0
 public static void ReturnLargeValue(long retVal)
 {
     DebugWriter.ReturnedValueDebugWrite(retVal);
     Program.MethodFrameStack.Pop();
     if (Program.MethodFrameStack.Count >= 0)
     {
         MethodFrame parentFrame = Program.MethodFrameStack.Peek();
         Utility.Push(ref parentFrame.Stack, ref parentFrame.sp, retVal);
     }
 }
Пример #2
0
 public static void RunJavaFunction(MethodInfo methodInfo, params int[] arguments)
 {
     DebugWriter.CallFuncDebugWrite(methodInfo, arguments);
     if (methodInfo.HasFlag(MethodInfoFlag.Native))
     {
         NativeMethodFrame methodFrame = new NativeMethodFrame(methodInfo);
         arguments.CopyTo(methodFrame.Locals, 0);
         methodFrame.Execute();
     }
     else
     {
         MethodFrame methodFrame = new MethodFrame(methodInfo);
         arguments.CopyTo(methodFrame.Locals, 0);
         methodFrame.Execute();
     }
 }
Пример #3
0
 public static void ReturnVoid()
 {
     DebugWriter.ReturnedVoidDebugWrite();
     Program.MethodFrameStack.Pop();
 }