aboutsummaryrefslogtreecommitdiff
path: root/src/interp
Commit message (Collapse)AuthorAgeFilesLines
* Add i32.xorXavier Del Campo Romero2025-11-151-1/+1
|
* Add select operatorXavier Del Campo Romero2025-11-151-1/+1
|
* Check memory linear accesses are within boundsXavier Del Campo Romero2025-11-154-2/+55
| | | | | | | | | WebAssembly defines how many pages of linear memory are owned by the instance on startup. This limit can then be bumped via the grow_memory operator. Therefore, accesses outside the defined bounds are considered an exception.
* Add br_tableXavier Del Campo Romero2025-11-151-1/+1
| | | | | | | | | br_table is in fact a generalization of other branch types like br or br_if, since br_table contains several branches for the same pc inside the nw_lo section. Therefore, this kind of branch forced some changes to nwp_break and those relying on it.
* Add i32.shr_{s,u}Xavier Del Campo Romero2025-11-131-2/+2
|
* execute.c: Report exception also on repeated callbackXavier Del Campo Romero2025-11-121-1/+11
| | | | | | So far, exceptions coming from the pc callback were only being reported on its first call. However, pc callbacks might assign a continuation callback if the operation cannot be completed on a single call.
* Fix prev_opXavier Del Campo Romero2025-11-122-2/+5
| | | | | | | | Assigning prev_op inside nwp_execute defeated the purpose because this function is meant to start the state machine for the given instruction. In other words, inspecting prev_op would in fact return the current opcode, instead of the previous opcode.
* Add i32_{gt,le}_{s,u}Xavier Del Campo Romero2025-11-121-4/+4
|
* Add current_memory and grow_memory operatorsXavier Del Campo Romero2025-11-101-2/+2
|
* Add if and else operatorsXavier Del Campo Romero2025-11-101-2/+2
|
* Add i32.lt_uXavier Del Campo Romero2025-11-091-1/+1
|
* Add i32.shlXavier Del Campo Romero2025-11-091-1/+1
|
* Add i32_store8Xavier Del Campo Romero2025-11-061-1/+1
|
* First commitXavier Del Campo Romero2025-11-0627-0/+1275