-
Couldn't load subscription status.
- Fork 20
Update interpreter and test suite for table64 #53
Conversation
d5fcb12 to
ce08751
Compare
|
I didn't end up duplicating all of the table.* tests here but just enough to get a little coverage for each instruction. Let me know if you think its worth duplicating more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, mostly nits, except for the question about the table size limit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Poking at this I think there's one issue I flagged below, but mind also adding tests for table.copy? That'll likely want to inherit the same logic for memory.copy where the src/dst offsets have static types but the length-to-copy is the minimum of the two sizes.
| (table.init $t0 1 (i32.const 7) (i32.const 0) (i32.const 4))) | ||
| (table.init $t0 2 (i32.const 7) (i32.const 0) (i32.const 4))) | ||
| (func (export "test-t64") | ||
| (table.init $t64 2 (i32.const 7) (i32.const 0) (i32.const 4))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this trailing i32.const needs to be i64.const?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching.. taking a look now.
Add missing memory specifier to memory.init execution semantics
No description provided.