Skip to content

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.

3 participants