Repository navigation
Adding vm.list type. - #2198
Closed
benvanik wants to merge 1 commit into
Closed
Adding vm.list type.#2198benvanik wants to merge 1 commit into
benvanik wants to merge 1 commit into
Conversation
benvanik
marked this pull request as ready for review
June 12, 2020 04:12
benvanik
force-pushed
the
benvanik-vm-list
branch
4 times, most recently
from
June 16, 2020 00:16
5398253 to
0f3b205
Compare
| type.predicate> | ||
| ]>, "list<" # type.description # ">"> { | ||
| // Set the builder call if the base type has a builder call. | ||
| string builderCall = !if(!empty(type.builderCall), |
stellaraccident
approved these changes
Jun 16, 2020
This is implemented as a ref type that will be able to be passed to modules via the VM ABI. Contents can be any primitive type or ref type (possibly ? for any). If a concrete ref type is given then all accesses will be checked, and otherwise any ref type is allowed in the list. Primitive types will be converted from their storage format (for example !vm.list<i8>) to the form they are accessed in (i32).
benvanik
force-pushed
the
benvanik-vm-list
branch
from
June 16, 2020 15:51
0f3b205 to
c657d35
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is implemented as a ref type that will be able to be passed to modules
via the VM ABI. Contents can be any primitive type or ref type (possibly
? for any). If a concrete ref type is given then all accesses will be
checked, and otherwise any ref type is allowed in the list. Primitive types
will be converted from their storage format (for example
!vm.list<i8>) tothe form they are accessed in (i32).