Closed
Bug 1458011
Opened 7 years ago
Closed 7 years ago
Don't allow the backing store behind a TypedObject to be accessed
Categories
(Core :: JavaScript Engine, enhancement, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla61
| Tracking | Status | |
|---|---|---|
| firefox61 | --- | fixed |
People
(Reporter: Waldo, Assigned: Waldo)
Details
Attachments
(1 file)
|
27.89 KB,
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
From Paris just over a week ago, it sounds like typed objects as we're pushing them are not going to expose the underlying memory as ArrayBuffer. Preserving this complexity in SpiderMonkey doesn't give you much, it's not going to be used in Web Assembly, and there's ongoing maintenance cost to keeping it around.
Let's remove the capability. That is, let's remove:
* TypedObject.storage, the function that returns the ArrayBuffer beneath a typed object not containing any/reference
* the ability of TypedObject constructors to accept an ArrayBuffer to view
| Assignee | ||
Comment 1•7 years ago
|
||
This seems to pass jstests/jit-tests locally but has not been tryservered.
Attachment #8972114 -
Flags: review?(sphink)
Comment 2•7 years ago
|
||
Comment on attachment 8972114 [details] [diff] [review]
Patch
Review of attachment 8972114 [details] [diff] [review]:
-----------------------------------------------------------------
/me pours one out.
Attachment #8972114 -
Flags: review?(sphink) → review+
Comment 4•7 years ago
|
||
FWIW this might well come back: transparent Typed Objects aren't required for the current plans for Wasm/JS integration, but they have value for other use cases.
I'm not opposed to removing this for now, but we might need to resurrect it at some point.
Pushed by jwalden@mit.edu:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b663c7fd766c
Remove the TypedObject.storage function and |new TypedObject(buffer [, offset])| constructor overload because they're no longer planned to be part of standardization efforts in this area. r=sfink
Comment 6•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•