-
Notifications
You must be signed in to change notification settings - Fork 615
feat(avm): storage #4673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(avm): storage #4673
Changes from 42 commits
d630b44
518ec41
636c316
f92dcdd
c7986a3
ab832ff
5c5156f
aecdd3a
1002bb9
ec6ce1d
38181cd
9eeb153
ea0d0c6
9d4fe7e
e9db646
7af5de5
621f593
f2fe7fc
e92208f
1d26069
c4e0c5e
543e093
800a774
1bd7952
2522293
94466de
fdda301
d16dd58
eded899
025dc2a
d633b8b
3a327dd
a932153
7525ee8
4997ce4
1ad0307
d534d2d
85d7ce8
1bde64b
ccd689f
4916061
b90675d
84670d6
332f333
957d0bd
d0386d4
51f8570
3499714
78de9b7
6cdd047
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [package] | ||
| name = "should_fail_with_mismatch" | ||
| type = "bin" | ||
| authors = [""] | ||
| [dependencies] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -255,6 +255,12 @@ export class TaggedMemory { | |
| } | ||
| } | ||
|
|
||
| public checkTagLessThanEqual(tag: TypeTag, offset: number) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider having checkIsValidMemoryOffsetTag() or something like that, which we can then just use everywhere we need to check for mem.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in replace of this or in addition? |
||
| if (this.getTag(offset) > tag) { | ||
| throw TagCheckError.forOffset(offset, TypeTag[this.getTag(offset)], TypeTag[tag]); | ||
| } | ||
| } | ||
|
|
||
| public static checkIsIntegralTag(tag: TypeTag) { | ||
| if (![TypeTag.UINT8, TypeTag.UINT16, TypeTag.UINT32, TypeTag.UINT64, TypeTag.UINT128].includes(tag)) { | ||
| throw TagCheckError.forTag(TypeTag[tag], 'integral'); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.