I'm almost there

This commit is contained in:
Artur Ventura 2011-07-22 13:50:11 +01:00
parent f20e17422d
commit 90428eaf7d

View File

@ -1125,13 +1125,14 @@ DEFOP(LDC)
switch(cstt.id){ switch(cstt.id){
case CONSTANT_Integer: case CONSTANT_Integer:
case CONSTANT_Float: case CONSTANT_Float:
case CONSTANT_Double:
case CONSTANT_Long:
OPPUSH(cstt.value); OPPUSH(cstt.value);
break;
case CONSTANT_String: case CONSTANT_String:
PANIC("NEW STRING FROM CONSTANT POOL NOT IMPLEMENTED"); PANIC("NEW STRING FROM CONSTANT POOL NOT IMPLEMENTED");
break;
default: default:
PANIC("What now?"); PANIC("What now?");
break;
} }
ENDDEF ENDDEF
@ -1143,10 +1144,13 @@ DEFOP(LDC_W)
switch(cstt.id){ switch(cstt.id){
case CONSTANT_Integer: case CONSTANT_Integer:
OPPUSHD(cstt.value); OPPUSHD(cstt.value);
break;
case CONSTANT_Float: case CONSTANT_Float:
OPPUSH(cstt.value); OPPUSH(cstt.value);
break;
case CONSTANT_String: case CONSTANT_String:
PANIC("NEW STRING FROM CONSTANT POOL NOT IMPLEMENTED"); PANIC("NEW STRING FROM CONSTANT POOL NOT IMPLEMENTED");
break;
default: default:
PANIC("What now?"); PANIC("What now?");
} }