Closed
Bug 1252498
Opened 9 years ago
Closed 9 years ago
Baldr: add Wasm object behind pref, default off
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: luke, Assigned: luke)
References
Details
Attachments
(1 file)
24.50 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
This patch adds javascript.options.wasm, defaulting to false on all platforms. When enabled, this pref adds a 'Wasm' global property (similar to Math, JSON and SIMD). The Wasm object currently has one static method named instantiateModule which is just a renaming of the previous wasmEval TestingFunction. We already know we're going to replace Wasm.instantiateModule with an async method + sync constructor, but its inclusion now allows interop with the v8 experimental impl and running the same demos on both (once the binary formats converge).
Assignee | ||
Comment 1•9 years ago
|
||
Confirmed is not present by default in browser build.
Attachment #8725296 -
Flags: review?(jorendorff)
Comment 2•9 years ago
|
||
Comment on attachment 8725296 [details] [diff] [review]
wasm-obj-with-pref
Review of attachment 8725296 [details] [diff] [review]:
-----------------------------------------------------------------
r=me.
::: js/src/asmjs/Wasm.cpp
@@ +1381,5 @@
> +{
> + MOZ_ASSERT(cx->runtime()->options().wasm());
> +
> + CallArgs args = CallArgsFromVp(argc, vp);
> + RootedObject callee(cx, &args.callee());
This variable is unused.
::: js/src/asmjs/Wasm.h
@@ +35,5 @@
> HasCompilerSupport(ExclusiveContext* cx);
>
> +// Return whether WebAssembly can be used at all on this platform.
> +bool
> +IsSupported(JSContext* cx);
I don't see a definition or use of this in this patch. (And the comment leaves me wondering what the difference is between this and HasCompilerSupport(), but I guess that is probably moot.)
Attachment #8725296 -
Flags: review?(jorendorff) → review+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Jason Orendorff [:jorendorff] from comment #2)
> I don't see a definition or use of this in this patch.
Oops, that's leftover from an intermediate state of the patch; it can be deleted.
Comment 5•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•