Commit Graph

36503 Commits

Author SHA1 Message Date
Boris Zbarsky
b346e737a5 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
b811feadbc Bug 532477 followup to fix bustage. 2009-12-03 23:10:08 -05:00
Boris Zbarsky
834d8db5e4 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
fb6fe53972 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
f9a0ec438d Bleah. 2009-12-03 19:47:53 -08:00
Brendan Eich
7bfac5769d Add JSOP_ENUMELEM to gigundo-assert in LeaveTree (532787, r=me). 2009-12-03 19:47:19 -08:00
Boris Zbarsky
5319ea360b Bug 532823 followup. Fix where we add the 3+fp->argc. r=brendan 2009-12-03 22:43:13 -05:00
David Mandelin
a47f877d42 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
b46379b4f6 Bug 530879 - Generators get incorrect arguments.length. Discovered by Donny Viszneki. r=brendan. 2009-12-03 16:12:09 -06:00
David Mandelin
90477b6487 Bug 530489: don't (incorrectly) trace custom equality ops, r=jorendorff 2009-12-03 13:02:36 -08:00
Andreas Gal
ab4554e731 Only consider an eval cache entry if the static level matches (532491, r=igor). 2009-12-03 12:12:39 -08:00
Boris Zbarsky
8365d1cfcb Bug 530240. Faster NormalizeThis for String objects. r=brendan 2009-12-03 14:39:55 -05:00
Boris Zbarsky
2e2e3eeb0c 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
3279efddb0 Bug 532176: Fix 'make jstestbrowser EXTRA_TEST_ARGS=...'; allow command line to override test list. r=bclary 2009-12-03 09:27:26 -08:00
Jim Blandy
322d958de0 Bug 532041: Add missing call to reportCompare. r=orange jsreftests 2009-12-03 01:25:17 -08:00
Brendan Eich
ff0880a5f4 Test for last checkin (532043). 2009-12-02 21:51:18 -08:00
Brendan Eich
05f85209b1 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
9ccccbbe6b 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
ff9fa29631 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
dbab286e15 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
05b34d7c12 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
969bdae222 bug 531682 - fixing eval(source, scope) to match 191, 192 semantics. r=mrbkap 2009-12-02 19:22:34 +03:00
Nicholas Nethercote
a4408cec60 Bug 531347 - nanojit: rejig asm_call(). r=edwsmith.
--HG--
extra : convert_revision : 1c68f440a757a8cb002c8da9118d034a9c7d4fab
2009-12-01 18:50:07 -08:00
Steven Johnson
4732e1b682 nanojit/Assembler.cpp: when LIR_stqi calls asm_store32 twice, pass LIR_sti for the opcode, rather than op. (r=me)
--HG--
extra : convert_revision : 0da91726eca5ccbfed98d340e428d3303d5708f0
2009-12-01 17:40:25 -08:00
Steven Johnson
45a6270f4c Add new opcodes to allow load/store of 8-bit int, 16-bit int, and 32-bit floats. Initially implemented only for i386, other backend implementations to follow. See https://bugzilla.mozilla.org/show_bug.cgi?id=527083 for more detail. (r=rreitmai, nnethercote)
--HG--
extra : convert_revision : 7c5395e67078266797de2e2de6555974ee61acf7
2009-12-01 16:50:03 -08:00
David Anderson
4ab577e3c3 Merge. 2009-12-01 16:32:58 -08:00
David Anderson
b7f7a14f13 Backed out changeset 0082849624a5, potential orange. 2009-12-01 16:32:45 -08:00
Brendan Eich
f19c7e9d1b 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
c80f627585 Remove TreeInfo (bug 525371, r=lw). 2009-12-01 13:32:02 -08:00
Robert Sayre
3192563f6f Reland bug 473228 and bug 530507 2009-12-01 16:02:09 -05:00
Robert Sayre
03f335335d 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
8dac81dafc Merge 2009-12-01 15:51:22 -05:00
Robert Sayre
4ea539c658 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
Rick Reitmaier
5be99c7ad2 Bug 500466 - avmshell crashes on P3 cpu machine with JIT enabled (r+nnethercote,edwsmith)
Copy x86 CPU detection code from jstracer into Nativei386;
allowing hosts to share the common code.

One potential issue with this patch is that the detection code is
executed each time an Assembler object is created.

If it becomes an issue, it might be worthwhile to add a tri-state
to config in order to capture the value post-test.

--HG--
extra : convert_revision : ab0a893ffe833f1562216186567d4e7798be45aa
2009-12-01 11:36:07 -08:00
Robert Sayre
8be5b171b9 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
5d08f03267 Backed out changeset c696751593d6. Tolerate race condition or broken resolve hook (530507, r=jorendorff). 2009-12-01 09:54:38 -05:00
Nicholas Nethercote
ed2756a1e0 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
e3584b76b3 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
Blake Kaplan
f9ed6eeaa4 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
30300db88d 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
5d34830070 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
708784babe Merge backout. 2009-12-01 09:54:57 -05:00
Igor Bukanov
a3f5d5c07b bug 531037 - eval fixes. r=brendan 2009-12-01 00:01:11 +03:00
Robert Sayre
0340e89b31 Add a call to reportCompare so this test passes. 2009-11-30 14:15:50 -05:00
Robert Sayre
1d2cb92f50 Merge. 2009-11-30 13:55:44 -05:00
Robert Sayre
0ecd6ce6c3 Merge m-c to tm 2009-11-30 13:55:18 -05:00
Doug Turner
fced4ec129 Bug 530652 - Some sites not render flash. Fixing mistake introduced in last push r=biesinger 2009-11-30 09:09:26 -08:00
Luke Wagner
3dcb8555c2 Bug 530366 - don't use std::sort in jsregexp (r=dmandelin) 2009-11-30 09:03:43 -08:00
Zack Weinberg
cf67dd36c8 Bug 530598: If we can't get the preferred address for a poison page, take whatever the OS will give us, rather than giving up 2009-11-30 08:51:07 -08:00
Robert Sayre
57d0498f8e Add a missing credit to trigger a re-compile. 2009-11-30 11:15:10 -05:00