Commit Graph

20 Commits

Author SHA1 Message Date
Benjamin Smedberg
db11be65b9 Bug 269538 - use stdint types instead of jscpucfg types, now that we have them auto-configured
* Various code inside and outside of JS uses JS_BYTES_PER_WORD, so I added it to js-config.h
* Existing code uses JS_BYTES_PER_DOUBLE, JS_BITS_PER_WORD_LOG2, and JS_ALIGN_OF_POINTER so I've added autoconf tests for those

r=crowder r=jimb
2009-01-14 15:56:30 -05:00
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
Jason Orendorff
b7fb9bc849 Bug 460865 - Read barrier for cx->fp. r=mrbkap, r=dmandelin.
--HG--
extra : rebase_source : 19963188b2f9f96336ce6ca28dbaefccf3a639b7
2008-12-09 10:38:32 -06:00
Ginn Chen
b807ca4816 Bug 440714 use -xldscope for Sun Studio on Solaris r=vladimir,benjamin sr=benjamin 2008-09-08 14:21:07 +08:00
Arpad Borsos
9b6f558fee Bug 398946 - Remove JS_STATIC_DLL_CALLBACK and JS_DLL_CALLBACK from the tree; r=(benjamin + bent.mozilla) 2008-09-07 00:21:43 +02:00
David Anderson
be89898254 Merge with mozilla-central. 2008-09-02 14:17:19 -07:00
David Anderson
0af468fa80 Fixed accidental debugging change I pushed with changeset de2d26b3c902. 2008-09-02 12:36:23 -07:00
Ginn Chen
76f8dc0daf On x86 compilers without fastcall, simulate it when invoking traces and un-simulate it when invoking builtins (bug 452390, r=dvander). 2008-09-02 11:43:55 -07:00
Igor Bukanov
91905c13d0 bug 452586 - fastcall attribute should only be used on i386. r=shaver 2008-08-29 09:51:00 +02:00
Peter Weilbacher
a39ac3faf1 [OS/2] Bug 451686: fix build break and fastcall warnings in js/src, r=shaver 2008-08-22 11:53:26 +03:00
David Anderson
c340cb93c0 Only use fastcall on x86. 2008-08-12 11:46:57 -07:00
Brendan Eich
2991c66416 - Avoid unnecessary FASTCALL builtin wrappers for existing js_* library-private or friend functions, which could be (and now are) fastcall (JS_FASTCALL). A couple of builtins avoid name collisions by using js_Fast instead of just js_ as their name prefix.
- Use GCF_DONT_BLOCK from fastcall builtins that call into the GC allocator (mostly; a few places need help still, or better: need to avoid allocation).
- Cope with C clients of jscntxt.h and its include files (these hacks should go away).
- Naming convention and function definition line-break style nit-picks.
2008-08-10 00:39:18 -07:00
Igor Bukanov
dcdf0df942 bug 445391 - re-enable OJI for Firefox 3.1, the configure changes is from jst, r=jst,crowder, sr=benjamin 2008-07-29 19:53:03 +02:00
jag@tty.nl
05755b11a8 Bug 415142: Mozilla build broken in mozilla/js/src/jsgc.c:2217. All the compilers we support can handle long long, so just go with that. Also remove ifdefs for compilers we no longer care about. r=/a=brendan 2008-02-19 21:11:01 -08:00
jag@tty.nl
e96d1b2fef Bug 417477: Mingw build error in ../mozilla/js/src/jslock.c: syntax error. p=bengt.erik.soderstrom@telia.com, r=jag, a=brendan 2008-02-18 12:10:37 -08:00
jag@tty.nl
02c1f88ad5 Bug 417419: You too can solve global-warming without making the JS_INLINE macro ugly. r=/a=brendan 2008-02-14 15:56:53 -08:00
crowder@fiverocks.com
52e061dee3 Bug 417077 - more rigorous inlining functionality for JS, r/a1.9=brendan 2008-02-13 13:50:05 -08:00
igor@mir2.org
4b387e5fd5 Bug 415274: Patch from Mike Moening to allow buiding SpiderMonkey as a static library. r=myself, a1.9=brendan 2008-02-09 06:19:36 -08:00
igor@mir2.org
64f1c8053d Bug 384478: Patch from Mike Moening to fix warning when compiling with VC. r=me 2007-06-18 12:33:21 -07:00
hg@mozilla.com
465265d0d4 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00