Bug 170182 - WebAssembly: pass Wasm::Context* to vmEntryToWasm when not using fast TLS
Summary: WebAssembly: pass Wasm::Context* to vmEntryToWasm when not using fast TLS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-28 10:41 PDT by Yusuke Suzuki
Modified: 2017-03-30 00:29 PDT (History)
7 users (show)

See Also:


Attachments
WIP (14.52 KB, patch)
2017-03-29 16:40 PDT, Saam Barati
no flags Details | Formatted Diff | Diff
patch (17.26 KB, patch)
2017-03-29 16:57 PDT, Saam Barati
no flags Details | Formatted Diff | Diff
patch (17.26 KB, patch)
2017-03-29 16:58 PDT, Saam Barati
mark.lam: review+
Details | Formatted Diff | Diff
patch for landing (17.36 KB, patch)
2017-03-29 17:20 PDT, Saam Barati
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2017-03-28 10:41:12 PDT
And set it to wasmContext GPR.
Comment 1 Saam Barati 2017-03-29 15:29:55 PDT
working on this now
Comment 2 Saam Barati 2017-03-29 16:40:01 PDT
Created attachment 305806 [details]
WIP

might be done.
Comment 3 Saam Barati 2017-03-29 16:57:06 PDT
Created attachment 305807 [details]
patch
Comment 4 Saam Barati 2017-03-29 16:58:36 PDT
Created attachment 305808 [details]
patch
Comment 5 Build Bot 2017-03-29 17:01:50 PDT
Attachment 305808 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/jsc.cpp:79:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 JF Bastien 2017-03-29 17:09:45 PDT
Comment on attachment 305808 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=305808&action=review

Looks good.

> Source/JavaScriptCore/ChangeLog:3
> +        WebAssembly: pass JSWebAssemblyInstanace to vmEntryToWasm when not using fast TLS

Typo "instance"

> Source/JavaScriptCore/wasm/WasmContext.h:39
> +using Context = JSWebAssemblyInstance;

FIXME to make this a class so we don't keep explaining to each other why it's like this for now.
Comment 7 Mark Lam 2017-03-29 17:13:58 PDT
Comment on attachment 305808 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=305808&action=review

r=me

> Source/JavaScriptCore/ChangeLog:3
> +        WebAssembly: pass JSWebAssemblyInstanace to vmEntryToWasm when not using fast TLS

typo: /JSWebAssemblyInstanace/JSWebAssemblyInstance/
Comment 8 Saam Barati 2017-03-29 17:20:06 PDT
Created attachment 305811 [details]
patch for landing
Comment 9 WebKit Commit Bot 2017-03-30 00:29:06 PDT
Comment on attachment 305811 [details]
patch for landing

Clearing flags on attachment: 305811

Committed r214602: <http://trac.webkit.org/changeset/214602>
Comment 10 WebKit Commit Bot 2017-03-30 00:29:10 PDT
All reviewed patches have been landed.  Closing bug.