File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/features/cseMachine/java/components Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,8 @@ export class Control extends Visible {
130
130
return 'deref' ;
131
131
case ECE . InstrType . COND :
132
132
return `cond` ;
133
+ case ECE . InstrType . SWITCH :
134
+ return `switch` ;
133
135
default :
134
136
return 'INSTRUCTION' ;
135
137
}
@@ -192,6 +194,9 @@ export class Control extends Visible {
192
194
return 'Dereference most recently pushed value from stash' ;
193
195
case ECE . InstrType . COND :
194
196
return 'Evaluate condition and push either consequent or alternative to stash' ;
197
+ case ECE . InstrType . SWITCH :
198
+ const switchInstr = controlItem as ECE . SwitchInstr ;
199
+ return `Switch on ${ astToString ( switchInstr . expr ) } and push result of case to stash` ;
195
200
default :
196
201
return 'INSTRUCTION' ;
197
202
}
You can’t perform that action at this time.
0 commit comments