* Added opt_jit, opt_intrp
authortwisti <none@none>
Mon, 5 Sep 2005 21:39:50 +0000 (21:39 +0000)
committertwisti <none@none>
Mon, 5 Sep 2005 21:39:50 +0000 (21:39 +0000)
* Added temporary vm_debug (for intrp tracing)

src/vm/options.c
src/vm/options.h

index 7772f055a99f70e69e4aa3f0a7af6c36af3d4d51..de928fd3475b9631d4b915df3098ccb9fd99d126 100644 (file)
@@ -1,4 +1,4 @@
-/* options.c - contains global options
+/* src/vm/options.c - contains global options
 
    Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
    R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
@@ -26,7 +26,9 @@
 
    Authors: Christian Thalinger
 
-   $Id: options.c 2959 2005-07-09 17:30:32Z twisti $
+   Changes:
+
+   $Id: options.c 3152 2005-09-05 21:39:50Z twisti $
 
 */
 
 
 /* command line option */
 
+bool vm_debug = false;
+
+#if defined(ENABLE_JIT)
+bool opt_jit = true;            /* JIT mode execution (default)               */
+bool opt_intrp = false;         /* interpreter mode execution                 */
+#else
+bool opt_jit = false;           /* JIT mode execution                         */
+bool opt_intrp = true;          /* interpreter mode execution (default)       */
+#endif
+
 bool opt_verbose = false;
 bool compileall = false;
-bool runverbose = false;       /* trace all method invocation                */
+bool runverbose = false;        /* trace all method invocation                */
 bool verboseexception = false;
 
 bool loadverbose = false;
index be5a426402f5a07d1116c96a5a8e090a50aa9e6b..97b34605aa5f2994613863f30dee5d6dcd619f58 100644 (file)
@@ -1,4 +1,4 @@
-/* vm/options.h - define global options extern
+/* src/vm/options.h - define global options extern
 
    Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
    R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
@@ -26,7 +26,9 @@
 
    Authors: Christian Thalinger
 
-   $Id: options.h 2950 2005-07-09 13:37:29Z twisti $
+   Changes:
+
+   $Id: options.h 3152 2005-09-05 21:39:50Z twisti $
 
 */
 
@@ -56,6 +58,11 @@ struct opt_struct {
 
 /* global variables ***********************************************************/
 
+extern bool vm_debug;
+
+extern bool opt_jit;
+extern bool opt_intrp;
+
 extern bool opt_verbose;
 extern bool compileall;
 extern bool runverbose;