Closed
Bug 1480018
Opened 6 years ago
Closed 6 years ago
Use BaseObjectElementIndex/BaseObjectSlotIndex when accessing elements/slots instead of Base(Value)Index
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file, 1 obsolete file)
22.39 KB,
patch
|
anba
:
review+
|
Details | Diff | Splinter Review |
We have the BaseObjectElementIndex and BaseObjectSlotIndex helpers to explicitly document access to object elements and object slots, but in some cases we're instead directly using BaseIndex/BaseValueIndex.
Assignee | ||
Comment 1•6 years ago
|
||
Replaces BaseIndex/BaseValueIndex with BaseObjectElementIndex/BaseObjectSlotIndex where possible. Drive-by changes: - Change some BaseIndex constructor callers to directly call the constructor instead of using |BaseIndex index = BaseIndex(...)|. - Delete the unused Address and BaseIndex default constructors.
Attachment #8996626 -
Flags: review?(mgaudet)
Comment 2•6 years ago
|
||
Comment on attachment 8996626 [details] [diff] [review] bug1480018.patch Review of attachment 8996626 [details] [diff] [review]: ----------------------------------------------------------------- Looks like a good set of cleanup :) ::: js/src/jit/BaselineCompiler.cpp @@ -2727,5 @@ > { > EnvironmentCoordinate ec(pc); > Shape* shape = EnvironmentCoordinateToEnvironmentShape(script, pc); > > - Address addr; /me is gently surprised there isn't a compiler error about this.
Attachment #8996626 -
Flags: review?(mgaudet) → review+
Assignee | ||
Comment 3•6 years ago
|
||
Updated to apply cleanly on inbound, carrying r+.
Attachment #8996626 -
Attachment is obsolete: true
Attachment #8997136 -
Flags: review+
Assignee | ||
Comment 4•6 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5dafa3f50d04bf9bc793cab64e8caf4653b907dc
Keywords: checkin-needed
Pushed by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ef2291b03c19 Change some Base(Value)Index users to BaseObject(Element|Slot)Index. r=mgaudet
Keywords: checkin-needed
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ef2291b03c19
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•