Commit Graph

13763 Commits

Author SHA1 Message Date
Jeff Walden
b80782b484 Bug 643532 - Implement JS_ParseJSON and JS_ParseJSONWithReviver, a first step toward moving away from a begin-consume-finish-based JSON parsing process. r=luke 2011-03-21 11:42:06 -07:00
Jeff Walden
edb58f7eb3 Bug 646490 - RegExp.prototype.exec doesn't get the lastIndex and ToInteger() it for non-global regular expressions when it should. r=cdleary 2011-04-01 15:19:03 -07:00
Jeff Walden
208cb6e474 Bug 645468 - Remove js_TryMethod: its semantics aren't what most of its users want, and its utility is limited. r=luke 2011-03-28 20:01:53 -07:00
Jeff Walden
2a6e2dae4b Bug 645205 - Implement RangeCheckedPointer<T>, a smart pointer restricted to a range defined at construction. r=luke 2011-03-28 19:27:02 -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
Jacek Caban
e1ec07563f Bug 644985 - Pass correct host triplet to libffi configure r=ted.mielczarek 2011-04-05 15:43:45 +00:00
Nicholas Nethercote
0d6b5875a9 Bug 636654 - Extract large cold chunks (e4x, @lines) from getTokenInternal(). r=brendan. 2011-04-04 18:54:48 -07:00
Igor Bukanov
07a87ab501 bug 641048 - follow up to fix compilation warnings. r=njn 2011-04-05 03:49:42 +02:00
Igor Bukanov
10724eed0a Bug 641048 - adding proper constructor/destrictor to JSTHread/ThreadData 641048. r=luke r=mrbkap 2011-03-13 15:45:02 +01: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
3ffcab910e Bug 647482 - jstests looks for config/autoconf.mk in the wrong place (rs=nnethercote) 2011-04-02 15:32:00 -07:00
Paul Biggar
05b322465b Fix OOM checker in non-regression mode (NPOTB) 2011-04-03 18:39:36 -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
ade32998d5 Bug 642299 (part 1): When jstests timeout, add "TIMEOUT" to it's tinderbox output. (r=dmandelin) 2011-04-01 21:12:07 -07:00
Paul Biggar
f3da85ac7e Bug 642298: Add jitflags to tinderbox output. (r=dmandelin) 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
Chris Leary
220936793d Bug 627632: Avoid unnecessary realloc in StringBuffer::finishString(). (r=luke) 2011-04-01 16:33:41 -07:00
Chris Leary
7863ab591f Bug 644753: Turn ILLEGAL_RANGE NS_ASSERTIONs to warnings. (r=mrbkap) 2011-04-01 12:07:39 -07:00
Paul Biggar
59c1af50d3 Fix minor typo, followup to bug 634155 (no review) 2011-03-31 19:34:14 -07:00
Luke Wagner
1913b99eb0 Bug 639883 - Use JSString (not JSShortString) for inline really short inline strings (r=njn)
--HG--
extra : rebase_source : 5d18f67f841864064e032836014978cf51b52f5c
2011-03-31 16:07:21 -07:00
Luke Wagner
53aca4319a Bug 639883 - rm js_FinalizeStringRT (r=igor)
--HG--
extra : rebase_source : c7f77ad290112fe7d6c53255dbf5595c94be3422
2011-03-31 16:05:31 -07:00
Makoto Kato
7a5360fad1 Bug 636296 - Fix forceReturn trampoline on Win64/Solaris (r=dvander)
--HG--
extra : rebase_source : 85846343b38031931adafb7e44bc8983fdd3472c
2011-03-28 17:33:53 -07:00
Phil Ringnalda
8d4385b7fe Back out bd821ea0ad41 (638324) for mochitest-chrome crashes 2011-03-31 19:55:10 -07:00
Andreas Gal
e69500d1bc Maintain a list of IdArrays as we hand them out via JS API (638324, r=brendan). 2011-03-31 14:42:33 -07:00
Steve Fink
f24c9d54bb Bug 639943 - Convert IDL formatting to JS engine house style (r=timeless) 2011-03-26 12:05:40 -07:00
Igor Bukanov
d56f220bed bug 643548 - followup to fix js shell builld brekage on Linux 2011-03-31 15:07:48 +02: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
Gary Kwong
79f0ef8539 Bug 643217 - Replace "ASSERTION FAILED" message with "Assertion failure" in assembler. r=njn
--HG--
extra : rebase_source : b9bd22ee029ebeea7b19327d38305ad1f3aba341
2011-03-31 08:44:57 +08:00
Brian Hackett
8e50870411 Transform RegExp.exec to RegExp.test in native call IC, bug 645889. r=dmandelin 2011-03-30 17:43:36 -07:00
David Mandelin
125dbc8ece Bug 645184: normalize id in addprop IC handler, r=dvander 2011-03-30 16:57:44 -07:00
Gregor Wagner
ee36f9fb20 Fix atomsCompartment assertion. No Bug, r=billm 2011-03-30 14:02:21 -07:00
Jim Blandy
f1e6365c99 Bug 645826: Include standard output and standard error in exception text when testing manifest conditions. r=dmandelin 2011-03-30 12:49:47 -07:00
Jim Blandy
d7f8d15385 Bug 643222: Don't assert that we never cached adds to call objects. r=jorendorff
This assertion should not have been added. Although most adds to call
objects are done by DEFVAR operations, which don't create property cache
entries, the test case shows a situation in which a SETNAME, which is
cached, does the add. Since the object whose property should receive the
value of an assignment's RHS is chosen before the RHS is evaluated, it is
correct to put the value of the 'delete' expression on the call.

It would be nice to ensure that this call object, which we know we are
adding bindings to, had been recognized as extensible at compile time by
the analysis added in bug 554955. However, we only set "extensible parents"
flag on the bindings of calls whose *parents* are extensible, not the
extensible calls themselves. So there isn't anything convenient to check
here.
2011-03-30 12:48:24 -07:00
Chris Leary
2ef1aa6439 Bug 642274: Add loose equality to JSAPI. (r=Waldo)
--HG--
extra : rebase_source : 3001604e6e6bfc9c8e73aafc1498a71ae7ade9cd
2011-03-21 10:04:43 -07:00
Andreas Gal
707f928b25 Expose public APIs for converting doubles to signed/unsigned int per ECMA spec (bug 631132, r=bzbarsky). 2011-03-29 19:19:15 -07:00
Chris Leary
733f538571 Merge mozilla-central and tracemonkey. 2011-03-29 14:52:44 -07:00
Chris Leary
ea513eacf6 Nop to force rebuild. 2011-03-29 10:47:59 -07:00
Chris Leary
d5de78ea4b Merge new tracemonkey head. 2011-03-29 09:06:19 -07:00
Chris Leary
78ceed9ab7 Merge mozilla-central to tracemonkey. 2011-03-29 09:05:25 -07:00
Brian Hackett
191b32603c Check for functions in instanceof fast path, bug 642174. 2011-03-28 20:05:23 -07:00
L. David Baron
f30ccb969b Remove the datastruct_ and member_ fields of the CSS_PROP macro. (Bug 645620, patch 5) r=bzbarsky 2011-03-28 16:07:27 -07:00
Luke Wagner
2fa7292b06 Bug 641436 - Don't call Script{Prologue,Epilogue} when resuming/yielding a generator (r=dvander)
--HG--
extra : rebase_source : 6ae3a6645425ee63162e19388143487df5435a65
2011-03-28 11:57:43 -07:00
Gregor Wagner
f18b7462d5 Bug 644871 - Combine MarkAndSweep/MarkAndSweepCompartment (r=billm) 2011-03-28 13:17:46 -07:00
Andrew McCreight
ff37de748d Bug 641910. Don't add non-grey nodes to the cycle collector model graph. r=gal@uci.edu 2011-03-28 13:05:48 -07:00
Joel Maher
f86f549a50 Bug 644697 - jsreftests shell test runner throws "Failed to test XUL condition 'Android'". r=dmandelin, a=test-only 2011-03-28 14:37:07 -04:00