Commit Graph

4265 Commits

Author SHA1 Message Date
Jim Blandy
a04892f62e Bug 465640: Use autoconf to declare stdint types on platforms that don't have stdint.h r=bsmedberg
At configure time, check for <stdint.h>.  If we don't have it, find
integer types of various sizes.  On Windows, where we can't run
compilation tests in configure, hard-code definitions suggesting the
use of the built-in __intN types for the exact-size types, and
<stddef.h> for the pointer-sized types.

Use namespace-clean names for the preprocessor macros we define.
Since these types are used in the public JavaScript API, the configure
script needs to place the definitions it finds in js-config.h, the
installed configure-generated header, so it can be used by jsapi.h and
that gang.

New header js/src/jsstdint.h does what it takes to get definitions for
the exact-size and pointer-size integral types.  It includes
<stdint.h> when available, uses the types found by configure.in to
define the {,u}int{8,16,32,64,ptr}_t types itself, or uses the __intN
types and the <stddef.h> header.

Remove now-unnecessary and possibly conflicting definitions of intN_t
types from js/src/nanojit/avmplus.h.
2009-01-13 10:50:24 -08:00
Benjamin Smedberg
fc65bccce5 Followup to bug 463172 (implement --disable-jit) - this block needs to be outside of the SKIP_COMPILER_CHECKS block so that it affects Windows 2009-01-13 12:54:35 -05:00
Benjamin Smedberg
fec9af26d0 Bug 463172 - add a --disable-jit option, r=ted 2009-01-13 11:34:51 -05:00
Benjamin Smedberg
d42ae41122 Backed out changeset 8f347bf50a53 due to x86-64 build bustage, and the fact that the committed patch didn't match the reviewed patch in an important way (bug 469558) 2009-01-13 10:19:25 -05:00
Bobby Holley
475a3a6720 Bug 469558: --enable-system-lcms build option should be removed.r=vlad,sr=ted 2009-01-12 16:20:45 -08:00
Benjamin Smedberg
08c8aadf40 Add a static analysis pass to verify that for any do_QueryFrame<Interface> there is an Interface::kFrameIID declared. NPODB, static-checking only.
--HG--
extra : rebase_source : 0bcfa5b446d0c19610d9d61dd7e281d3923c8736
2009-01-12 14:21:11 -05:00
Ted Mielczarek
3e3567237e bug 472877 - Add configure option to enable gczeal. r=crowder 2009-01-10 17:00:20 -05:00
L. David Baron
e84f7f11b1 Add ability to mark JSDHashTable/PLDHashTable as immutable and thus prevent RECURSION_LEVEL assertions from firing due to lookups racing on multiple threads. (Bug 469004) r=brendan,mrbkap 2009-01-10 08:28:16 -08:00
Ted Mielczarek
e41c278e04 bug 467271 - JS not being PGOed on win32. r=bsmedberg 2009-01-08 13:52:38 -05:00
Ted Mielczarek
d8bff4cf58 bug 471188 - stop calling 'make install' for spidermonkey. r=bsmedberg,jimb 2009-01-08 13:51:27 -05:00
Benjamin Smedberg
2e26c94375 Bug 472461 part 2 - jsgc crashes with !JS_TRACER, r=jorendorff for immediate bustage fix, and I'll get ex-post-facto review from Igor 2009-01-08 10:44:16 -05:00
Benjamin Smedberg
9d2a991be0 Bug 472461 part 1 - jsgc.cpp fails to compile with !JS_TRACER, initial patch by Igor, r=jorendorff with nits fixed by bsmedberg 2009-01-08 10:43:33 -05:00
Michael Ventnor
80e906d414 Bug 469880. Support a libnotify-based implementation of nsIAlertsService for GTK. r+sr=roc,r=ted
--HG--
extra : rebase_source : f9a6a01ffaf868712429a42193a275eecaf9a614
2009-01-08 21:12:16 +13:00
Robert Sayre
baff9704e9 Merge tracemonkey into mozilla-central. 2009-01-07 23:48:28 -05:00
timeless@mozdev.org
5efd1326d0 Bug 136292 jsdIValue doesn't handle Unicode string values at all
Bug 335098 Strings with \x00 are truncated
support non ascii strings from js engine, r+sr=jst
2009-01-07 20:42:15 -08:00
Igor Bukanov
85bdf95da4 bug 419086 - replacing the branch callback with the operation callback. r=brendan 2009-01-08 00:44:52 +01:00
Graydon Hoare
8424af9530 Bug 472553 - Annotations required by jsstack.js analysis, r=jorendorff. 2009-01-07 14:14:51 -08:00
Igor Bukanov
3d5269621d bug 465030 - Support terminating long-running scripts without using extra threads or signals. r=gal,sayrer 2009-01-07 18:45:13 +01:00
Igor Bukanov
33ba59a269 Backed out changeset 763b96e81579 - I committed the wrong patch 2009-01-07 18:44:50 +01:00
Igor Bukanov
01c091bb60 bug 465030 - Support terminating long-running scripts without using extra threads or signals. r=gal,sayrer 2009-01-07 18:40:58 +01:00
Robert Sayre
9aa7891d67 Merge m-c to tracemonkey. 2009-01-07 11:42:59 -05:00
Graydon Hoare
6383e1d5d2 Bug 470388 - Tighten assertion for JSFRAME_POP_BLOCKS on trace-entry frame, r=brendan. 2009-01-06 18:20:33 -08:00
Jesse Ruderman
22cd32241d Add five crashtests 2009-01-06 16:47:56 -08:00
Jason Orendorff
7f92f10b08 Bug 468641 - TM: Add bytecode disassembly to JS_JIT_SPEW output (r=crowder) 2009-01-06 16:51:32 -06:00
Jason Orendorff
be00149c86 Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 4 of 4, rename recoveryDoublePool to reservedDoublePool, r=brendan)
--HG--
extra : rebase_source : d865549cb727aada20fbaa78286de37a97b85bca
2009-01-06 13:39:14 -06:00
Blake Kaplan
c878e5becb Bustage fix from bug 458020 2009-01-06 14:34:16 -05:00
Blake Kaplan
63803e5282 Bug 458020 - Ensure that the display is correct when evaluating a script in a stack frame. r=brendan
--HG--
extra : rebase_source : 01aba83379c17c0abda66ce44adb5d04686fc923
2009-01-06 14:17:12 -05:00
Blake Kaplan
872a17cbfa Bug 470720 - Don't automatically unwrap XOWs or SJOWs in XPCNativeWrappers. r+sr=jst
--HG--
extra : rebase_source : a670c95a103ae0ced9ff50b31d07c7f7958d9339
2009-01-06 14:17:02 -05:00
Blake Kaplan
d269689358 Bug 471366 - Deal with XPCNativeWrapper.prototype correctly. r+sr=jst
--HG--
extra : rebase_source : d651d4f31f41e17a5c31b586cb5906eb7aaab271
2009-01-06 14:16:58 -05:00
timeless@mozdev.org
ede6a5c2f9 Bug 472292 Crash [@ jsdScript::CreatePPLineMap() ] with Firebug when invoking a non-function from an event handler.
r=caillon
2009-01-06 21:34:56 +01:00
Brian Crowder
36fd05589c Bug 471513 - invalid C++ in jsopcode.cpp, r=brendan 2009-01-06 09:18:36 -08:00
Brian Crowder
5bd03bd9a9 Bug 411726 - Use localtime_r when available, to improve Date reporting for locales like Venezuela on platforms like OS X. r=mrbkap, r=ted (for build changes) 2009-01-06 09:18:35 -08:00
Brian Crowder
ca4eed1e1d Bug 433073 - jsregexp.cpp should use dependent strings, r=igor 2009-01-06 09:18:35 -08:00
timeless@mozdev.org
cdcfd4b062 Bug 427164 - jsdIScript.isLineExecutable should return NS_ERROR_OUT_OF_MEMORY for oom, r=caillon 2009-01-04 10:59:17 -08:00
timeless
f254a8e531 Bug 469795 - tolerate contexts which don't have a JSOPTION_PRIVATE_IS_NSISUPPORTS; r+sr=jst 2009-01-04 09:06:51 +01:00
Robert Sayre
34560c2aa8 Merge m-c to tracemonkey. 2009-01-02 12:37:55 -08:00
Andreas Gal
a59109830e Use a single lirbuf for the tracer and rewind lirbuf during GC (471821, r=danderson). 2009-01-02 10:55:02 -08:00
Andreas Gal
a046abd718 Merge. 2009-01-01 17:57:11 -08:00
Andreas Gal
8b28ae8610 Store frame state information in the code cache and merely put a pointer to it onto the native call stack (470375, r=danderson). 2009-01-01 17:55:43 -08:00
Robert Sayre
ed2bf0b595 Mergre mozilla-central to tracemonkey. 2009-01-01 14:25:18 -08:00
Jesse Ruderman
cf4b91bb09 Add 19 crashtests 2009-01-01 14:18:58 -08:00
Phil Ringnalda
b6f4c63c3c Backed out changeset e0cce6a738c9 (Bug 466224 - Make quickstubs call nsINode/nsINodeList methods) for failing mochitest 2008-12-31 18:21:52 -08:00
David Mandelin
90baccb99f Bug 471602 part 1: make regexp compiler use one shared LIR buffer, r=gal 2008-12-31 16:41:33 -08:00
Brendan Eich
67cd92d2ce Bug 471531 - js1_7/decompilation/regress-379925.js | js1_8_1/decompilation/regress-371802.js FAIL (r=jorendorff). 2008-12-31 12:32:35 -08:00
David Mandelin
5ca9583177 Merge. 2008-12-31 11:46:10 -08:00
David Mandelin
77dfbdd679 Attempted fix for bug 470492: top crash in regexp LIR generation, r=gal 2008-12-31 11:43:50 -08:00
Peter Van der Beken
9f2cfc5446 Fix for bug 466224 (Make quickstubs call nsINode/nsINodeList methods). r/sr=jst. 2008-12-31 14:55:20 +01:00
Robert Sayre
98792ddd09 Merge. 2008-12-31 01:53:26 -05:00
Andreas Gal
e47badd3c9 Merge. 2008-12-30 17:04:04 -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