Philipp Tomsich
Edwin Steiner
- $Id: global.h 792 2003-12-16 18:49:52Z edwin $
+ $Id: global.h 800 2003-12-16 22:47:59Z edwin $
*/
extern bool opt_rt; /* Rapid Type Analysis for better inlining CO-RT*/
extern bool opt_xta; /* X Type Analysis for better inlining CO-XTA*/
extern bool opt_vta; /* Variable Type Analysis for better inlining CO-VTA*/
+extern bool opt_verify; /* true if classfiles should be verified */
#ifdef TYPECHECK_VERBOSE_OPT
extern bool typecheckverbose;
#endif
Changes: Mark Probst
Philipp Tomsich
- $Id: headers.c 771 2003-12-13 23:11:08Z stefan $
+ $Id: headers.c 800 2003-12-16 22:47:59Z edwin $
*/
bool opt_rt = false; /* true if RTA parse should be used RT-CO */
bool opt_xta = false; /* true if XTA parse should be used XTA-CO */
bool opt_vta = false; /* true if VTA parse should be used VTA-CO */
+bool opt_verify = true; /* true if classfiles should be verified */
bool showmethods = false;
bool showconstantpool = false;
Changes: Edwin Steiner
- $Id: jit.c 796 2003-12-16 22:28:18Z edwin $
+ $Id: jit.c 800 2003-12-16 22:47:59Z edwin $
*/
*******************************************************************************/
+#if 0
#define LOG_STEP(step) \
if (compileverbose) { \
char logtext[MAXLOGTEXT]; \
utf_sprint(logtext+strlen(logtext), m->descriptor); \
log_text(logtext); \
}
+#else
+#define LOG_STEP(step)
+#endif
methodptr jit_compile(methodinfo *m)
{
analyse_stack();
#ifdef CACAO_TYPECHECK
- LOG_STEP("Typechecking");
- typecheck();
- LOG_STEP("Done typechecking");
+ if (opt_verify) {
+ LOG_STEP("Typechecking");
+ typecheck();
+ LOG_STEP("Done typechecking");
+ }
#endif
if (opt_loops) {
- Calling the class loader
- Running the main method
- $Id: main.c 771 2003-12-13 23:11:08Z stefan $
+ $Id: main.c 800 2003-12-16 22:47:59Z edwin $
*/
bool getloadingtime = false; /* to measure the runtime */
s8 loadingtime = 0;
+bool opt_verify = true; /* true if classfiles should be verified */
+
static classinfo *topclass;
#define OPT_XTA 27
#define OPT_VTA 28
#define OPT_VERBOSETC 29
+#define OPT_NOVERIFY 30
struct {char *name; bool arg; int value;} opts[] = {
{"ms", true, OPT_MS},
{"mx", true, OPT_MX},
{"noasyncgc", false, OPT_IGNORE},
- {"noverify", false, OPT_IGNORE},
+ {"noverify", false, OPT_NOVERIFY},
{"oss", true, OPT_IGNORE},
{"ss", true, OPT_IGNORE},
{"v", false, OPT_VERBOSE1},
#if defined(__ALPHA__)
printf(" -noieee .............. don't use ieee compliant arithmetic\n");
#endif
+ printf(" -noverify ............ don't verify classfiles\n");
printf(" -softnull ............ use software nullpointer check\n");
printf(" -time ................ measure the runtime\n");
printf(" -stat ................ detailed compiler statistics\n");
opt_noieee = true;
break;
+ case OPT_NOVERIFY:
+ opt_verify = false;
+ break;
+
case OPT_SOFTNULL:
checknull = true;
break;
- Calling the class loader
- Running the main method
- $Id: cacao.c 771 2003-12-13 23:11:08Z stefan $
+ $Id: cacao.c 800 2003-12-16 22:47:59Z edwin $
*/
bool getloadingtime = false; /* to measure the runtime */
s8 loadingtime = 0;
+bool opt_verify = true; /* true if classfiles should be verified */
+
static classinfo *topclass;
#define OPT_XTA 27
#define OPT_VTA 28
#define OPT_VERBOSETC 29
+#define OPT_NOVERIFY 30
struct {char *name; bool arg; int value;} opts[] = {
{"ms", true, OPT_MS},
{"mx", true, OPT_MX},
{"noasyncgc", false, OPT_IGNORE},
- {"noverify", false, OPT_IGNORE},
+ {"noverify", false, OPT_NOVERIFY},
{"oss", true, OPT_IGNORE},
{"ss", true, OPT_IGNORE},
{"v", false, OPT_VERBOSE1},
#if defined(__ALPHA__)
printf(" -noieee .............. don't use ieee compliant arithmetic\n");
#endif
+ printf(" -noverify ............ don't verify classfiles\n");
printf(" -softnull ............ use software nullpointer check\n");
printf(" -time ................ measure the runtime\n");
printf(" -stat ................ detailed compiler statistics\n");
opt_noieee = true;
break;
+ case OPT_NOVERIFY:
+ opt_verify = false;
+ break;
+
case OPT_SOFTNULL:
checknull = true;
break;
Changes: Mark Probst
Philipp Tomsich
- $Id: headers.c 771 2003-12-13 23:11:08Z stefan $
+ $Id: headers.c 800 2003-12-16 22:47:59Z edwin $
*/
bool opt_rt = false; /* true if RTA parse should be used RT-CO */
bool opt_xta = false; /* true if XTA parse should be used XTA-CO */
bool opt_vta = false; /* true if VTA parse should be used VTA-CO */
+bool opt_verify = true; /* true if classfiles should be verified */
bool showmethods = false;
bool showconstantpool = false;
Philipp Tomsich
Edwin Steiner
- $Id: global.h 792 2003-12-16 18:49:52Z edwin $
+ $Id: global.h 800 2003-12-16 22:47:59Z edwin $
*/
extern bool opt_rt; /* Rapid Type Analysis for better inlining CO-RT*/
extern bool opt_xta; /* X Type Analysis for better inlining CO-XTA*/
extern bool opt_vta; /* Variable Type Analysis for better inlining CO-VTA*/
+extern bool opt_verify; /* true if classfiles should be verified */
#ifdef TYPECHECK_VERBOSE_OPT
extern bool typecheckverbose;
#endif
Changes: Edwin Steiner
- $Id: jit.c 796 2003-12-16 22:28:18Z edwin $
+ $Id: jit.c 800 2003-12-16 22:47:59Z edwin $
*/
*******************************************************************************/
+#if 0
#define LOG_STEP(step) \
if (compileverbose) { \
char logtext[MAXLOGTEXT]; \
utf_sprint(logtext+strlen(logtext), m->descriptor); \
log_text(logtext); \
}
+#else
+#define LOG_STEP(step)
+#endif
methodptr jit_compile(methodinfo *m)
{
analyse_stack();
#ifdef CACAO_TYPECHECK
- LOG_STEP("Typechecking");
- typecheck();
- LOG_STEP("Done typechecking");
+ if (opt_verify) {
+ LOG_STEP("Typechecking");
+ typecheck();
+ LOG_STEP("Done typechecking");
+ }
#endif
if (opt_loops) {