Skip to content
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

fix: (gnovm) star expr assign for #1919 #2255

Merged
merged 39 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e34a322
don't allow max cycle configuration
deelawn Mar 27, 2024
2866d97
Revert "don't allow max cycle configuration"
deelawn Mar 27, 2024
7136f30
Merge remote-tracking branch 'upstream/master'
deelawn Mar 29, 2024
355b8e8
Merge remote-tracking branch 'upstream/master'
deelawn Apr 8, 2024
eca217b
Merge remote-tracking branch 'upstream/master'
deelawn Apr 10, 2024
63a9b5b
another try solving star expr assignment issue
deelawn Apr 11, 2024
e59b442
trying for a complete fix
deelawn Apr 17, 2024
abe008e
progress?
deelawn Apr 23, 2024
6ec50ed
limit only to assign (temp)
deelawn Apr 23, 2024
a572d56
move starexpr logic to PopAsPointer
deelawn Apr 23, 2024
601cc5e
removed op filter
deelawn Apr 23, 2024
14b5f3c
revert unnecessary change
deelawn Apr 23, 2024
8e2381d
move where IsLHS is set
deelawn Apr 23, 2024
1385b71
comments, formatting
deelawn Apr 23, 2024
4f21da8
better variable name
deelawn Apr 23, 2024
d1b1ef5
added tests
deelawn Apr 23, 2024
36fb3d7
Merge branch 'master' into fix/star-expr-assign
deelawn Apr 23, 2024
9fc4800
removed isLHS
deelawn May 31, 2024
6869b29
initial commit for 1919
jaekwon Jun 1, 2024
5208e7b
first commit; add *HeapItemValue as container base
jaekwon Jun 2, 2024
e9030ae
Delete gnovm/pkg/gnolang/talk.txt
jaekwon Jun 1, 2024
3eec971
fix tests
jaekwon Jun 2, 2024
460df9e
delete test file
jaekwon Jun 2, 2024
83c4857
delete unnecessary files
jaekwon Jun 2, 2024
1cb48e0
remove comments
jaekwon Jun 2, 2024
4faac4e
clean up ownership.go
jaekwon Jun 2, 2024
d4aa2c4
tpyo
jaekwon Jun 2, 2024
7e63ad1
added comment
jaekwon Jun 2, 2024
8c901bc
added comment
jaekwon Jun 2, 2024
1975921
Merge branch 'master' into dylan/star-expr-merge
deelawn Jun 3, 2024
d5b5b1c
golden tests
deelawn Jun 3, 2024
04496c6
examples golden tests
deelawn Jun 3, 2024
2078009
migrated txtar to file tests
deelawn Jun 3, 2024
acc219f
heap item value test
deelawn Jun 3, 2024
e60b62f
use init
deelawn Jun 3, 2024
45f67b4
added another heap item test
deelawn Jun 4, 2024
c4a44c3
Update gnovm/pkg/gnolang/ownership.go
jaekwon Jun 19, 2024
2700a5b
...
jaekwon Jun 19, 2024
946b544
Merge branch 'master' into jae/fix/star-expr-assign
jaekwon Jun 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 75 additions & 97 deletions examples/gno.land/p/demo/avl/z_0_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -25,67 +25,25 @@ func main() {
// Realm:
// switchrealm["gno.land/r/test"]
// u[a8ada09dee16d791fd406d629fe29bb0ed084a30:4]={
// "Fields": [
// {
// "T": {
// "@type": "/gno.PrimitiveType",
// "value": "16"
// },
// "V": {
// "@type": "/gno.StringValue",
// "value": "key0"
// }
// },
// {
// "T": {
// "@type": "/gno.PrimitiveType",
// "value": "16"
// },
// "V": {
// "@type": "/gno.StringValue",
// "value": "value0"
// }
// },
// {
// "T": {
// "@type": "/gno.PrimitiveType",
// "value": "64"
// }
// },
// {
// "N": "AQAAAAAAAAA=",
// "T": {
// "@type": "/gno.PrimitiveType",
// "value": "32"
// }
// },
// {
// "T": {
// "@type": "/gno.PointerType",
// "Elt": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// }
// }
// },
// {
// "T": {
// "@type": "/gno.PointerType",
// "Elt": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// }
// }
// }
// ],
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:4",
// "ModTime": "5",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:5",
// "ModTime": "7",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:7",
// "RefCount": "1"
// },
// "Value": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "627e8e517e7ae5db0f3b753e2a32b607989198b6",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:5"
// }
// }
// }
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:6]={
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:9]={
// "Fields": [
// {
// "T": {
Expand Down Expand Up @@ -140,13 +98,32 @@ func main() {
// }
// ],
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6",
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:9",
// "ModTime": "0",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:5",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:8",
// "RefCount": "1"
// }
// }
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:5]={
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:8]={
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:8",
// "ModTime": "0",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:7",
// "RefCount": "1"
// },
// "Value": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "b28057ab7be6383785c0a5503e8a531bdbc21851",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:9"
// }
// }
// }
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:7]={
// "Fields": [
// {
// "T": {
Expand Down Expand Up @@ -183,19 +160,13 @@ func main() {
// },
// "V": {
// "@type": "/gno.PointerValue",
// "Base": null,
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "6da365f0d6cacbcdf53cd5a4b125803cddce08c2",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:4"
// },
// "Index": "0",
// "TV": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "091729e38bda8724bce4c314f9624b91af679459",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:4"
// }
// }
// "TV": null
// }
// },
// {
Expand All @@ -208,35 +179,48 @@ func main() {
// },
// "V": {
// "@type": "/gno.PointerValue",
// "Base": null,
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "f216afe7b5a17f4ebdbb98dceccedbc22e237596",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:8"
// },
// "Index": "0",
// "TV": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "0b5493aa4ea42087780bdfcaebab2c3eec351c15",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6"
// }
// }
// "TV": null
// }
// }
// ],
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:5",
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:7",
// "ModTime": "0",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6",
// "RefCount": "1"
// }
// }
// c[a8ada09dee16d791fd406d629fe29bb0ed084a30:6]={
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6",
// "ModTime": "0",
// "OwnerID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:2",
// "RefCount": "1"
// },
// "Value": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "ff1a50d8489090af37a2c7766d659f0d717939b5",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:7"
// }
// }
// }
// u[a8ada09dee16d791fd406d629fe29bb0ed084a30:2]={
// "Blank": {},
// "ObjectInfo": {
// "ID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:2",
// "IsEscaped": true,
// "ModTime": "4",
// "ModTime": "5",
// "RefCount": "2"
// },
// "Parent": null,
Expand Down Expand Up @@ -333,19 +317,13 @@ func main() {
// },
// "V": {
// "@type": "/gno.PointerValue",
// "Base": null,
// "Base": {
// "@type": "/gno.RefValue",
// "Hash": "ae86874f9b47fa5e64c30b3e92e9d07f2ec967a4",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:6"
// },
// "Index": "0",
// "TV": {
// "T": {
// "@type": "/gno.RefType",
// "ID": "gno.land/p/demo/avl.Node"
// },
// "V": {
// "@type": "/gno.RefValue",
// "Hash": "6c9948281d4c60b2d95233b76388d54d8b1a2fad",
// "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:5"
// }
// }
// "TV": null
// }
// }
// ]
Expand Down
Loading
Loading