Skip to content

Commit

Permalink
continue refactoring again
Browse files Browse the repository at this point in the history
  • Loading branch information
pufferfish101007 committed Mar 15, 2024
1 parent 89cf262 commit 82e1508
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,9 @@ impl IrOpcode {
| looks_setsizeto
| looks_changesizeby
| motion_turnleft
| motion_turnright
| motion_turnright => vec![Number],
// todo: looks_switchcostumeto waiting on generic monomorphisation to work properly
| looks_switchcostumeto => vec![Any],
looks_switchcostumeto => vec![Any],
pen_changePenColorParamBy | pen_setPenColorParamTo => vec![String, Number],
motion_gotoxy => vec![Number, Number],
_ => hq_todo!("{:?}", &self),
Expand Down Expand Up @@ -1407,11 +1407,11 @@ impl IrBlockVec for Vec<IrBlock> {
);
vec![
IrOpcode::operator_round,
IrOpcode::hq_cast(Integer, Unknown),
IrOpcode::hq_cast(ConcreteInteger, Unknown),
IrOpcode::data_teevariable {
VARIABLE: looper_id,
},
IrOpcode::hq_cast(Integer, Unknown),
IrOpcode::hq_cast(Unknown, ConcreteInteger),
IrOpcode::math_number { NUM: 1.0 },
IrOpcode::operator_lt,
IrOpcode::hq_goto_if {
Expand Down
2 changes: 1 addition & 1 deletion src/targets/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ fn instructions(
(Unknown, Float) => vec![Call(func_indices::CAST_ANY_FLOAT)],
(Unknown, Boolean) => vec![Call(func_indices::CAST_ANY_BOOL)],
(Unknown, ConcreteInteger) => vec![Call(func_indices::CAST_ANY_INT)],
_ => hq_todo!("unimplemented cast: {:?} -> {:?} at {:?}", to, from, op),
_ => hq_todo!("unimplemented cast: {:?} -> {:?} at {:?}", from, to, op),
},
other => hq_todo!("missing WASM impl for {:?}", other),
};
Expand Down

0 comments on commit 82e1508

Please sign in to comment.