[PATCH] D44427: [WebAssembly] Add export/import for function pointer table

Nicholas Wilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 10:17:57 PDT 2018


ncw added a comment.

Since callback APIs are so common (eg high usage of dynCall in Emscripten applications) it would be nice if engines could optimise table-based access so that it's usable. Why standardise an API for doing an indirect call from JS, then tell users, "write a Wasm trampoline instead since that's faster than the browser-provided method".

I agree that things could get a lot faster in future - but it would be a shame (to me) if the official API were to become uncompetitively slow, so that people don't want to use it.

Agreed that I can put it behind a flag if you'd prefer.


Repository:
  rL LLVM

https://reviews.llvm.org/D44427





More information about the llvm-commits mailing list