Closed
Bug 1488162
Opened 7 years ago
Closed 7 years ago
Remove suppressGC hacks from wasm code
Categories
(Core :: JavaScript: WebAssembly, enhancement, P2)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
FIXED
mozilla66
People
(Reporter: lth, Assigned: jseward)
References
Details
Attachments
(1 file, 2 obsolete files)
22.69 KB,
patch
|
Details | Diff | Splinter Review |
Once we have stack maps and tracing we no longer need to suppress GC when wasm activations are on the stack.
Reporter | ||
Comment 1•7 years ago
|
||
In addition to obvious uses in WasmStubs.cpp, also note weird cases like GCRuntime::temporaryAbortIfWasmGc(), we should be able to track them all down by looking for uses of JS::ContextOptions::wasmGc().
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → jseward
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•7 years ago
|
||
This removes GCRuntime::temporaryAbortIfWasmGc() and SuppressGC and
all the C++ fragments guarded by them, and also the 7 associated test files.
I also checked all uses of JS::ContextOptions::wasmGc() but didn't find
any further C++ frags guarded by it.
Attachment #9018330 -
Flags: review?(lhansen)
Reporter | ||
Comment 3•7 years ago
|
||
Comment on attachment 9018330 [details] [diff] [review]
bug1488162-rm-suppressGC-1.diff
Review of attachment 9018330 [details] [diff] [review]:
-----------------------------------------------------------------
This seems fine. I assume the --wasm-gc flag and all the variables propagating that through the engine will be removed on the other bug.
::: js/src/wasm/WasmStubs.cpp
@@ -356,5 @@
> masm.loadPtr(Address(masm.getStackPointer(), argBase + arg.offsetFromArgBase()), WasmTlsReg);
> }
>
> #ifdef ENABLE_WASM_GC
> WasmPush(masm, WasmTlsReg);
Any reason you can't remove this line, the corresponding pop, and then both of the ifdef blocks altogether?
Attachment #9018330 -
Flags: review?(lhansen) → review+
Reporter | ||
Updated•7 years ago
|
Blocks: wasm-reftypes
Assignee | ||
Comment 5•7 years ago
|
||
Rebased to 449244:0ae2634de8e1.
Attachment #9026419 -
Attachment is obsolete: true
Pushed by jseward@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d9e2ee18925b
Remove suppressGC hacks from wasm code. r=lth.
Comment 7•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Updated•7 years ago
|
status-firefox64:
--- → wontfix
status-firefox65:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•