Commit Graph

84 Commits

Author SHA1 Message Date
Chris Jones
5db6ed955f Compile with -D__STDC_LIMIT_MACROS to avoid having to fight with system headers over which includes stdint.h first. irc-r=jimb,Waldo 2010-07-12 18:06:23 -05:00
Jeff Walden
042a11ccff Bug 563938 - Cache DST offsets to improve SunSpider score. r=sayrer 2010-05-26 17:49:04 -07:00
Jeff Walden
395250fc89 Bug 563938 - Refactor units-of-time used in computing DST offsets. r=sayrer 2010-05-26 17:00:28 -07:00
Jeff Walden
d3c73f1014 Bug 563938 - Refactor DST offset computation to pave the way for caching the DST offset when possible. No functionality change. r=sayrer 2010-05-26 17:00:28 -07:00
David Mandelin
020b807d59 Bug 563842: Make PRMJ_Now always high-resolution in Windows shell builds, r=brendan 2010-05-04 18:06:30 -07:00
David Mandelin
91eab6cb1d Bug 506821: clean up trailing whitespace, r=brendan 2009-07-27 18:40:12 -07:00
Jason Orendorff
e37a73d431 Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
Brad Lassey
7852956b07 bug 487515 - PRMJ_Now needs better granularity for panning in fennec r=crowder, robarnold 2009-04-16 12:03:56 -04:00
Brad Lassey
31b0a63de8 Bug 392274 - should _tzset on Win32, follow up to fix windows ce bustage r=crowder 2009-04-15 20:14:42 -04:00
Brian Crowder
f904933f9d Bug 392274 - _tzset on Win32, patch my Mike Perry <mikeperry.unused@gmail.com>, r=crowder 2009-04-15 14:06:39 -07:00
Jim Blandy
daab0107e2 Bug 479258: Include "jsstdint.h" for <stdint.h> type use within SpiderMonkey. r=brendan 2009-03-18 11:38:16 -07:00
Mook
4f5933f133 Bug 437922 - use JS_MAX instead of the max() macro in prmjtime due to mingw-w64 bustage; r=mrbkap 2009-02-23 02:08:00 +01:00
Jim Blandy
918bbe5eae 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
Benjamin Smedberg
b4ed4c5c52 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
Benjamin Smedberg
5c5c4c26c0 Backed out changeset 525e42406396, bug 269538 (jscpucfg-ectomy) due to Windows TUnit bustage. 2009-01-21 17:34:28 -05:00
Benjamin Smedberg
39540d7d28 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
Ginn Chen
5b6a2eecc4 Bug 472622 prmjtime.cpp failed to compile on SunOS 5.* r=jim,crowder 2009-01-21 18:24:03 +08:00
Jim Blandy
8256b05aa2 Bug 461841: Use configure-defined macros in #ifdefs for WinCE in js/src. r=crowder
Perform the appropriate configure-time tests, and hard-code the
answers for targets that don't support autoconf-style tests.  Check
for the io.h header, and the setbuf and isatty library functions.

In js/src/xpconnect/shell/xpcshell.cpp, use configure-#defined
preprocessor symbols to decide what to #include and use.  The
top-level configure script defines the preprocessor symbols used here.

In js/src/prmjtime.cpp, use them to select the appropriate method for
retrieving fine-grained time information for Windows and WinCE.  The
js/src/configure script defines the preprocessor symbols used here.

(This should cover the issues addressed by patch.v2 in bug 461841,
except for the stdint issue.)
2009-01-16 14:10:48 -08:00
Jim Blandy
ddf25ad7c3 Bug 461841: Unshuffle system-specific definitions of PRMJ_Now. r=crowder
Every piece of the body of js/src/prmjtime.cpp's PRMJ_Now function was
in a preprocessor conditional --- it was three entirely independent
implementations shuffled together.  Unshuffling them prepares the way
for adding a new WinCE definition.
2009-01-16 14:10:47 -08:00
Brian Crowder
429ef7d515 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
Arpad Borsos
1b55360c07 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Arpad Borsos
5c3d798db7 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
Brendan Eich
c30f962400 Kill trailing spaces. 2008-06-11 13:07:24 -07:00
Benjamin Smedberg
46806d90d9 Merge cvs-trunk-mirror to mozilla-central. Automated merge, no manual conflict resolution necessary. 2008-04-29 10:20:07 -04:00
8788caf6c2 Merge cvs-trunk-mirror to mozilla-central. 2008-02-27 11:33:49 -05:00
a084ff5343 Merge cvs-trunk-mirror -> mozilla-central 2008-02-22 16:45:09 -05:00
46746096cc Merge from cvs-trunk-mirror to mozilla-central. 2007-11-26 13:55:13 -06:00
2bf2da6480 Merging from cvs-trunk-mirror to mozilla-central. 2007-11-19 15:25:08 -06:00
292a9712b1 Merge cvs-trunk-mirror -> mozilla-central 2007-10-13 21:05:56 -04:00
c2e7c543f9 Merge from cvs-trunk-mirror to mozilla-central. 2007-10-09 13:00:59 -05:00
309bdbeffb rename js/src/*.c back to .cpp to restore hg's knowledge of the rename 2007-08-06 15:56:37 -07:00
e371c76e18 temporarily rename js/src/*.cpp to .c 2007-08-06 15:54:14 -07:00
4e106a1866 merging from actionmonkey 2007/07/16 (Bug 387935, Always build JS as C++) 2007-07-18 14:21:30 -07:00
1650653ff4 Bug 387935, Always build JS as C++, r=benjamin 2007-07-16 11:40:49 -07:00