You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[interp] Support methods that need more than 64k data items #59221
See #59220. In that PR we addressed particular machine-generated methods that only had ldc, ldsfld and stsfld instructions. But in general if a method gets large enough and it may use more than 64k data items.
There are a number of approaches we could investigate - depending on the solution complexity and the impact on interpreter performance:
We could use 32-bit data item indices in general
We could add .w variants for every opcode.
We could use a variable-length encoding of the data item index (and get variable-length instructions in general).
We could add a new data.item.base instruction that let's us specify a 32-bit base data item address before any opcode that needs access to data items with index > 64k. (we will also need to validate that all the items an opcode needs are within 64k of the base).
We could reserve the top bit of a data item index to indicate some kind of indirection (maybe to a preceeding "nop.with.data" instruction that has the full 32-bit index).
Activity
lambdageek commentedon Sep 16, 2021
/cc @BrzVlad