Closed
Bug 1225908
Opened 9 years ago
Closed 9 years ago
Disambiguate SimdTypeToScalarType
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: jolesen, Assigned: jolesen, Mentored)
Details
Attachments
(3 files)
11.69 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
3.05 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
2.28 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
Ion has two functions called SimdTypeToScalarType with similar purpose: In IonTypes.h: static inline MIRType SimdTypeToScalarType(MIRType type) In MCallOptimize.cpp: static Scalar::Type SimdTypeToScalarType(SimdTypeDescr::Type type) We should rename both of these to make their purpose clearer. Maybe add some documentation too?
Assignee | ||
Comment 1•9 years ago
|
||
Uack, Scalar::Type actually includes Int32x4 and Float32x4. Maybe we shouldn't refer to vector lanes as 'scalars' to avoid confusion.
Assignee: nobody → jolesen
Assignee | ||
Comment 2•9 years ago
|
||
Rename the function SimdTypeToScalarType to SimdTypeToLaneType. Since we also have Scalar::Type, it is best to use the term 'lane' to refer to the parts of a vector.
Attachment #8689122 -
Flags: review?(benj)
Assignee | ||
Comment 3•9 years ago
|
||
This function returns the typed array element type that corresponds to the lanes in a SIMD vector type. It is used to handle SIMD loads and stores from a typed array.
Attachment #8689123 -
Flags: review?(benj)
Assignee | ||
Comment 4•9 years ago
|
||
Ben, we could also rename s/AsmSimdTypeToScalarType/AsmSimdTypeToLaneType/. What do you think?
Comment 5•9 years ago
|
||
Comment on attachment 8689122 [details] [diff] [review] SimdTypeToLaneType. Review of attachment 8689122 [details] [diff] [review]: ----------------------------------------------------------------- That's better, thank you for the patch.
Attachment #8689122 -
Flags: review?(benj) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8689123 [details] [diff] [review] SimdTypeToArrayElementType. Review of attachment 8689123 [details] [diff] [review]: ----------------------------------------------------------------- Yes, that's indeed better.
Attachment #8689123 -
Flags: review?(benj) → review+
Comment 7•9 years ago
|
||
(In reply to Jakob Stoklund Olesen [:jolesen] from comment #4) > Ben, we could also rename s/AsmSimdTypeToScalarType/AsmSimdTypeToLaneType/. > What do you think? That would work for me. We've used Scalar at several locations to refer to the lane type (in opposition to the vector type), but saying Lane is clearer, in my opinion.
Assignee | ||
Comment 8•9 years ago
|
||
Rename AsmSimdTypeToScalarType to AsmSimdTypeToLaneType, hoping that the new name will be clearer.
Attachment #8689589 -
Flags: review?(benj)
Comment 9•9 years ago
|
||
Comment on attachment 8689589 [details] [diff] [review] AsmSimdTypeToLaneType. Review of attachment 8689589 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8689589 -
Flags: review?(benj) → review+
Assignee | ||
Comment 10•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6ddbf56344c6
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/94d80c1508bf https://hg.mozilla.org/integration/mozilla-inbound/rev/1e9a544bc43e https://hg.mozilla.org/integration/mozilla-inbound/rev/d63e7bf319f4
Comment 12•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/94d80c1508bf https://hg.mozilla.org/mozilla-central/rev/1e9a544bc43e https://hg.mozilla.org/mozilla-central/rev/d63e7bf319f4
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•