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

Experimental support for holey arrays #81

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Experimental support for holey arrays #81

merged 1 commit into from
Mar 17, 2024

Conversation

y21
Copy link
Owner

@y21 y21 commented Mar 17, 2024

This will finally support code like arr[0] = 1; arr[2**31] = 2;, which would previously try to allocate a lot of memory to fill the holes with undefined values eagerly. This will now be represented as [Element::Value(1), Element::Hole(2**31-1), Element::Value(2)]. Also allows us to comment out some disabled test262 tests that had these issues.

@y21 y21 added the A-vm label Mar 17, 2024
@y21
Copy link
Owner Author

y21 commented Mar 17, 2024

Before

== Result ===
Passes: 9658 (21.06%)
Fails: 36087
Panics: 113

After

== Result ===
Passes: 9679 (21.10%)
Fails: 36071
Panics: 113

@y21 y21 merged commit 61a0ba3 into master Mar 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant