Closed Bug 898350 Opened 11 years ago Closed 11 years ago

[binary data] report aligned offsets and sizes

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: nmatsakis, Assigned: nmatsakis)

References

Details

Currently binary data objects report "ideal" offsets and sizes that do not consider alignment. Barring further changes, the plan is for the offsets and sizes to be reported to the user as aligned per an ideal alignment algorithm (which corresponds to what we do in practice as well).
Summary: (harmony:bindata) report aligned offsets and sizes → [binary data] report aligned offsets and sizes
Is this for the |bytes| property exposed to all JS, or some special internal SpiderMonkey things to track memory? AFAIK offsets are not exposed to JS in the current API.
The bytes property. And yes, you are correct about the current API, this bug relates to what dherman and I discussed for the final proposal. Of course, things may have changed after the latest ECMA meeting. Dave?
Flags: needinfo?(dherman)
This has been done.
Flags: needinfo?(dherman)
Fixed as part of bug 898347. See test: tests/ecma_6/TypedObject/size_and_alignment.js
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: general → nmatsakis
Depends on: 898347
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.