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

Add fillers for 'ref.null', 'ref.is_null' and 'ref.eq' #960

Closed
wants to merge 8 commits into from

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Nov 17, 2019

This is an attempt to polyfill the instructions

  • ref.null
  • ref.is_null
  • ref.eq

via imports from JS to support

  • someAnyref = null
  • !someAnyref
  • someAnyref == someOtherAnyref
  • someAnyref != someOtherAnyref

Looked promising at first but a real test case hits a Binaryen assertion probably somewhere during optimizations. Need to investigate.

@dcodeIO dcodeIO changed the title Reference types fillers Add fillers for 'ref.null', 'ref.is_null' and 'ref.eq' Nov 17, 2019
@dcodeIO
Copy link
Member Author

dcodeIO commented Nov 17, 2019

Binaryen issue: WebAssembly/binaryen#2444

@dcodeIO dcodeIO mentioned this pull request Nov 18, 2019
@MaxGraey
Copy link
Member

MaxGraey commented Nov 19, 2019

Binaryen PR: WebAssembly/binaryen#2451

@dcodeIO
Copy link
Member Author

dcodeIO commented Jan 10, 2020

Superseded by adding the actual instructions, with ref.eq not fully fledged out yet.

@dcodeIO dcodeIO closed this Jan 10, 2020
@dcodeIO dcodeIO deleted the reference-types-fillers branch March 15, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants