Closed Bug 457835 Opened 16 years ago Closed 16 years ago

JIT compilation of javascript breaks sparse arrays

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: duncan.loveday, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080929032103 Minefield/3.1b1pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080929032103 Minefield/3.1b1pre

The attached demonstrates an issue with sparse arrays having 32 or more missing elements at the front of the array. The correct result is not returned when joining the array when the JIT preferences are enabled.

Reproducible: Always

Steps to Reproduce:
1. Go to about:config and enable the prefs javascript.options.jit.*
2. Load the attached and press "Go"
3.
Actual Results:  
I see an alert message "Yundefinedundefinedundefinedundefined"

Expected Results:  
The expected result is "YYYYY"

If you change the test case so that the starting index is 31 or lower, or if you turn off the JIT prefs, the problem goes away.
Attached file Test case
Keywords: testcase
I can reproduce this bug on

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080929032103 Minefield/3.1b1pre

but not on either of

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080930093007 Minefield/3.1b1pre
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080929033431 Minefield/3.1b1pre
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: