Commit Graph

42 Commits

Author SHA1 Message Date
Terrence Cole
e7ed15573e Bug 798624 - Specialize low-level character access to JSStableString; r=luke, rs=Waldo
Implements JSStableString::chars() and pushes StableCharPtr into the interface
at several key choke-points. This will solidly enforce the requirement that we
have uninlined jschar*s in places that we may GC with a jschar* on the stack.

--HG--
extra : rebase_source : 122785b474af371ed22d43a6bfcb600c05440405
2012-10-08 15:04:36 -07:00
Terrence Cole
98b249d2c0 Backout 754a1efb5b37 for bustage on a CLOSED TREE 2012-10-08 15:42:39 -07:00
Terrence Cole
d079920e40 Bug 798624 - Specialize low-level character access to JSStableString; r=luke, rs=Waldo
Implements JSStableString::chars() and pushes StableCharPtr into the interface
at several key choke-points. This will solidly enforce the requirement that we
have uninlined jschar*s in places that we may GC with a jschar* on the stack.

--HG--
rename : content/html/content/test/test_bug797113.html => content/html/content/test/test_bug780993.html
extra : rebase_source : 19b24e3decfc37c7387ea941233aec8239550927
2012-10-08 15:04:36 -07:00
Nicholas Nethercote
db6466781a Bug 793086 (part 1) - Convert JSClassInitializerOp parameter to HandleObject. r=sfink.
--HG--
extra : rebase_source : e8d20aad8abc0bf85df1f05e90be1ce46e8f0125
2012-09-20 22:17:49 -07:00
Steve Fink
4e52b260b2 Bug 777219 - Prepare SpiderMonkey for a fully rooted API; r=bhackett
--HG--
extra : rebase_source : a6a66d9e41932055e4529550d204d4098f32e37e
2012-07-23 13:37:31 -07:00
Brian Hackett
ffc948bbbe Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin 2012-07-30 05:19:09 -06:00
Brian Hackett
d270a70bec Add more rooters, bug 772303. r=billm 2012-07-10 19:17:29 -06:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Josh Matthews
6b9a8a5fe2 Bug 729204 - Make docshell privacy notifications work across multiple processes. r=bz 2012-04-19 20:13:20 -04:00
Luke Wagner
c7d3e6785c Bug 689362 - Create js/public (with the intention that its contents will eventually be the only INSTALLED_HEADERS), move Vector and HashTable to js/public and some dependencies (r=billm,sr=dmandelin)
--HG--
rename : js/src/jshashtable.h => js/public/HashTable.h
rename : js/src/jsvector.h => js/public/Vector.h
rename : js/src/mfbt/InlineMap.h => js/src/ds/InlineMap.h
extra : rebase_source : 818639b74653667b7a572bc1234398c0e4559a60
2011-10-04 15:33:00 -07:00
Luke Wagner
61f76ef0bd Bug 684526 - Remove Jsvalify/Valueify (r=waldo)
--HG--
extra : rebase_source : a3047338ed088c26a93486addd0be8092fe52934
2011-09-20 11:40:24 -07:00
Luke Wagner
357b5b8cf8 Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Ed Morley
2d385ce59f Backout bug 684110 (08b6eaf6aad0, cf8b35fa1010, 25ee45edabe1, 659f5c7d2cc9, 870f6dd82586 & e1ad65d6a7fd) and bug 684344 (cd1957f6628d) on a CLOSED TREE; a=bustage-fairies 2011-09-03 03:21:25 +01:00
Luke Wagner
39242fcb8c Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Steve Fink
6675f72607 Bug 669972 - Centralize more windows.h handling in jswin.h (r=waldo) 2011-07-07 11:30:43 -07:00
Jeff Walden
1a51bb7cb1 Bug 645922 - Remove nsIJSON.encode/decode, because their functionality is subsumed by JSON.parse and JSON.stringify, and their idiosyncrasies are hindering code improvements. Also remove js_TryJSON and JS_TryJSON, which are no longer used after these changes and have no clear use cases. r=brendan, r=jst 2011-03-28 19:27:15 -07:00
Jeff Walden
4cf43e2ca4 Bug 657013 - Remove the old JSON parser. r=njn
--HG--
extra : rebase_source : 5c11e9179d2291d498667c17c05ff7e5f8ace3f2
2011-05-13 14:27:07 -07:00
Jeff Walden
234a32b92a Bug 648471 - If JSON.stringify's replacer is an array, only get the list of property names to use from it once (i.e. invoke getters on the array only once), and get them in order from 0 to the array's initial length. Also use non-enumerable array index properties in addition to enumerable array index properties. r=pbiggar
--HG--
extra : rebase_source : 874e2502e5b5223feb19b457debc8cc8dc51e6cb
2011-04-11 01:46:12 -07: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
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
Chris Leary
29a4e97a8f Bug 617935: Check string lengths using StringBuffer. (r=lw) 2011-01-12 15:28:58 -08:00
Nicholas Nethercote
2f1f144989 Bug 599254 - Avoid an unnecessary switch in the JSON parser. r=sayrer. 2010-09-27 17:20:43 -07:00
Robert Sayre
ceb91cdc61 Remove useless comment. 2010-09-25 23:05:36 -04:00
Jeff Walden
763465896d Bustage fix for usual Windows over-definition of names. r=windows-only-orange 2010-08-28 21:00:05 -04:00
Jeff Walden
04a95a7188 Bug 564621, bug 582077 - JSON.parse shouldn't allow {"a" : "b",} or [1,]. But, because Firefox's bookmarks "JSON" generation has historically generated invalid JSON (it no longer does, see bug 505656), preserve a "legacy" mode of parsing that can be used to load bookmarks.json files (at least until we no longer support migration from Firefox <4 profiles :-) ). r=sayrer 2010-07-14 13:48:36 -05:00
Nicholas Nethercote
c5586f145a Bug 578216 - Make eval(json-like string) fast. r=sayrer 2010-08-24 11:50:54 -04:00
Nicholas Nethercote
2ab58fd02d Backed out changeset 74ce80e8782e 2010-08-23 22:38:19 -07:00
Nicholas Nethercote
7ba153876d Bug 578216 - Make eval(json-like string) fast. r=sayrer. 2010-08-23 18:13:09 -07:00
Luke Wagner
99411cc93d Bug 549143 - fatvals 2010-07-14 23:19:36 -07:00
Jeff Walden
f9d4e3da72 Bug 564621 - Add some documentation for JSONParserState enum values, so that future changes here don't have to lack docs or be the odd man out. r=sayrer
--HG--
extra : rebase_source : c2ce6322c17ec125f216dd0dc00dcec68585431f
2010-05-12 15:03:04 -07:00
Jeff Walden
ed80c98a49 Readd jsdbgapi.cpp, json.cpp, jsopcode.cpp, and jstracer.cpp changes from bug 548702. 2010-03-29 19:47:40 -07:00
Jeff Walden
95422c65a3 Backed out changeset e7065853ef79; I'll be repushing this incrementally, attempting to find the precise place where things go bad, in the near future. Happy days are here again! :-\ 2010-03-26 18:01:54 -07:00
Jeff Walden
106fbd8085 Bug 548702 - Temporary value-rooting scheme should be C++- and RAII-based, not macro-based. r=igor
--HG--
extra : rebase_source : c7bb34662dbd70df49d40880227139537c60356e
2010-01-11 11:52:21 -06:00
Luke Wagner
1f36a4f0c2 Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo)
--HG--
extra : rebase_source : ac955b5d784ca8fc9a61129e580c2751beb4109f
2009-08-14 16:10:59 -07:00
Luke Wagner
94a2c2cadd Bug 503952 - replace JSStringBuffer with JSTempVector in json.cpp 2009-08-13 17:22:55 -07:00
Robert Sayre
8b3982769a Bug 442059 - [native JSON] allow to blacklist keys by name when encoding to JSON. r=brendan 2009-05-07 13:28:21 -07:00
Brendan Eich
0aadb94a7b Bug 489089 - JSON.parse is way slower than it needs to be (r=igor/sayrer). 2009-04-21 12:09:27 -07:00
Robert Sayre
100a8e68be Bug 476374 - JSON.parse does not support reviver argument as defined in spec. r=jorendorff 2009-03-03 12:55:11 -05:00
Robert Sayre
8e4a6beb13 Bug 462778. Fix JSON top crash. r=brendan 2008-11-07 18:10:39 -05:00
Robert Sayre
c59514f66e Bug 408838 - DOM binding for native JSON. r+sr=shaver 2008-10-01 02:13:58 -04:00