Closed Bug 1390459 Opened 7 years ago Closed 7 years ago

mulby3 function implement error on mips platform

Categories

(Core :: JavaScript Engine: JIT, defect)

55 Branch
Other
Unspecified
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: yuyin-hf, Assigned: yuyin-hf)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4

Steps to reproduce:

write a js file:

const testMap = new Map([["a","A"], ["b", "B"], ["c" , "C"]]);

function tM(ss) {
    for (var s of ss) {
       print(s);
   }
}


tM(testMap);


Actual results:

get wrong result:
a,A
b,B
0,-7.269300..


Expected results:

get right result:
a,A
b,B
c,C
Sorry, it only get wrong result when run with --ion-eager --ion-offthread on mips platform.  but get right result when run without any parameter.

it is because mulby3 function implement error on mips platform.
Attached patch MIPS-Fix-mulBy3.patch (obsolete) — Splinter Review
Attachment #8897371 - Flags: review?(r)
Attachment #8897371 - Flags: review?(luke)
sorry, please review this patch.
Attachment #8897373 - Flags: review?(r)
Attachment #8897373 - Flags: review?(luke)
Component: Untriaged → JavaScript Engine: JIT
Product: Firefox → Core
Comment on attachment 8897373 [details] [diff] [review]
MIPS-Fix-mulBy3.patch

Review of attachment 8897373 [details] [diff] [review]:
-----------------------------------------------------------------

stealing review.

thank you for fixing :)
indeed src and dest are same and the code didn't work in that situation.
Attachment #8897373 - Flags: review?(r)
Attachment #8897373 - Flags: review?(luke)
Attachment #8897373 - Flags: review+
Assignee: nobody → yuyin-hf
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Hardware: Unspecified → Other
Attachment #8897371 - Attachment is obsolete: true
Attachment #8897371 - Flags: review?(r)
Attachment #8897371 - Flags: review?(luke)
yes, thank you.

(In reply to Tooru Fujisawa [:arai] from comment #4)
> Comment on attachment 8897373 [details] [diff] [review]
> MIPS-Fix-mulBy3.patch
> 
> Review of attachment 8897373 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> stealing review.
> 
> thank you for fixing :)
> indeed src and dest are same and the code didn't work in that situation.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/12ca48964380
mulby3 function implement error on mips platform. r=arai
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/12ca48964380
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: