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 {
130130 return 'deref' ;
131131 case ECE . InstrType . COND :
132132 return `cond` ;
133+ case ECE . InstrType . SWITCH :
134+ return `switch` ;
133135 default :
134136 return 'INSTRUCTION' ;
135137 }
@@ -192,6 +194,9 @@ export class Control extends Visible {
192194 return 'Dereference most recently pushed value from stash' ;
193195 case ECE . InstrType . COND :
194196 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` ;
195200 default :
196201 return 'INSTRUCTION' ;
197202 }
You can’t perform that action at this time.
0 commit comments