Andreas Gal
4b139856e3
Don't expect to pass test for bug 458838 in trace-tests.js until we have upvar (r=me, no code changes.)
2009-02-04 14:59:47 -08:00
Robert Sayre
6e83ebc016
Merge tm to m-c
2009-02-04 12:47:50 -08:00
Vladimir Vukicevic
fc839e5b69
b=474517; add option for trace-test to skip slow tests; r=shaver
2009-02-03 21:11:09 -08:00
Jason Orendorff
e4c1fb1cfd
Bug 462027 - Bail off trace when reentering interpreter. r=gal.
2009-02-03 18:25:12 -06:00
Jeff Walden
461e28ae88
Backed out changeset ca733f2cc237; looks like some include system weirdness is biting where an old version of jsapi.h is being included which then causes a *newer* included version to miscompile. Weird, still investigating...
2009-02-03 15:48:30 -08:00
Jeff Walden
e356cf1d3a
Bug 463243 - Assert correct type in JSVAL_TO_* (and vice versa) macros to fail fast when type errors happen. r=brendan
2009-02-03 13:56:25 -08:00
Jason Orendorff
4e3f2cfd40
Revert to 07be1f190a3d. Revision 5f5c1cd63641 should not have been pushed.
2009-02-03 12:38:44 -06:00
Jason Orendorff
f6ffd1d380
[mq]: bug-462027-v9
2009-02-02 20:42:46 -06:00
Andreas Gal
af99b5186c
Don't try to immediately record a new tree when encountering a failed inner tree activation while recording the outer tree if we are no longer at the actual loop header (475916, r=danderson).
2009-01-29 22:03:43 -08:00
Jason Orendorff
2ba2f5d3ed
Bug 475761 - TM: js_Any_GetProp and friends can reenter. r=brendan. Note that this patch alone does not fix the bug. The rest of the fix comes in bug 462027.
2009-01-29 00:13:03 -06:00
Jason Orendorff
6142999fde
Bug 468782 - TM: js_FastValueToIterator and js_FastCallIteratorNext can reenter (relanding with a bug fix). r=brendan. Note that this changeset alone does not fix the bug; an upcoming patch in bug 462027 completes the fix.
2009-01-28 09:24:35 -06:00
Andreas Gal
1bbc35daad
Backed out changeset d50d3681b94e (attempted re-landing of 474771).
2009-01-27 16:41:43 -08:00
Igor Bukanov
65cda4b280
Backed out changeset 39b1c9f21064 - the patch again has triggered the crashtest timeout.
2009-01-27 15:11:47 +01:00
Andreas Gal
f17d7cf056
Set on-trace flag only during trace execution, not recording (474771, r=brendan, patch has failed before, please back out at the earliest sign of trouble).
2009-01-27 01:55:31 -08:00
Andreas Gal
868cf7c72c
Backed out changeset ece63b96379b
2009-01-27 00:10:38 -08:00
Jason Orendorff
c0cc74fa99
Bug 468782 - TM: js_FastValueToIterator and js_FastCallIteratorNext can reenter. r=brendan. Note that this changeset alone does not fix the bug; an upcoming patch in bug 462027 completes the fix.
2009-01-27 00:19:58 -06:00
Andreas Gal
519b56ea2f
Correct incorrectly reversed order of argument types in builtin description (472533, r=brendan).
2009-01-26 21:05:59 -08:00
Robert Sayre
b5cd4ca3dc
Backout c0b2c82a524e.
2009-01-25 22:36:46 -08:00
Andreas Gal
e481ee3eb8
Only set onTrace flag while running native code, not when recording (474771, r=brendan).
2009-01-25 20:24:25 -08:00
Andreas Gal
184fc63cd1
Backout bug 468782. Confirmed to leak.
2009-01-25 16:38:31 -08:00
Jason Orendorff
c9961fe054
Bug 468782 - TM: js_FastValueToIterator and js_FastCallIteratorNext can reenter. r=brendan. Note that this changeset alone does not fix the bug; an upcoming patch in bug 462027 completes the fix.
2009-01-22 16:39:26 -06:00
Andreas Gal
0feab81363
Backout bug 475048, it causes mochitests to hang.
2009-01-25 15:26:52 -08:00
Andreas Gal
8a264cf6ce
Only emit alias check in for *PROP if the object's shape matches the global object's shape (475048, r=brendan, relanding).
2009-01-23 10:41:44 -08:00
Andreas Gal
9460746d1d
Fixed correctness and leak regression from bug 469044 landing (bug 474769, r=gal, relanding).
2009-01-25 09:05:21 -08:00
Andreas Gal
1d277bc633
Backout all patches since last mozilla-central merge (Thu Jan 22 19:14:02 2009 -500 by sayrer).
2009-01-25 02:58:22 -08:00
Andreas Gal
1baff988de
Only set onTrace flag while running native code, not when recording (474771, r=brendan).
2009-01-23 20:22:23 -08:00
Andreas Gal
a9682f9dff
Backed out changeset 05cbbc9f1ae2, which backed out bug 24106 (so this is re-landing 24106).
2009-01-23 16:56:38 -08:00
Andreas Gal
347e44c31a
Backed out changeset 9fe03078c765 (bug 475048).
2009-01-23 15:13:57 -08:00
Andreas Gal
c7f9743a3d
Only emit alias check in for *PROP if the object's shape matches the global object's shape (475048, r=brendan).
2009-01-23 10:41:44 -08:00
David Anderson
dc86ddce2f
Fixed correctness and leak regression from bug 469044 landing (bug 474769, r=gal).
2009-01-22 22:40:59 -05:00
Andreas Gal
039fe38bed
Test-case for bug 465915 (r=me).
2009-01-22 01:43:28 -08:00
David Anderson
b3ff178462
Specialize trees to global types, so global type instability does not flush the cache (bug 469044, r=gal,brendan).
2009-01-22 01:45:19 -05:00
Jeff Walden
25c8ed99e7
Fix typo noted by bclary in bug 471214
2009-01-20 15:20:21 -08:00
Robert Sayre
aa3aaf69b2
Merge tracemonkey to mozilla-central.
2009-01-31 11:45:24 -08:00
Robert Sayre
7a7d5be9e1
Merge tracemonkey to mozilla-central.
2009-01-28 10:56:08 -08:00
Bob Clary
d7ff11e034
bug 458838 - JavaScript Test by Boris Zbarsky.
2009-01-28 08:34:12 -08:00
Jeff Walden
a7f81d75f6
Unbreak optimized builds so that jitstats typo-checking doesn't affect them; in builds without the global tracemonkey property, we won't have any known jitstats, so check for that case and don't do typo-checking when jitstats tests can't actually be performed. r=graydon
2009-01-16 12:13:13 -08:00
Jeff Walden
01bff439bc
Backed out changeset 71cd51a61b67
2009-01-14 11:28:59 -08:00
Jeff Walden
873ec9adae
Remove a tab, kick tinderboxen to see if oranges are spurious or not
2009-01-13 23:03:42 -08:00
Jeff Walden
367ca9d882
Bug 470997 - TM: trace-test.js should throw an error when |test.jitstats| contains an unrecognized property name. r=gal
2009-01-12 18:06:22 -08:00
Jeff Walden
d1f00e6d29
Add new jitstats to the list in trace-test.js, and add a comment to jitstats.tbl noting that the two lists must be synchronized.
2009-01-12 16:37:09 -08:00
Jeff Walden
c0e7964c90
Fix typos in jitstats property name; it's "sideExitIntoInterpreter", not "sideExits"; also bump iteration counts so it's more obvious at a glance that bug 471214 is unfixed (and that when it's fixed the fixedness will be clear).
2009-01-12 16:12:54 -08:00
Jason Orendorff
436a268bae
Fix trace-test bustage due to my last checkin.
2009-01-09 17:12:20 -06:00
Robert Sayre
8549b885a1
Bug 466781 - TM: inconsistent (0 in d) where d is a String. r=brendan
2009-01-09 00:59:24 -05:00
Jason Orendorff
cf74ec9191
Bug 471540 - TM: "Assertion failure: cp >= buf" at homicideReport.php. r=gal.
...
--HG--
extra : rebase_source : 7f3bc4e8db9ce307360792b889943d8609e8ff6e
2009-01-08 17:09:16 -06:00
Jason Orendorff
b20c028359
Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 3 of 4, call objects, r=brendan)
...
--HG--
extra : rebase_source : 14a82b2b08c8b7dbae5e72623685b7c3947df603
2008-12-11 17:53:05 -06:00
Jeff Walden
d39a0ed158
Move trace-test-math.js to math-trace-tests.js and remove trace.js because they defy my tab-complete-fu
...
--HG--
rename : js/src/trace-test-math.js => js/src/math-trace-tests.js
2009-01-05 18:28:48 -08:00
Andreas Gal
21b0d26f45
Allocate the next page to be used in a lirbuf early to avoid running OOM during a page overflow (471316, r=danderson).
2008-12-30 17:03:43 -08:00
Jeff Walden
5d25aca194
Bug 470737 - TM: "switch(1/0){case Infinity:}" 4X slower with JIT enabled. r=gal
2008-12-22 15:42:24 -08:00
Jeff Walden
5d05cfd543
Bug 470409 - TM: Crash [@ js_EqualStrings]. r=brendan
2008-12-21 21:26:08 -08:00
Jeff Walden
6f0de3c4e0
Bug 470137 - TM: Behavioral difference in addition of objects between JIT, non-JIT. r=brendan
2008-12-21 21:26:08 -08:00
Jeff Walden
4710efd8a4
Bug 469942 - TM: 20% slower to compute unary +/-. r=brendan
2008-12-19 19:30:09 -08:00
Jeff Walden
aa66ca5eb0
Whitespace patrol, move some tests before mandelSet where they should have been, add big scary warnings about not putting anything after mandelSet because they won't get run very often (not until just pre-commit, usually).
2008-12-19 19:09:27 -08:00
Andreas Gal
bbf40348b6
Trace apply/call with an imacro (465214, r=brendan).
2008-12-18 19:20:47 -08:00
Jeff Walden
201e000573
Bug 470133 - TM: fails to trace case with a type mismatch. r=gal
2008-12-18 10:35:09 -08:00
Andreas Gal
3af573343f
Backed out changeset 95b210c2fc92 preemptively. Seems to crash the browser.
2008-12-17 23:09:26 -08:00
Andreas Gal
62f0547add
Trace apply/call using an imacro (465214, r=brendan).
2008-12-17 22:53:35 -08:00
Brendan Eich
56658da21f
Bug 465460 - TM: valueOf ignored on third iteration of loop (r=gal).
2008-12-16 19:03:42 -08:00
Jim Blandy
dc9a66856f
Bug 461180: Add coverage tests for traceable math native functions. r=mrbkap
...
These cases are adapted from those in js/tests/ecma/Math.
2008-12-15 14:45:56 -08:00
Robert Sayre
443f738d12
Backed out changeset f682453c06d0. Failing scriptaculous unit tests, doesn't build on windows or mac ppc.
2008-12-11 20:43:32 -08:00
Brendan Eich
ece10ee8df
Bug 465460 - TM: valueOf ignored on third iteration of loop (r=gal).
2008-12-11 17:50:56 -08:00
Jeff Walden
6afac16038
Bug 465255 - Rewrite TraceRecorder::cmp, take five. (Three, sir!) Three! r=gal
2008-12-08 21:11:56 -08:00
Jason Orendorff
413e752410
Bug 453564 - TM: Assertion failure: JSVAL_IS_NULL(vp[0]) || (!JSVAL_IS_PRIMITIVE(vp[0]) && OBJ_IS_ARRAY(cx, JSVAL_TO_OBJECT(vp[0]))). r=gal.
...
--HG--
extra : rebase_source : be08d1a4ca8a3765523b992a5d4e469e67ba8811
2008-12-09 11:43:32 -06:00
Jeff Walden
e48c310d01
Dangit, why do the tests run correctly locally in small batches? Backing out bug 465255...
2008-12-08 22:19:54 -08:00
Jeff Walden
f143157358
Bug 465255 - Rewrite TraceRecorder::cmp, take two. r=gal
2008-12-08 21:11:56 -08:00
Jeff Walden
77eeb36575
Back out bug 465255, seems I was wrong about the compile error and warning being the only bugs.
2008-12-05 19:51:35 -08:00
Jeff Walden
6cb6d5d43b
Bug 465255 - Rewrite TraceRecorder::cmp. r=gal
2008-12-05 16:17:59 -08:00
Andreas Gal
e367780a2f
Trace apply and call (462482, r=brendan).
2008-12-04 18:07:18 -08:00
Jim Blandy
53829abcf7
Bug 461180: Fix result comparison function for trace tests. r=mrbkap
...
This allows the math tests (next patch) to be pickier about NaN and
negative zero. With the earlier patch, it introduces no regressions.
2008-12-01 15:14:06 -08:00
Jim Blandy
81c2c7def7
Bug 461180: Use 'uneval' when printing expected and actual test results. r=mrbkap
2008-12-01 15:14:06 -08:00
Jim Blandy
b02e993bd9
Bug 461180: Don't depend on type coercion when checking trace test results. r=mrbkap
...
A number of the tests in js/src/trace-test.js specify expected results
of a different type from the actual results. For example, the lsh
test function returns an array of results, while its expected value is
that the string that array becomes when coerced to a string. This
trick allows tests to return structured values as results, even though
JavaScript lacks a deep equality operator. However, this behavior can
be troublesome when writing a test whose goals include checking the
type of the result.
Some tests simply specify expected values as strings for no apparent
reason.
This patch reworks these so that the expected and actual values have
the same type.
2008-12-01 15:14:06 -08:00
David Anderson
c2f9deb2b1
Fixed regression checked in for bug 466128 (bug 466262, r=gal).
2008-11-21 22:55:03 -06:00
David Anderson
cea571a94b
Fixed JSOP_NEG not checking overflow at recording time (bug 465688, r=gal).
2008-11-21 17:17:34 -08:00
David Anderson
56fbffe8c4
Allow recorders to trash multiple trees on the way out (bug 466128, r=gal).
2008-11-21 15:31:59 -08:00
David Anderson
6c91afa7b7
Fix CALLPROP not guarding that the callee is not NULL (bug 465580, r=gal).
2008-11-19 16:08:41 -08:00
David Anderson
63c268384c
Fixed unsafe coercion of JSVAL_VOID to string on trace entry (bug 465483, r=brendan).
2008-11-18 19:48:02 -06:00
Brendan Eich
37c40ca7c0
Merge.
2008-11-17 16:29:40 -08:00
Andreas Gal
f7ca65fe0f
Don't demote multiplication, even if result is demoted and inputs are demotable (465308, r=danderson).
2008-11-17 01:39:49 -08:00
Andreas Gal
4287473ba2
Merge.
2008-11-17 00:05:59 -08:00
Andreas Gal
cdbe1015e3
Don't attempt to do CSE across labels (465276, r=danderson).
2008-11-17 00:05:29 -08:00
David Anderson
442b376986
Fixed regression from recent constant folding patch (bug 465272, r=gal).
2008-11-16 22:52:15 -08:00
Andreas Gal
a9d9eff7ee
Merge.
2008-11-16 22:13:37 -08:00
Andreas Gal
3c5889df4e
Fix tracing of JSOP_IN (465241, r=danderson).
2008-11-16 22:13:13 -08:00
David Anderson
a653ef6015
Fixed branch traces being erroneously marked as dependent trees (bug 464979, r=gal).
2008-11-16 21:58:35 -08:00
David Anderson
637ce7666a
Merge.
2008-11-16 21:37:28 -08:00
David Anderson
d46ed014cf
Fixed edge case in nanojit register allocation for shl/shr (bug 465135, r=gal).
2008-11-16 21:36:33 -08:00
Andreas Gal
bd10f75bdb
Can't bypass ECMADoubleToInt32 in js_StringToInt32 (465239, r=danderson).
2008-11-16 20:43:13 -08:00
Andreas Gal
0218a2502b
Merge.
2008-11-16 20:22:52 -08:00
Andreas Gal
b1e33fe0ff
JIT affects truthiness of "" <= null (465234, r=Waldo).
2008-11-16 20:22:01 -08:00
Jeff Walden
7c2bb3cab6
Bug 465137 - TM: JIT thinks !NaN is false. r=gal
2008-11-16 18:28:51 -08:00
David Anderson
db46b11fa1
Fixed recorders already deeply aborted being pushed onto the deep abort stack (bug 465145, r=gal).
2008-11-16 02:34:51 -06:00
Andreas Gal
4da6188c80
Implement ordered comparison for objects (465133, r=brendan).
2008-11-15 23:19:46 -08:00
Jeff Walden
dded0f5f95
Bug 462060 - TM: JIT: Initializing an array to a constant in a loop doesn't work for some constant values. r=brendan
2008-11-15 16:42:35 -08:00
Andreas Gal
acebe116c1
Don't flush JIT cache from within the recorder (464403, r=brendan).
2008-11-13 15:58:58 -08:00
Brendan Eich
cb47c4cf08
Bug 456511 - (imacros) TM: Make conversion work on arbitrary JSObjects (r=gal).
2008-11-13 00:30:20 -08:00
David Anderson
30101c6443
Fixed recursion in thin loops accidentally trying to close the parent loop (bug 464089, r=gal).
2008-11-12 19:00:15 -08:00
Andreas Gal
074d900a57
Backed out changeset a40f2117bcc0
2008-11-12 17:39:48 -08:00
Brendan
0ca607d76b
Add imacros to support conversion of arbitrary JSObjects (456511, r=gal).
2008-11-12 16:55:45 -08:00
Andreas Gal
55c5823950
Backed out changeset 594ec832d9a8
2008-11-07 18:19:35 -08:00
Andreas Gal
54ba19de70
Trace Function.apply and Function.call (462482, r=brendan).
2008-11-07 15:58:52 -08:00