Граф коммитов

269638 Коммитов

Автор SHA1 Сообщение Дата
Jeff Walden 8187ba2baa Fix JS_InstanceOf to work correctly again with a null obj, and to assert same-compartment only if called when an error might be reported. rs=luke 2011-04-11 15:36:06 -07:00
Jeff Walden aa882e4e32 Backed out changeset eee087772f45, causes orange in xpcshell (understood and easily fixed) and Moth (not immediately apparent). r=colors 2011-04-11 15:43:03 -07:00
Paul Biggar dd0e2efb8f Bug 585152 - Make Date.now() return fractional as well as integral bits (for submillisecond timing) (r=jwalden) 2010-08-06 13:35:00 -07:00
Tom Schuster c7f7565f33 Typo fixes for previous patch, r=jwalden 2011-04-11 10:48:28 -07:00
Tom Schuster 0201710b5b Bug 601709 - Remove the misnomer InstanceOf variant methods by replacing their uses with clearer if-not-class-then-report code. r=jwalden
--HG--
extra : rebase_source : 171b8afefec6b00dd9981315a3e591fe347634dd
2011-04-11 01:38:27 -07:00
Jeff Walden c3f0929874 Bug 640503 - Convert new String().length to use a regular data property and not a shared-permanent property-op getter/setter. r=jorendorff
--HG--
extra : rebase_source : 06bb9b53c0498d20b3afc6e558096c2398559602
2011-03-13 20:38:34 -07:00
Andreas Gal 782aa494b4 CallJSPropertyOp incorrectly called with obj instead of receiver in Shape::get (bug 648919, r=jorendorff). 2011-04-10 17:49:59 -07:00
Phil Ringnalda 72d5b3cc9a Bug 648870 - Stop trying to package the tests in proxies/, since those tests are actually in js1_8_5/extensions/, r=bc
--HG--
extra : rebase_source : d7e63571c7ae91ece3fdc310b1a4264fb0b34d3d
2011-04-10 13:35:38 -07:00
Ed Morley 2d0c205d2a Bug 647389 - Remove WINCE stuff from Spidermonkey (r=jorendorff) 2011-04-09 20:17:53 +01:00
Gregor Wagner 109139f0a3 Bug 648786 - Fix checkArenaListsForThing (r=gal) 2011-04-09 17:26:58 -07:00
Jeff Walden a03b4b8919 Bug 648355 - Disable a fragile JSAPI test that seems to have been kicked into failure likely by compiler-determined optimizations, or something similarly undefined and maybe now impossible to rely upon -- but we'll see. For now, just return to green and really deal with it later. r=orange 2011-04-08 15:24:00 -07:00
Dave Herman 9510f6ac01 added missing JS_HAS_GENERATORS #if/#endif (r=gal) 2011-04-08 13:46:19 -07:00
Dave Herman 6661c6f74f Function.isGenerator (bug 648355, r=brendan) 2011-04-08 13:31:14 -07:00
Jeff Walden 68b927af8c 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 f1a6ee53e6 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 100a8553ea 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 d315235a27 Bug 636175 - Move dom/src/json/test/unit tests into JS suite tests, because that's where they belong. r=pbiggar
--HG--
rename : dom/src/json/test/unit/pass3.json => dom/src/json/test/unit/decodeFromStream-01.json
rename : dom/src/json/test/unit/test_decode.js => dom/src/json/test/unit/test_decodeFromStream.js
rename : dom/src/json/test/unit/test_long_input.js => dom/src/json/test/unit/test_decode_long_input.js
extra : rebase_source : 6091ebb40a273c4bdd40d42e331e2c15e58d13f8
2011-02-25 19:01:54 -08:00
Jeff Walden c198acfcf8 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 971cca816f Remove implicit cycle-collector dependency on XPConnect lazy initialization broken by 59705c13d959 (rs=peterv) 2011-04-07 16:53:33 -07:00
Luke Wagner d30f4dcd18 Update Makefile.in to reflect one fewer calls to UnwantedForeground::free (r=burning) 2011-04-07 15:06:41 -07:00
Luke Wagner 5828824e58 Bug 647337 - rm script filename prefix and flag stuff (r=mrbkap) 2011-04-07 14:25:32 -07:00
Gregor Wagner 3622cffc11 Bug 647055 - Fix MarkIfGCThingWord. r=igor 2011-04-06 13:05:16 -07:00
Jeff Walden 8853e5b880 Followup, Windows is dumb and doesn't allow 1.0 / 0.0 (spec violation?). r=bustage 2011-04-06 11:29:47 -07:00
Jeff Walden 27dffbdba3 Bug 643590 - Convert nsJSON::DecodeFromStream to buffer all JSON data, then process it all in one swell foop once it's all received. r=jst 2011-03-21 11:42:14 -07:00
Jeff Walden af47ba19ae 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 97d6949ea5 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 6a5baa1c5b 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 809c5784c4 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 6fa7051839 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 e7d839fe35 Bug 644985 - Pass correct host triplet to libffi configure r=ted.mielczarek 2011-04-05 15:43:45 +00:00
Nicholas Nethercote 21906b7807 Bug 636654 - Extract large cold chunks (e4x, @lines) from getTokenInternal(). r=brendan. 2011-04-04 18:54:48 -07:00
Igor Bukanov efec853351 bug 641048 - follow up to fix compilation warnings. r=njn 2011-04-05 03:49:42 +02:00
Igor Bukanov a033ff5455 Bug 641048 - adding proper constructor/destrictor to JSTHread/ThreadData 641048. r=luke r=mrbkap 2011-03-13 15:45:02 +01:00
Paul Biggar b2b8c2e98f Disable check-jstests to fix orange on SM builds. 2011-04-03 20:12:27 -07:00
Paul Biggar 285cbfd4c5 Disable check-ooms to fix orange on SM builds. 2011-04-03 19:14:23 -07:00
Paul Biggar 5d31c39421 Bug 647482 - jstests looks for config/autoconf.mk in the wrong place (rs=nnethercote) 2011-04-02 15:32:00 -07:00
Paul Biggar 59cf2f2241 Fix OOM checker in non-regression mode (NPOTB) 2011-04-03 18:39:36 -07:00
Paul Biggar e2a98c8fc9 Bug 646763: Fix |make check-ooms| which never ran (r=nnethercote) 2011-04-03 18:29:46 -07:00
Chris Leary bbd3976989 Merge mozilla-central to tracemonkey. 2011-04-02 12:12:45 -07:00
Ehsan Akhgari f734970494 Merge cedar into mozilla-central 2011-04-02 11:48:22 -04:00
Ehsan Akhgari 5b4b1ce83b Backout changeset 88eb5b5bb5d2 (bug 583514) because of reftest orange 2011-04-02 07:55:52 -04:00
Ginn Chen a22f2c9830 Bug 647150 Fix compile of nsWifiScannerSolaris.cpp r=cjones NPOTB 2011-04-02 16:25:54 +08:00
Paul Biggar ce6ebb2d18 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 3acd3bfeec 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 e613a018d5 Bug 642298: Add jitflags to tinderbox output. (r=dmandelin) 2011-04-01 21:12:07 -07:00
Paul Biggar 006d60c13b 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 9ce0063424 Bug 627632: Avoid unnecessary realloc in StringBuffer::finishString(). (r=luke) 2011-04-01 16:33:41 -07:00
David Zbarsky 57d8184118 Bug 583514 - implement click and accesskey for all HTML elements r=smaug 2011-04-01 18:50:58 -04:00
Ehsan Akhgari 9888ac84db Backout changeset 649f50ed53ca (bug 646184) because of debug crashtest failures 2011-04-01 18:22:22 -04:00
Ehsan Akhgari eb95a6875a Merge mozilla-central into cedar 2011-04-01 18:21:39 -04:00