Closed
Bug 1195298
Opened 9 years ago
Closed 9 years ago
NewDenseArray throws for int32 values represented as doubles when called from baseline or IonMonkey
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: till, Assigned: jandem)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.62 KB,
patch
|
till
:
review+
|
Details | Diff | Splinter Review |
The self-hosted implementation of Array#splice (bug 890329) was backed out in bug 1195030 because it broke gmail. The reason is that it the NewDenseArray intrinsic checks if the first argument is an int32, but baseline and Ion cause a double value to be passed in.
Test case, needs "--baseline-eager":
function t() {
var o = {l: 0xfffffffff};
var l = o.l - 0xffffffffe;
var a = getSelfHostedValue('NewDenseArray');
a(l);
}
t();
t();
(Note: storing one of the values used in the subtraction in an object is a required part of the test.)
Flags: needinfo?(jdemooij)
Assignee | ||
Comment 1•9 years ago
|
||
Sorry for the delay.
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Flags: needinfo?(jdemooij)
Attachment #8651801 -
Flags: review?(till)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8651801 [details] [diff] [review]
Patch
Review of attachment 8651801 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you!
::: js/src/jit-test/tests/basic/bug1195298.js
@@ +1,1 @@
> +function t() {
This needs jitflags to run with --baseline-eager, right?
Attachment #8651801 -
Flags: review?(till) → review+
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Till Schneidereit [:till] from comment #2)
> This needs jitflags to run with --baseline-eager, right?
In automation we run jit tests with --baseline-eager. I usually avoid adding explicit annotations in such cases, also because forcing a specific flag can actually restrict the number of combinations we test.
Comment 5•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•