Igor Bukanov
0d38a472cc
bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan
2009-10-28 14:57:31 +03:00
Igor Bukanov
8785797ba7
Backed out changeset 14c76164f4c2 - patch for bug 524346 caused test fails
2009-10-27 19:21:47 +03:00
Igor Bukanov
ed4f6edf7f
bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan
2009-10-27 13:26:57 +03:00
Luke Wagner
6bfe9f9329
Bug 460904 - rename/tweak JSTraceableFunction (take 2)
2009-09-04 13:44:31 -07:00
Luke Wagner
3087376a4d
Backed out changeset 94da2f68afdb
2009-09-04 11:35:52 -07:00
Luke Wagner
52d822b6d2
Bug 460904 - rename/tweak JSTraceableFunction (r=jorendorff)
2009-09-03 11:57:14 -07:00
Robert Sayre
86100e21e2
Merge mozilla-central to tracemonkey.
2009-08-20 18:02:17 -04:00
Andreas Gal
eb0e17b391
Build fix for bug 511307.
2009-08-19 15:58:36 -07:00
Andreas Gal
489dd4c0f9
Specialize math functions to integer arithmetic where appropriate (511307, r=dvander).
2009-08-19 15:31:10 -07:00
Andreas Gal
9a78cb5d5f
Use thread-local RNG for Math.random() (511328, r=shaver,waldo).
2009-08-19 15:23:54 -07:00
Serge Gautherie
cb736aa5e4
Bug 508760 - Remove MSVC6 support from the tree; (Ev1) js/src/*; r=graydon
2009-08-18 19:24:45 +02:00
David Mandelin
cfb0d1fd1b
Bug 506821: clean up trailing whitespace, r=brendan
2009-07-27 18:40:12 -07:00
Igor Bukanov
9534c3d315
bug 504033 - avoiding calling JSFinalizeStub. r=brendan
2009-07-22 18:23:21 +02:00
David Anderson
c9fca61ed4
Build fix, follow-up to bug 503595.
2009-07-11 16:02:31 -04:00
Jason Orendorff
52fe5a97ba
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
Jim Blandy
875aee5e88
Bug 479258: Include "jsstdint.h" for <stdint.h> type use within SpiderMonkey. r=brendan
2009-03-18 11:38:16 -07:00
Jim Blandy
ede7e6d142
Bug 391488: Eliminate PTRDIFF macro; delete jssttddef.h. r=jimb
...
Delete jsstddef.h, since its only remaining purpose is to make certain
Win16-specific definitions; we don't support Win16 any more. In
particular, we can just subtract pointers now, so the PTRDIFF macro is
unnecessary noise.
Most places get stddef.h via jstypes.h or some other header, so we can
just delete #inclusions of jstddef.h. The exception is jskwgen.h, so
there we explicitly include <stddef.h> instead.
2009-02-18 09:14:51 -08:00
Andreas Gal
65b4bad89c
XP_MACOSX and DARWIN are not set in the shell, so use __APPLE__ (another follow-up for 465460, r=danderson).
2008-12-17 22:58:02 -08:00
Robert Sayre
7b0ca330e8
Bug 423231. bustage fix.
2008-12-17 18:27:17 -05:00
Andreas Gal
4074f82a15
Return -0 for ceil if x < 0 and x > -1 (423231, r=jim).
2008-12-17 14:23:53 -08:00
Jim Blandy
a49451a0af
Bug 461180: Define traceable native versions of the rest of the math funcs. r=jorendorff
2008-12-15 14:45:56 -08:00
Jeff Walden
fc1eca74c9
Bug 459405 - Math property flags regressed by bug 376957. r=brendan, a=sayrer
2008-12-02 22:39:10 -08:00
Jim Blandy
2da951bef1
(no bug) Use JS_FASTCALL for math_atan2_kernel.
2008-12-01 18:18:22 -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
Brendan Eich
cb47c4cf08
Bug 456511 - (imacros) TM: Make conversion work on arbitrary JSObjects (r=gal).
2008-11-13 00:30:20 -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
c867e60dfc
Merge.
2008-10-23 14:47:00 -07:00
Jim Blandy
48c4b8be4b
Bug 461192: Rename fd_copysign to js_copysign. r=jorendorff
...
Since we're no longer using fdlibm, it doesn't make sense to use
fd_copysign as the name of SpiderMonkey's appropriately chosen version
of copysign. js_copysign seems more appropriate.
2008-10-22 14:52:14 -07:00
Jim Blandy
aff447bc08
Bug 461192: Drop fd_ prefix from math functions. r=jorendorff
...
The Mozilla tree used to optionally use its own math library, fdlibm.
For each standard math function FOO, fdlibm defined its own version
named fd_FOO. The SpiderMonkey sources called the fd_FOO functions
directly. In configurations where fdlibm was not used, jslibmath.h
#defined fd_FOO to expand to FOO, resulting in references to the
standard math library's functions.
Now that fdlibm is not used, even optionally, those fd_ prefixes are
unnecessary. However, some code is still needed to choose the right
copysign function, so jslibmath.h still has a reason to exist.
2008-10-22 14:52:14 -07:00
Jim Blandy
cf8c925b8f
Bug 461192: Remove references to JS_USE_FDLIBM_MATH from js/src/jsmath.cpp. r=jorendorff
...
The Mozilla tree no longer uses fdlibm, so these adaptor macros are no
longer necessary.
2008-10-22 14:52:14 -07:00
Jason Orendorff
68a5dcca96
Bug 460157 - Yet more macros for defining builtins. r=brendan
2008-10-21 17:58:06 -05:00
Graydon Hoare
da90de1d13
Bug 458431 : residual typo-fix on previous Math.max fix that went in with 457786
2008-10-16 13:29:02 -07:00
Jason Orendorff
e0b7bce037
Bug 459266 - TM: Allow CALLINFO macros to specify linkage. r=brendan.
2008-10-16 14:24:10 -05:00
Graydon Hoare
bf84bf6273
Merge tamarin-redux (nanojit2) into tracemonkey (457786, r=edwsmith,gal,danderson).
2008-10-13 13:29:18 -07:00
Jason Orendorff
a27d101dab
Bug 458735 - Improve internal API for traceable natives (r=brendan, nanojit r=edwsmith)
2008-10-08 17:08:33 -05:00
Graydon Hoare
7bd301d171
Bug 458431 - expression-ordering fix for traced Math.max(0,-0), r=mrbkap
2008-10-03 14:07:33 -07:00
Blake Kaplan
88856d9ef1
Merge tracemonkey -> mozilla-central
2008-09-09 23:38:21 -07:00
Blake Kaplan
4203e79309
Trace Math.max. r=brendan
2008-09-08 20:06:58 -07:00
David Anderson
9937dc1262
Trace through Math.log as a known native (bug 453868, r=brendan).
2008-09-05 14:25:01 -07:00
Jim Blandy
90bf6a2d1e
Bug 97954: Give jsconfig.h a better name, and make room for the new js-config.h. r=bsmedberg
...
We'd like the SpiderMonkey configure script to generate a header file
named js-config.h to hold #definitions chosen at configure time that
affect the SpiderMonkey API, like JS_THREADSAFE. However, that name
is very similar to that of an existing header file, jsconfig.h. This
patch renames the existing header file, and updates all references to
it.
--HG--
rename : js/src/jsconfig.h => js/src/jsversion.h
2008-09-05 10:19:17 -07:00
Blake Kaplan
298caaa80f
Bug 451782 - Trace Math.ceil. r=brendan
2008-08-25 16:54:02 -07:00
Andreas Gal
1859be808c
Stub the getter and setter on class prototypes and constructor (bz, r=brendan, bug 451154).
2008-08-20 12:58:07 -07:00
Robert Sayre
c8dd484645
Bug 449978 – TM: trace some more builtins for string-validate-input
2008-08-09 21:47:52 -04:00
Brendan Eich
eaf4254c15
Merge from mozilla-central.
2008-08-08 18:58:04 -07:00
Igor Bukanov
b16852c1cd
bug 412296 - removal of minarg support for fast native
2008-08-08 18:02:50 +02:00
shaver@mozilla.org
124e9ae44b
trace Math.random
2008-07-30 15:51:44 -07:00
shaver@mozilla.org
0180d69fd8
fix our aliasing idiocy by extending jsdpun, add Math.sqrt, add strict-aliasing to our Makefile.ref flags
2008-07-14 18:22:05 -04:00
Brendan Eich
ba3c776fc2
js_ for library-extern names like math_sin.
2008-07-12 12:35:36 -07:00
shaver@mozilla.org
fd5ac5b844
add Math.cos and Math.pow to the specialized-call party, and add tests
2008-07-12 00:03:33 -04:00