Commit Graph

3918 Commits

Author SHA1 Message Date
Jim Blandy
2da951bef1 (no bug) Use JS_FASTCALL for math_atan2_kernel. 2008-12-01 18:18:22 -08:00
Andreas Gal
a5c2753bb6 Merge. 2008-12-01 16:45:16 -08:00
Andreas Gal
a78d7744c8 Guard on the JSFunction and parent pointers instead of the identity of the function object in case of shapeless calls (451974, r=brendan). 2008-12-01 16:44:22 -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
Jim Blandy
6298d58d4a Bug 461180: Abstract out core code of math_atan2. r=brendan
The C++ implementation of the JavaScript Math.atan2 function includes
not entirely trivial code to compute the result that operates solely
on jsdouble values, and doesn't worry about tagged doubles at all.
This code can be shared between the interpreted and traceable native
implementations of the function.
2008-12-01 15:14:06 -08:00
David Anderson
bce9294e0f Fixed resolve hooks causing recorder to crash (bug 467007, r=gal). 2008-12-01 15:08:40 -08:00
Andreas Gal
bfd4fe191d Abort compilation of a regular expression if we run out of memory during recording (466588, r=danderson). 2008-11-28 17:31:17 -08:00
Andreas Gal
f607be887d Don't output JIT statistics if we don't ever record a trace (466942, r=danderson). 2008-11-27 00:50:24 -08:00
David Anderson
4d1da21f33 Fixed TIMEOUT_EXIT guard being in the wrong location (from bug 453157, r=gal). 2008-11-26 08:29:24 -08:00
Graydon Hoare
fb8e45ee46 Bug 454569 - post-landing style and cast fixes, sr=brendan. 2008-11-25 13:20:52 -08:00
Graydon Hoare
5a94caadef Bug 454569 - Improve accuracy of tracemonkey's oracle, r=gal. 2008-11-24 14:53:27 -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 Mandelin
0952a00f72 Bug 463535: compile regexps to native lazily, r=gal 2008-11-21 17:54:53 -08: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
Jeff Walden
5536e7f722 Bug 465476 - SpiderMonkey confusion over "-0" and "0" properties of an object. r=brendan 2008-11-21 11:47:35 -08:00
David Mandelin
f97a2081d7 Test case to detect bug 465862: case-insensitive mode in the native regexp compiler 2008-11-21 10:56:24 -08:00
Jim Blandy
0f68ad7ed4 (no bug) Move definition of RESideExit *exit to top of function, to avoid error from GCC about jumping across its initialization. 2008-11-21 10:46:28 -08:00
David Mandelin
cb596bbb0a Fixed bug 464866: use regexp source+flags as key to compiled code, r=gal 2008-11-20 16:37:36 -08:00
David Mandelin
98e5c71620 Fixed bug 465862: incorrect handling of 'i' flag in compiled regexps, r=gal 2008-11-20 16:34:06 -08:00
David Anderson
37d2933b13 Fixed double-free of treeInfo in a type instability edge case (bug 465686, r=gal). 2008-11-20 17:20:16 -06: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
Vladimir Vukicevic
7a34f9500d Merge mozilla-central into tracemonkey 2008-11-18 13:54:21 -08:00
Brendan Eich
83c020dce3 Bug 465220 - nested imacro abort not cleanly handled (botches assertions) (r=mrbkap, a=beltzner). 2008-11-17 16:56:01 -08:00
Brendan Eich
37c40ca7c0 Merge. 2008-11-17 16:29:40 -08:00
Simon Bünzli
ce05a1e500 Bug 462774: Drop JSON.jsm. r=gavin, r=sayrer, sr=brendan, a1.9.1b2=beltzner 2008-11-17 13:57:43 +00:00
Igor Bukanov
b31f8300ea bug 452913 - fixing sprop management, r=brendan, a.9.1b2=sayer 2008-11-17 13:59:39 +01:00
Igor Bukanov
a76c374322 bug 464334 - removal of no longer applicable asserts that sp <= static spdepth. r=brendan a1.9.1b2=beltzner 2008-11-17 13:48:57 +01:00
Andreas Gal
27b72971da Removed bogus assert when stringifying objects (465209, r=brendan, a=mconnor). 2008-11-17 01:12:18 -08:00
Ginn Chen
5600ce1618 Bug 452390 Tracemonkey will crash if the compiler doesn't have FASTCALL r=danderson 2008-11-17 07:02:06 +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
36cc27f654 Make sure to flush the JIT cache after a gc even if we didn't import globals (464418, r=brendan, 2nd attempt to push). 2008-11-17 01:20:54 -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
Brendan Eich
4f1fb4a478 No else after return if you please. 2008-11-16 23:16:30 -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
c19528a655 Inline int32 to id fast path into the builtins (465268, r=danderson). 2008-11-16 22:20:34 -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
David Anderson
6f0cd7b8ba Constant fold additions to avoid erroneous isPromoteInt detection (bug 465249, r=gal). 2008-11-16 20:14:27 -08:00
Jeff Walden
7c2bb3cab6 Bug 465137 - TM: JIT thinks !NaN is false. r=gal 2008-11-16 18:28:51 -08:00