RESOLVED FIXED Bug 161727
Add support for WASM calls
https://bugs.webkit.org/show_bug.cgi?id=161727
Summary Add support for WASM calls
Keith Miller
Reported 2016-09-07 18:36:18 PDT
...
Attachments
Patch (31.85 KB, patch)
2016-10-20 13:47 PDT, Keith Miller
no flags
Patch (41.70 KB, patch)
2016-10-20 18:47 PDT, Keith Miller
fpizlo: review+
Keith Miller
Comment 1 2016-10-20 13:47:28 PDT
Keith Miller
Comment 2 2016-10-20 13:49:56 PDT
Comment on attachment 292246 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=292246&action=review > Source/JavaScriptCore/wasm/WASMB3IRGenerator.cpp:219 > + // m_unlinkedCalls is a mapping from a function's index to a list of callsites that need to be linked. I changed this to: // m_unlikedCalls is list of each call site and the function index whose address it should be patched with.
Michael Saboff
Comment 3 2016-10-20 15:54:13 PDT
Comment on attachment 292246 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=292246&action=review r=me > Source/JavaScriptCore/ChangeLog:11 > + have been compiled by the time current function has started compilation we don't know what How about ... by the time *the* current function ...? > Source/JavaScriptCore/ChangeLog:12 > + address we need to call to. For each callsite in the compiling function WASM remembers what Comma after "function"? > Source/JavaScriptCore/ChangeLog:14 > + each functions callsites are linked to the appropriate entrypoint. Hoe about '... *is* linked ...'?
Keith Miller
Comment 4 2016-10-20 18:47:15 PDT
Filip Pizlo
Comment 5 2016-10-20 19:17:07 PDT
Comment on attachment 292307 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=292307&action=review Looks sensible. > Source/JavaScriptCore/wasm/WASMCallingConvention.h:53 > + : m_gpRegisterArguments(gpRegisterArguments) > + , m_fpRegisterArguments(fpRegisterArguments) I think we would normally say m_gprArgs and m_fprArgs. > Source/JavaScriptCore/wasm/WASMCallingConvention.h:59 > + B3::ValueRep marshallArgumentImpl(Vector<Reg> registerArguments, B3::Type type, size_t& count, size_t& stackOffset) const regArgs
Keith Miller
Comment 6 2016-10-21 09:05:30 PDT
Note You need to log in before you can comment on or make changes to this bug.