Nicholas Nethercote
12838e0498
Backed out changeset 8d7d6dcce7eb (due to ARM and WinNT bustage).
...
--HG--
extra : convert_revision : 2d17a9b2e8daa8f3e89cd756a7eb23a41579f7e1
2009-12-01 15:16:57 +11:00
Nicholas Nethercote
018656a578
Bug 527754 - CseFilter not able to handle downstream modification of instructions. r=rreitmai,gal.
...
--HG--
extra : convert_revision : 8d7d6dcce7ebda66b1aab48f40b46c1e7df2d91d
2009-12-01 14:56:44 +11:00
Nicholas Nethercote
dd88229c75
Bug 531324 - nanojit: improve int32 constant generation in i386 backend. r=graydon.
...
--HG--
extra : convert_revision : 3b04b5fdd47f0469f040fb147d60ed4cd30d8c8e
2009-11-30 17:26:15 +11:00
Leon Sha
ff06e514ff
Bug 531218 - NJ: Remove unused _getfp for solaris from nanojit. r=stejohns.
...
--HG--
extra : convert_revision : 2d22cabbe865243948ddcad4bc73dba4fc0c5aef
2009-11-30 09:24:10 +08:00
Leon Sha
0206dbda90
Bug 530979 - NJ: Build errors for lirasm.cpp on solaris with sun studio. r=graydon
...
--HG--
extra : convert_revision : 69ef86e45856c850accc542111053c4387a8b804
2009-11-26 09:21:05 +08:00
Brendan Eich
9ed684b4aa
See bug 533138.
2009-12-05 23:35:06 -08:00
Andreas Gal
8b9c00dd58
Try to fix autoconf madness for bug 530896.
2009-12-05 16:53:16 -08:00
Andreas Gal
a79338fb53
Efficient Implementation of JSDOUBLE_IS_INT using SSE2 (original patch by Moh Haghighat/Intel, bug 530896, r=dvander).
2009-12-05 12:46:46 -08:00
David Anderson
7f7f3f914a
Fix scope chain traversal with let blocks (bug 523793, r=dmandelin,mrbkap).
2009-12-04 23:05:47 -08:00
David Anderson
9d3854b96c
Get rid of TreeInfo and inline its members into TreeFragment (bug 525371, r=gal,lw)
2009-12-04 19:59:55 -08:00
Jason Orendorff
45131911f5
Bug 532363 - TM: "Assertion failure: IsDenseArrayId(cx, obj, (jsid) prop), at ../jsarray.cpp". r=bzbarsky.
2009-12-04 15:38:25 -06:00
Igor Bukanov
750ad4fcf1
bug 531682 - patching js1_4/Eval/jstests.list to include bug's test
2009-12-04 21:57:51 +03:00
Igor Bukanov
6fe534d196
bug 531037 - patching js1_4/Eval/jstests.list to include bug's test
2009-12-04 21:54:43 +03:00
Andreas Gal
cd3bc64f32
Add regress-532491.js to jstests.list (follow-up for bug 532491).
2009-12-04 10:46:09 -08:00
Boris Zbarsky
351c2588f6
Bug 532847. Can't assert that sprop has a shortid in callProp/setCallProp until we know the prop is special. r=brendan
2009-12-04 01:08:22 -05:00
Boris Zbarsky
f6ebee8fe0
Bug 530240 followup. Can't assume vp[1] is an object here, in fact. Fixes orange.
2009-12-03 23:35:36 -05:00
Boris Zbarsky
820ab9924c
Bug 532477 followup to fix bustage.
2009-12-03 23:10:08 -05:00
Boris Zbarsky
4ef3c22c16
Bug 532477. Replace js_SetCallArg/js_SetCallVar with hand-crafted LIR in the common easy case of a Call object whose frame is no longer active at record time. r=dmandelin,brendan
2009-12-03 23:03:47 -05:00
Boris Zbarsky
7fc041981d
Bug 530255. Replace GetFromClosure/GetClosureVar/GetClosureArg with hand-crafted LIR in the common easycase of a Call object whose frame is no longer active at record time, and make GetFromClosure use a direct read from the object's dslots if we discover that the frame became inactive between record and trace. r=dmandelin,brendan
2009-12-03 23:03:46 -05:00
Brendan Eich
b1cb72c515
Bleah.
2009-12-03 19:47:53 -08:00
Brendan Eich
da4e13efda
Add JSOP_ENUMELEM to gigundo-assert in LeaveTree (532787, r=me).
2009-12-03 19:47:19 -08:00
Boris Zbarsky
f0030b3d9b
Bug 532823 followup. Fix where we add the 3+fp->argc. r=brendan
2009-12-03 22:43:13 -05:00
David Mandelin
6500db42b9
Bug 532823: fix slot computation for JSOP_NAME accessing outer vars defined in trace entry frame, r=bz
2009-12-03 18:48:45 -08:00
Jason Orendorff
61d4096a55
Bug 530879 - Generators get incorrect arguments.length. Discovered by Donny Viszneki. r=brendan.
2009-12-03 16:12:09 -06:00
David Mandelin
2037f692ae
Bug 530489: don't (incorrectly) trace custom equality ops, r=jorendorff
2009-12-03 13:02:36 -08:00
Andreas Gal
d7f9f27171
Only consider an eval cache entry if the static level matches (532491, r=igor).
2009-12-03 12:12:39 -08:00
Boris Zbarsky
8b65f5443b
Bug 530240. Faster NormalizeThis for String objects. r=brendan
2009-12-03 14:39:55 -05:00
Boris Zbarsky
dd8b2e8519
Bug 521423. Make JSString 4 words instead of 2; make substring() and company never have to copy. r=brendan
2009-12-03 14:39:42 -05:00
Jim Blandy
690f055918
Bug 532041: Add missing call to reportCompare. r=orange jsreftests
2009-12-03 01:25:17 -08:00
Brendan Eich
b9e72b82ea
Test for last checkin (532043).
2009-12-02 21:51:18 -08:00
Brendan Eich
3804b7e353
Trace JSOP_ENUMELEM, for the group-assignment special case of destructuring assignment (532043, r=gal).
2009-12-02 21:50:04 -08:00
Brendan Eich
3fbaa3e093
Extra assertions, control flow cleanup in putProperty, and a crucial scope hashtable fix to removeProperty (stored was not reloaded from *spp; got rid of this ancient over-optimization by hand-coded 'register allocation'; 532096, r=mrbkap).
2009-12-02 19:13:31 -08:00
Jim Blandy
1027223ec1
Bug 532254: Give TCF_FUN_PARAM_EVAL a distinct value. r=mrbkap
...
Regression test included.
2009-12-02 15:17:02 -08:00
Jim Blandy
d559284d27
Bug 531972: Add parent dir jstests.list entries; call reportCompare as needed; fix anonymous function objects in js/src/tests/ecma_5/strict/13.1.js. r=bclary, r=mrbkap
...
While prior patches created new test directories
js/src/tests/ecma_5/strict and js/src/tests/js1_8_1/strict, they
failed to add jstests.list entries to their parent directories. This
adds them.
The strict tests generally were written to use assertEq, which is
simple and gives nice source positions in failure messages under the
JS shell. However, the jsreftests require each test file to call
reportCompare at least once. This adds a dummy call to reportCompare
to each file. It would be nice to make everything work in both
environments, perhaps using arguments.caller.
The test script js/src/tests/ecma_5/strict/13.1.js tried parsing
statements of the form 'function(x,x){}'. However, anonymous function
expressions are not allowed in a statement context when
JSOPTION_ANONFUNFIX is set. This is set under the browser, but clear
in the shell; bug 532233 suggests that the two be reconciled.
2009-12-02 15:13:14 -08:00
Jim Blandy
add6ceee8c
Bug 532041: Test that duplicate argument checks use JSFunction::u.i.names correctly. r=sayrer
2009-12-02 09:54:51 -08:00
Igor Bukanov
71c721069f
bug 531682 - fixing eval(source, scope) to match 191, 192 semantics. r=mrbkap
2009-12-02 19:22:34 +03:00
David Anderson
d0514574f4
Merge.
2009-12-01 16:32:58 -08:00
David Anderson
8d3e7e4f8b
Backed out changeset 0082849624a5, potential orange.
2009-12-01 16:32:45 -08:00
Brendan Eich
ce944c8a15
Fix js_FindDuplicateFormal to crack the fun->u.i.names union correctly, and spruce it up with C++ (532041, r=jimb).
2009-12-01 14:48:05 -08:00
David Anderson
bba7cc30d6
Remove TreeInfo (bug 525371, r=lw).
2009-12-01 13:32:02 -08:00
Robert Sayre
aa1fe26e85
Reland bug 473228 and bug 530507
2009-12-01 16:02:09 -05:00
Robert Sayre
714f5e0191
Relanding Tolerate race condition or broken resolve hook (530507, r=jorendorff). Backed out changeset fb34a7163a43
2009-12-01 15:54:01 -05:00
Robert Sayre
151c899bb9
Merge
2009-12-01 15:51:22 -05:00
Robert Sayre
1c1ae69c8b
Relanding: Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). Backed out changeset ee7bfc1923ad
2009-12-01 15:49:15 -05:00
Robert Sayre
bcf74f32e2
Backed out changeset c03ebf340688. Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff).
2009-12-01 09:56:16 -05:00
Robert Sayre
90c005ab08
Backed out changeset c696751593d6. Tolerate race condition or broken resolve hook (530507, r=jorendorff).
2009-12-01 09:54:38 -05:00
Blake Kaplan
d8a40bbfc4
Bug 468506 - JS_GetFrameThis needs to call js_ComputeThis in more cases. r=brendan
...
--HG--
extra : rebase_source : 2a107feb26544159f04b60c27508338cef8fdf7f
2009-11-30 16:05:44 -05:00
David Anderson
e4e84f1b52
Recursion needs to fix up argsobj when it pops frames on trace (bug 531298, r=dmandelin).
2009-12-01 10:37:30 -08:00
Robert Sayre
efc9136a43
Backout bug 473228 and its follow-up, temporarily, to attempt a clean merge of other stuff.
2009-12-01 09:57:20 -05:00
Robert Sayre
50769a45c8
Merge backout.
2009-12-01 09:54:57 -05:00
Igor Bukanov
e397c49653
bug 531037 - eval fixes. r=brendan
2009-12-01 00:01:11 +03:00
Robert Sayre
25624cc338
Add a call to reportCompare so this test passes.
2009-11-30 14:15:50 -05:00
Luke Wagner
f5d804e026
Bug 530366 - don't use std::sort in jsregexp (r=dmandelin)
2009-11-30 09:03:43 -08:00
Robert Sayre
8e017273c0
Add a missing credit to trigger a re-compile.
2009-11-30 11:15:10 -05:00
Igor Bukanov
201ba0afcc
Backed out changeset b774250f04d3 - the landed patch for bug 424558 has regressed.
2009-11-30 15:33:04 +03:00
Igor Bukanov
ca8d790fc6
bug 424558, r=brendan
2009-11-29 20:33:57 +03:00
Jim Blandy
7e42f53d8c
Bug 530018 - Add comment to explain why typedef is neceessary. (no r)
2009-11-27 17:05:21 -08:00
Leon Sha
7d3bee1630
Bug 530018 - js_DecompileToString Undefined symbol. r=jim
2009-11-27 09:22:24 +08:00
Nicholas Nethercote
fe9c904589
Bug 531224 - TM: associate JS source locations with fragments properly. r=graydon.
2009-11-26 13:52:22 -08:00
Jim Blandy
5bfdb45b63
Bug 499524: Always check for duplicates when destructuring params are present. r=igor
...
Detect duplicate names in parameter lists that include destructuring
parameters, regardless of whether the duplication becomes before or
after the destructuring. Let strict mode complaints take care of
themselves after the body has been parsed.
In BindDestructuringArg, there should never be an entry in tc->decls
for the given name if the call to js_LookupLocal didn't detect a
duplicate argument, so we can simply assert that tc->decl.lookup
returns NULL, instead of checking it.
In HashLocalName, we can tighten the assertion: both the new and
existing entries must be JSLOCAL_ARG, since we detect all non-ARG
(i.e., destructuring) duplicates early.
2009-11-26 10:23:52 -08:00
Nicholas Nethercote
87294afa65
Bug 531165 - TM: move SoftFloatFilter upstream of CseFilter. r=gal.
2009-11-25 19:10:34 -08:00
Igor Bukanov
5c96627d2e
bug 528116 - trace-test test case
2009-11-26 01:39:01 +03:00
Brendan Eich
256dffda46
Tolerate race condition or broken resolve hook (530507, r=jorendorff).
2009-11-25 13:49:15 -08:00
Igor Bukanov
c8d5645df8
bug 528116 - scope chain lookup fix when recording an eval script. r=dmandelin
2009-11-25 21:16:06 +03:00
David Mandelin
eb7cee0d16
Bug 530969: fix testing of XULRunner properties in jstests.py manifest parsing, r=njn
2009-11-24 18:57:09 -08:00
Robert Sayre
637267220a
Merge mozilla-central to tracemonkey.
2009-11-25 10:48:43 -05:00
Leon Sha
65dd69f302
Update nanojit-import-rev stamp.
2009-11-25 15:32:07 +08:00
Leon Sha
79857bda92
Bug 529849 - Assertion failed: _allocator.free & rmask(r) (../../../js/src/nanojit/Assembler.cpp:433). r=gal
...
--HG--
extra : convert_revision : 23ed78f42df2b7b1a590fc7e986e6d446ef4d3d4
2009-11-25 15:24:23 +08:00
Nicholas Nethercote
391c15f438
Bug 515313 - nanojit: finish killing reservations. r=edwsmith.
...
--HG--
extra : convert_revision : 1b6cb808f3048c25857613fa6e77e865fee51d8e
2009-11-24 23:00:23 -08:00
Nicholas Nethercote
b3689f0b3b
Bug 512181 - nanojit: rework TMFLAGS=assembly,regalloc,activation. r=edwsmith.
...
--HG--
extra : convert_revision : 43e64a1135f17761aad95ee7ce2d1692aa937579
2009-11-24 22:38:51 -08:00
Nicholas Nethercote
4de15a7879
Bug 505662 - nanojit: kill operandCount. r=graydon,edwsmith.
...
--HG--
extra : convert_revision : ab7d225a3c8b1562eb74336099abc564f770e7f3
2009-11-24 22:21:27 -08:00
Nicholas Nethercote
e0c1e58180
Bug 512181 - nanojit: rework TMFLAGS=assembly,regalloc,activation (the TM-specific part only, which is independent of the NJ-specific part). r=graydon.
2009-11-24 22:42:16 -08:00
Andreas Gal
dd01623b4e
-r
2009-11-24 19:35:17 -08:00
Andreas Gal
09c011f455
Avoid frequent reallocs in Queue::ensure (530936, r=luke).
2009-11-24 17:04:24 -08:00
Nicholas Nethercote
a3c8b3801d
Update nanojit-import-rev stamp.
2009-11-25 11:11:02 +11:00
Jacob Bramley
161ca34a8d
Add Nanojit configuration flags (such as --sse) to lirasm. (bug 526974, r=nnethercote)
...
--HG--
extra : convert_revision : baa27feb8fb4fdaf1ecb0839c4bd468e83da2aeb
2009-11-24 11:05:20 +00:00
Nicholas Nethercote
c0ee79dcfd
Bug 529900 - 64-bit - lots of assertions, crashes... r=edwsmith.
...
--HG--
extra : convert_revision : 3d99d6e37ba85c13d449352b8ce8283d4e0cbf0d
2009-11-24 15:30:04 +11:00
Nicholas Nethercote
ef48f55287
Bug 525379 - nanojit: make the _nIns/_nExitIns swap hack more consistent. r=edwsmith.
...
--HG--
extra : convert_revision : bad9394918255f4afcbff259153dc9d8c9afad25
2009-11-24 14:56:33 +11:00
Nicholas Nethercote
750f1073fb
Bug 530713 - nanojit: fix LirReader::read() badness. r=edwsmith.
...
--HG--
extra : convert_revision : 39a8b47fd38af397e7fe0196637dc2e66cadb56b
2009-11-24 14:23:20 +11:00
Brendan Eich
3fcf83f1f9
Undo hackaround for bug 529837.
2009-11-24 15:42:03 -08:00
Brendan Eich
28e780dc8d
Undo hackaround for bug 529837.
2009-11-24 15:17:16 -08:00
Daniel Brooks
fdc5ea52b6
revert an unintentional change from revision 0ccbfef948d5
2009-11-24 05:58:50 -06:00
Nicholas Nethercote
e09fe5b760
Bug 529725 - nanojit: improve asm_prep_fcall() in i386 and Sparc backends. r=rreitmai.
...
--HG--
extra : convert_revision : 30767eb970427b1044fae5db99c2427f57e576fe
2009-11-23 11:04:59 +11:00
Nicholas Nethercote
0928fa82e6
Bug 529709 - lirasm: 'not' is a unary operator. r=graydon.
...
--HG--
extra : convert_revision : f26d4cf0e8091d41ecb5b48b849d63dce56ec259
2009-11-23 11:01:02 +11:00
Brendan Eich
ee624984d8
Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff).
2009-11-20 16:14:42 -08:00
Brendan Eich
1d3f5d358c
Test branded *and* hasMethodBarrier consistently, and with a combined helper (529837, r=jorendorff).
2009-11-20 14:05:16 -08:00
Julian Seward
7bce3c4018
Bug 520905 - collapse callee saved register spills/reloads into LDMIA/STMIA instructions, r=vlad.
...
--HG--
extra : convert_revision : 73952814a07755be92fba1060efc97d5010b38c9
2009-11-20 10:11:33 -08:00
Brendan Eich
81436f3d04
Undo hackaround for bug 529837.
2009-11-24 15:15:37 -08:00
Luke Wagner
806d22cfd0
Bug 530490 - keep starting position live across quantifier loop (r=dmandelin)
2009-11-24 11:22:20 -08:00
Bob Clary
dcbebbfa1d
Bug 530774 - js1_5/GC/regress-319980-01.js should not be enabled.
2009-11-24 13:01:42 -08:00
Bob Clary
1aba2fbf45
Bug 530774 - temporarily disable js1_5/GC/regress-331719.js due to time out regression.
2009-11-24 07:14:13 -08:00
Bob Clary
9ea4e3560e
bug 530510 - js1_8/extensions/regress-446169-01.js should guard for undefined gczeal.
2009-11-24 07:14:12 -08:00
Andreas Gal
14ade13e06
I will get it right one of these days (hotfix for 484627).
2009-11-23 22:11:21 -08:00
Andreas Gal
9fd887d7c9
Hotfix for 484627 for 64-bit systems.
2009-11-23 21:49:53 -08:00
Andreas Gal
b8ee5612ec
Inline js_CallTree (484627, r=dvander).
2009-11-23 19:02:49 -08:00
Andreas Gal
35fda5b697
Stop passing a useless NULL argument to fragment->code() (530700, r=dmandelin).
2009-11-23 17:16:30 -08:00
timeless@mozdev.org
4b3196a041
Bug 506699 js_printf doesn't always use va_end after va_start. rs=brendan
2009-11-23 16:20:55 -08:00
Andreas Gal
90633dab06
Merge.
2009-11-23 16:09:35 -08:00
Andreas Gal
f71e221781
Properly reject new arrays with negative length (530617, r=jwalden).
2009-11-23 16:09:02 -08:00
Blake Kaplan
af82b02910
Bug 530537 - Don't over-parenthesize JSOP_CONCATN. r=brendan over IRC
2009-11-23 18:08:05 -05:00