Skip to content

Commit

Permalink
fixup! Instruction metrics table
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Mar 30, 2020
1 parent a1eb378 commit 2ce6d62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fizzy/instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ constexpr InstructionMetrics instruction_metrics_table[256] = {
/* 0x09 */ {},
/* 0x0a */ {},
/* end = 0x0b */ {0, 0},

// TODO: After br code is unreachable so stack height should be reset (according to the target
// label?) Similarly for return.
/* br = 0x0c */ {0, 0},
/* br_if = 0x0d */ {1, -1},
/* br_table = 0x0e */ {1, -1},
Expand Down

0 comments on commit 2ce6d62

Please sign in to comment.