harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-frederic Clere <jfcl...@telefonica.net>
Subject [BootJVM] jvm/src/opcode.c patch
Date Mon, 31 Oct 2005 22:47:46 GMT
Hi,

I would like to propose the following patch:
+++
jfclere@jfcexpert:~/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM> 
svn diff jvm/src/opcode.c
Index: jvm/src/opcode.c
===================================================================
--- jvm/src/opcode.c    (revision 329310)
+++ jvm/src/opcode.c    (working copy)
@@ -985,7 +985,7 @@
  * creating better readability of the code.
  */

-static void dummy1(void) { char *p, *dummy2; dummy2 = p; dummy1(); }
+static void dummy1(void) { void (*p)()=NULL; p(); }
 #define STUB { dummy1(); }

 switch(opcode)
+++
The idea is to core ASAP when we reach a not yet supported opcode, any 
comment?

Cheers

Jean-Frederic

Mime
View raw message