The PosixNSPR functions we care about for Wasm: * PR_GetOpenFileInfo to get the file size. * PR_CreateFileMap * PR_MemMap * PR_MemUnmap * PR_CloseFileMap Luke, how do you feel about adding our own version of this in js/src/util/? None of these look that complicated and it lets us avoid the NSPR spaghetti code. I don't know if we can get a native file descriptor out of PRFileDesc though... A simpler alternative may be to move MapFile into Gecko. WDYT?
Bug 1556646 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The NSPR functions we care about for Wasm: * PR_GetOpenFileInfo to get the file size. * PR_CreateFileMap * PR_MemMap * PR_MemUnmap * PR_CloseFileMap Luke, how do you feel about adding our own version of this in js/src/util/? None of these look that complicated and it lets us avoid the NSPR spaghetti code. I don't know if we can get a native file descriptor out of PRFileDesc though... A simpler alternative may be to move MapFile into Gecko. WDYT?