File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
features/cseMachine/java/components Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ export async function javaRun(
112
112
try {
113
113
const binaryWriter = new BinaryWriter ( ) ;
114
114
const classes = compileFromSource ( javaCode ) ;
115
+ console . debug ( classes )
115
116
classes . forEach ( c => {
116
117
compiled [ c . className + '.class' ]
117
118
= Buffer . from ( binaryWriter . generateBinary ( c . classFile ) ) . toString ( 'base64' ) ;
Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ export class Control extends Visible {
128
128
return `res ${ resInstr . name } ` ;
129
129
case ECE . InstrType . DEREF :
130
130
return 'deref' ;
131
+ case ECE . InstrType . COND :
132
+ return `cond` ;
131
133
default :
132
134
return 'INSTRUCTION' ;
133
135
}
@@ -188,6 +190,8 @@ export class Control extends Visible {
188
190
return `Resolve field ${ resInstr . name } of most recently pushed value from stash` ;
189
191
case ECE . InstrType . DEREF :
190
192
return 'Dereference most recently pushed value from stash' ;
193
+ case ECE . InstrType . COND :
194
+ return 'Evaluate condition and push either consequent or alternative to stash' ;
191
195
default :
192
196
return 'INSTRUCTION' ;
193
197
}
You can’t perform that action at this time.
0 commit comments