mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
simplify cast like GC milestone 3
This commit is contained in:
parent
43ae520d5a
commit
b755f6fd08
@ -1445,8 +1445,8 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
|
||||
break;
|
||||
case CAST:
|
||||
codeStream.writeOpCode( REF_CAST );
|
||||
codeStream.writeValueType( options.types.valueOf( "java/lang/Object" ) );
|
||||
codeStream.writeValueType( type );
|
||||
// codeStream.writeValueType( options.types.valueOf( "java/lang/Object" ) );
|
||||
// codeStream.writeValueType( type );
|
||||
return;
|
||||
default:
|
||||
throw new Error( "Unknown operator: " + op );
|
||||
|
@ -954,7 +954,8 @@ public class TextModuleWriter extends ModuleWriter {
|
||||
operation = "struct.new_with_rtt";
|
||||
break;
|
||||
case CAST:
|
||||
operation = "ref.cast $java/lang/Object";
|
||||
operation = "ref.cast";
|
||||
type = null;
|
||||
break;
|
||||
default:
|
||||
throw new Error( "Unknown operator: " + op );
|
||||
|
Loading…
x
Reference in New Issue
Block a user