Skip to content

Commit 41e66c8

Browse files
VolkerVolker
authored andcommitted
Add more TODO for open opcodes
1 parent 6ade59d commit 41e66c8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/de/inetsoftware/jwebassembly/module/ModuleGenerator.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ private void writeCode( CodeInputStream byteCode, ConstantPool constantPool ) t
616616
branchManager.addGotoOperator( codePos, offset, byteCode.getLineNumber() );
617617
instr = new WasmNopInstruction( codePos ); // marker of the line number for the branch manager
618618
break;
619+
//TODO case 168: // jsr
620+
//TODO case 169: // ret
619621
case 170: // tableswitch
620622
case 171: // lookupswitch
621623
writeSwitchCode( byteCode, op == 171 );
@@ -665,13 +667,22 @@ private void writeCode( CodeInputStream byteCode, ConstantPool constantPool ) t
665667
instr = new WasmCallInstruction( ref, codePos );
666668
break;
667669
//TODO case 185: // invokeinterface
670+
//TODO case 186: // invokedynamic
668671
//TODO case 187: // new
669672
//TODO case 188: // newarray
670673
//TODO case 189: // anewarray
671674
//TODO case 190: // arraylength
672675
//TODO case 191: // athrow
676+
//TODO case 192: // checkcast
677+
//TODO case 193: // instanceof
678+
//TODO case 194: // monitorenter
679+
//TODO case 195: // monitorexit
680+
//TODO case 196: // wide
673681
//TODO case 197: // multianewarray
682+
//TODO case 198: // ifnull
674683
//TODO case 199: // ifnonnull
684+
//TODO case 200: // goto_w
685+
//TODO case 201: // jsr_w
675686
default:
676687
throw new WasmException( "Unimplemented Java byte code operation: " + op, sourceFile, byteCode.getLineNumber() );
677688
}

0 commit comments

Comments
 (0)