Commit Graph

370 Commits

Author SHA1 Message Date
Jeff Walden
5d29251946 Bug 652746 - Implement js::ArgumentsObject, js::NormalArgumentsObject, and js::StrictArgumentsObject. r=njn
--HG--
extra : rebase_source : 84258ffa658ba09928ab9b86f8017fa6683f3146
2011-04-25 22:40:00 -04:00
Jeff Walden
e9bdd399b1 Move GlobalObject.* into vm/. rs=cdleary
--HG--
rename : js/src/GlobalObject.cpp => js/src/vm/GlobalObject.cpp
rename : js/src/GlobalObject.h => js/src/vm/GlobalObject.h
extra : rebase_source : 724ae53fda5a1c74a71b01f3d44796536d413a45
2011-04-28 19:08:22 -04:00
Chris Leary
55f7c6409e Merge mozilla-central to tracemonkey. (CLOSED TREE) 2011-05-02 10:55:34 -07:00
Igor Bukanov
8b0d367736 bug 605029 - ArenaHeader versus Arena<FreeCell> and other cleanups. r=wmccloskey 2011-04-20 07:30:10 +02:00
Chris Jones
a61c26e2c0 Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke 2011-04-28 17:48:52 -05:00
Jeff Walden
76a4343e93 Bug 652215 - Add a js::StringObject subtype of JSObject. r=njn
--HG--
extra : rebase_source : 7cdfe72d0932b51408b9ec5dc38219605e1925ce
2011-04-20 16:33:05 -04:00
Paul Biggar
4011ba8b50 Backed out changeset 2919a6aa1ab7 (bug 652449) - jstests in |make check| bounces again. 2011-04-28 07:46:33 -07:00
Paul Biggar
a987ff3fd1 Bug 652449 - Turn on jstests in |make check| on linux only (r=jimb) 2011-04-28 06:45:18 -07:00
Luke Wagner
05d2002b66 Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack* 2011-04-13 09:27:37 -07:00
Chris Leary
71c7cfdc1f Merge mozilla-central and tracemonkey. 2011-04-26 10:42:36 -07:00
Paul Biggar
f52bbc7614 Disable jstests on all platforms again (r=orange) 2011-04-23 12:47:23 -07:00
Jeff Walden
a8a0234d77 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Paul Biggar
da590e6e27 Turn off jstests during |make check| on configs which turned tinderbox orange (no bug, r=jimb,orange) CLOSED TREE
The bad configs are:
   - windows with either --disable-tracejit or --disable-methodjit
   - mac with --enable-dtrace
2011-04-22 12:00:35 -07:00
Paul Biggar
6a750a4341 Bug 647482 (followup): Re-enable jstests in |make check| (r=dmandelin) 2011-04-22 07:29:22 -07:00
Jeff Walden
77e6fd7646 Backed out changeset c8ba5bd72b0c, we have too many test harnesses and I forgot to run one. r=tree-decorator 2011-04-21 16:29:54 -04:00
Jeff Walden
f7e9104cd4 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Mike Hommey
e4a0852976 Bug 638056 - Avoid "The cacheFlush support is missing on this platform" error on exotic platforms. r=cdleary 2011-04-22 10:33:08 +02:00
Bill McCloskey
3c0cd83aa3 Bug 616666 - Use explicit stack for GC marking (r=gal) 2011-04-15 16:56:08 -07:00
Leon Sha
f02a8fab29 Re-landing. Bug 610323 - [TraceMonkey] Implement Jaegermonkey Sparc back-end. Part II. r=dvander. 2011-04-19 01:27:50 -07:00
Leon Sha
4744fa47e3 Backout 91eaf74fff1e. 2011-04-18 20:53:24 -07:00
Leon Sha
c3cb41cc19 Bug 610323 - [TraceMonkey] Implement Jaegermonkey Sparc back-end. Part II. r=dvander. 2011-04-18 20:17:21 -07:00
Andreas Gal
fd2168c3af Implement Harmony weak maps (bug 547941, r=jorendorff). 2011-04-16 21:23:44 -07:00
Gregor Wagner
99a0150f57 Bug 627200 - Background Finalization for Strings and Objects r=gal 2011-04-13 13:43:33 -07:00
Igor Bukanov
55e510df64 bug 646044 - ContextAllocPolicy should not account for GC memory pressure. r=luke 2011-03-30 12:10:12 +02:00
Ed Morley
5acf81cff1 Bug 648876 - Remove superfluous $(OS_ARCH) filter-outs from js/src/Makefile.in (bug 647389 follow-up); r=jimb 2011-04-14 13:48:01 -04:00
L. David Baron
0a579a3bbb Back out changeset 7dcd0d16cc08 (bug 547941) for causing jsreftest crashes on debug builds. 2011-04-12 01:28:40 -07:00
Andreas Gal
55fc66a7e0 Bug 547941 - WeakMap. r=jorendorff. 2011-04-11 22:38:11 -07:00
Chris Leary
329e16e64e Merge mozilla-central to tracemonkey. 2011-04-11 16:54:01 -07:00
Mitchell Field
2416c34b76 Bug 645356 - Use pymake builtins. r=khuey 2011-04-03 17:16:49 +10:00
Chris Jones
02c5d89688 Bug 577899, part 1: Add mfbt, to contain code shared between SpiderMonkey and Gecko. r=luke,ted sr=brendan,bsmedberg,roc 2011-03-31 20:46:35 -05:00
Paul Biggar
43b850291d Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Paul Biggar
72c7701093 Bug 634155: Account for NewCompartment's memory, and change allocation APIs (r=nnethercote)
This changes the allocation API, in the following way:

  js_malloc -> {cx->,rt->,OffTheBooks::}malloc
  js_calloc -> {cx->,rt->,OffTheBooks::}calloc
  js_realloc -> {cx->,rt->,OffTheBooks::}realloc
  js_free -> {cx->,rt->,Foreground::,UnwantedForeground::}free
  js_new -> {cx->,rt->,OffTheBooks::}new_
  js_new_array -> {cx->,rt->,OffTheBooks::}new_array
  js_delete -> {cx->,rt->,Foreground::,UnwantedForeground::}delete_

This is to move as many allocations as possible through a JSContext (so that they may be aken into account by gcMallocBytes) and to move as many deallocations to the background as possible (except on error paths).
2011-03-31 01:13:49 -07:00
Nicholas Nethercote
e2c62437e0 Disable warnings-as-errors, which was introduced by bug 609532. See the bug for justification and follow-up. r=pbiggar. 2011-03-30 17:54:31 -07:00
Chris Leary
78ceed9ab7 Merge mozilla-central to tracemonkey. 2011-03-29 09:05:25 -07:00
Ed Morley
90a849de12 Bug 647389 - Remove WINCE stuff from Spidermonkey (r=jorendorff) 2011-04-09 20:17:53 +01:00
Jeff Walden
f7ed22a8e1 Bug 589664 - Rewrite the JSON parser. r=njn, anticipating more review but getting it in-tree now for simplicity, even if more changes need to be made later 2011-03-23 16:34:53 -07:00
Jeff Walden
54bbd588ec Backed out changeset d2f2cac2e980, some compilers are complainy here and I don't immediately immediately and definitely see the problem -- to debug after backout. r=yunocompile 2011-04-08 09:29:44 -07:00
Jeff Walden
002069bfc8 Bug 589664 - Rewrite the JSON parser. r=njn, anticipating more review but getting it in-tree now for simplicity, even if more changes need to be made later 2011-03-23 16:34:53 -07:00
Jeff Walden
02e7d876a5 Bug 636079 - Refactor JSON.stringify code to more closely conform to the specification, fixing a bunch of known problems in the process. r=pbiggar
Bugs fixed:
* toJSON is now invoked with an argument list consisting of the property name.
* In rare circumstances toJSON was invoked twice for a single object-valued
  property.  This error has now been corrected.
* Stringification no longer throws if the toJSON property of an object being
  stringified is an object but is not callable.
* The replacer function is invoked exactly once for properties of objects
  when those properties are stringified.
* If a replacer function is to be called, it will receive array indexes as
  strings instead of numbers, per ES5.

Other improvements include:

* Speedier internal methods are used, rather than slow external APIs.
* Argument types are more specific (e.g. the "holder" argument is an object).
* Logic to determine when to call the replacer function is unnecessary and has
  been removed.

--HG--
extra : rebase_source : 1f2ee9ff4c14edebda3e48d33d6df32fc44b701d
2011-02-18 03:34:34 -08:00
Luke Wagner
5498350502 Update Makefile.in to reflect one fewer calls to UnwantedForeground::free (r=burning) 2011-04-07 15:06:41 -07:00
Phil Ringnalda
1b448b21c6 Bug 646702 - Add an --enable-sm-fail-on-warnings configure option to make it easier to do Tinderbox SpiderMonkey shell builds that fail on warnings, r=pbiggar 2011-04-06 03:52:28 -07:00
Paul Biggar
9f27af954b Disable check-jstests to fix orange on SM builds. 2011-04-03 20:12:27 -07:00
Paul Biggar
69c0d325e0 Disable check-ooms to fix orange on SM builds. 2011-04-03 19:14:23 -07:00
Paul Biggar
6c146289f4 Bug 646763: Fix |make check-ooms| which never ran (r=nnethercote) 2011-04-03 18:29:46 -07:00
Chris Leary
93970628c1 Merge mozilla-central to tracemonkey. 2011-04-02 12:12:45 -07:00
Paul Biggar
f450e94915 Bug 642299 (part 2): Add jstests to tinderbox via |make check|. (r=dmandelin)
This also fixes a minor bug in jstests.py, where --no-extensions didn't work on
Windows, which uses '\' not '/'.
2011-04-01 21:12:07 -07:00
Paul Biggar
fce27bce09 Bug 644421: Add |make check| rules: check-jit-test, check-vanilla-new and check-sync-dirs. (r=jimb) 2011-04-01 21:12:06 -07:00
Matheus Kerschbaum
355ae99518 Bug 640838: Remove OpenVMS support. r=khuey 2011-03-26 11:51:35 -04:00
Mitchell Field
b6976ca587 Merge mozilla-central to build-system. 2011-03-02 20:38:54 +11:00
Nicholas Nethercote
e3ce73e36f Bug 635155 - Get full JIT-tests coverage back. r=dmandelin, a=beltzner/npotb. 2011-02-28 16:17:05 -08:00