Closed
Bug 1518127
Opened 5 years ago
Closed 5 years ago
Result type can never be ObjectOrNull in MGuardToClass
Categories
(Core :: JavaScript Engine: JIT, enhancement, P3)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file)
5.09 KB,
patch
|
tcampbell
:
review+
|
Details | Diff | Splinter Review |
The |MIRType::ObjectOrNull| case in [1] can never be true, because |IonBuilder::getInlineReturnType()| never returns |MIRType::ObjectOrNull|. [1] https://searchfox.org/mozilla-central/rev/f8de61826903996f6bdf41b11a2844dd59ac144f/js/src/jit/MCallOptimize.cpp#2809
Assignee | ||
Comment 1•5 years ago
|
||
The result type for MGuardToClass is always |MIRType::Object|, so remove any other code which handles the case when the result type is not |MIRType::Object|. Also change the assertion in MGuardToClass' constructor to only accept an input which is of type MIRType::Object, which matches the only passed input type to MGuardToClass, cf. <https://searchfox.org/mozilla-central/rev/f8de61826903996f6bdf41b11a2844dd59ac144f/js/src/jit/MCallOptimize.cpp#2805-2807>.
Attachment #9034716 -
Flags: review?(tcampbell)
Comment 2•5 years ago
|
||
Comment on attachment 9034716 [details] [diff] [review] bug1518127.patch Review of attachment 9034716 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the explanation!
Attachment #9034716 -
Flags: review?(tcampbell) → review+
Assignee | ||
Comment 3•5 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=22537cf2fd00e4af6132abd7a05827c37bd79eda
Keywords: checkin-needed
Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/96da0c4e18f9
Remove unreachable code in MGuardToClass. r=tcampbell
Keywords: checkin-needed
Updated•5 years ago
|
Priority: -- → P3
Comment 5•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•