Jason Orendorff
ee1e3d9a60
Merge jsdbg2 to mozilla-inbound. See bug 672829.
2011-08-13 13:29:18 -05:00
Jason Orendorff
17433542e7
Merge from mozilla-central to jsdbg2.
2011-08-09 10:21:12 -05:00
Jason Orendorff
ab9745757f
Merge from mozilla-central to jsdbg2.
2011-07-28 13:45:51 -05:00
Jason Orendorff
daebe48d84
Merge from mozilla-central to jsdbg2 branch.
2011-07-27 18:23:16 -05:00
Jeff Walden
f6f2db44cb
Bug 678074 - Implement js::PropertyName, a subclass of JSAtom which represents a string which does not contain an unsigned 32-bit index. This type will eventually be used internally (and possibly at some point externally) for all guaranteed-non-element property accesses. r=luke
...
--HG--
extra : rebase_source : b5b7b975b7c5e3caa312784a0edc49c112d2aa09
2011-08-10 14:54:47 -07:00
Jason Orendorff
74153045fa
Bug 651940 - When hashing a jsid, assert that js_CheckForStringIndex(id) == id. r=Waldo.
2011-07-27 17:44:29 -05:00
Jason Orendorff
9c06df6eb4
Merge from tracemonkey to jsdbg2.
2011-07-01 19:02:40 -05:00
Jason Orendorff
0273ae1558
Merge from TM. Huge merge. Stack changes from bug 656462.
2011-06-15 16:14:09 -05:00
Nikhil Marathe
8ca5ee1b2a
Bug 656519 - Avoid a malloc (and a finalizer) by storing the malloc'd array in our slots instead of in a separate malloc'd structure in our private field. r=mrbkap
...
--HG--
extra : rebase_source : 791ede2d8db96f56e4ef8478d491aec413d3e392
2011-06-14 15:33:11 -04:00
Jim Blandy
21b5ffddde
Merge from TM.
2011-06-07 12:12:28 -07:00
Jason Orendorff
5177135f55
Merge from tracemonkey to jsdbg2.
2011-05-20 11:34:31 -05:00
Chris Leary
3df1dd05de
Bug 657537: clean up jschar inflation/deflation. (r=Waldo)
2011-05-26 15:50:05 -07:00
Jeff Walden
c635d4cc3d
Bug 671630 - Add an atom for 'BYTES_PER_ELEMENT' in anticipation of its use in future changes. r=mrbkap
...
--HG--
extra : rebase_source : 31b90b4929d088753f393fab01cb55c9062072e7
2011-05-04 16:54:23 -04:00
Jason Orendorff
7916260f39
Merge from tracemonkey to jsdbg2.
2011-04-29 10:12:46 -05:00
David Mandelin
0bfef40d30
Fix MSVC warning.
2011-05-17 18:31:00 -07:00
Chris Leary
4fef967f20
Bug 654301: Better interned string API, take 2. (r=Waldo)
2011-05-17 12:15:12 -07:00
Jason Orendorff
2f326e5c6b
Add rudimentary support for Debug.prototype.hooks.debuggerHandler. Note: A new constant JSPROP_NATIVE_ACCESSOR is added in jsapi.h, so that js_InitClass can create proper accessor properties.
2011-04-18 17:42:07 -05:00
Makoto Kato
379ca2fc94
Bug 672450 - C4233/C4267 warning for jsobj.h, vm/String.h and jsatom.h. r=luke
2011-07-20 14:07:51 +09:00
Chris Leary
b321bc1f30
Bug 669776 - Genericize tagged pointer hasher. (r=Waldo)
2011-07-19 16:37:11 -07:00
Andreas Gal
4ff4d86aa2
Implement Harmony weak maps (bug 547941, r=jorendorff).
2011-04-16 21:23:44 -07:00
Jeff Walden
4844bb5c24
Bug 662231 - Stop installing the jsnum.h header (again). r=jimb
...
--HG--
extra : rebase_source : 23bfbf1d8d10ed3efd501338b65e509b1344ae26
2011-06-08 16:50:23 -07:00
Chris Leary
f1e0113af3
Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke)
2011-06-24 14:22:30 -07:00
Luke Wagner
eb1e4da057
Bug 665189 - hoist JSString and family into vm/String{.h, -inl.h, .cpp} (r=njn)
2011-06-20 11:44:20 -07:00
Jeff Walden
7cc4748be3
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
L. David Baron
b0e2905f19
Back out changeset 7dcd0d16cc08 (bug 547941) for causing jsreftest crashes on debug builds.
2011-04-12 01:28:40 -07:00
Andreas Gal
f5b2ab2567
Bug 547941 - WeakMap. r=jorendorff.
2011-04-11 22:38:11 -07:00
Jeff Walden
0659640d9c
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
Chris Leary
0e34a9857c
Back out bug 654301 to run again on try.
2011-05-16 19:03:20 -07:00
Chris Leary
819521ece6
Followup fix for broken changeset 7fe5fb2450f4.
2011-05-16 18:39:59 -07:00
Chris Leary
36481bff9a
Bug 654301: Better interned string API. (r=Waldo)
2011-05-16 18:18:59 -07:00
Luke Wagner
ee5173d043
Bug 613457 - clean up string interfaces (r=njn)
...
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Luke Wagner
8d021fe786
Bug 616562 - speed up JSString::isStatic (r=njn)
...
--HG--
extra : rebase_source : 9f0b553b8ab54bfbbd5290ba936581bda8bb40ec
2011-03-14 13:55:55 -07:00
Michael Wu
1cc6a2b21f
Bug 518230 - Use CESU-8 and refer to previous strings, r=igor
2011-03-21 11:06:34 -07:00
Andreas Gal
f4c8022172
Rename Proxy enumerateOwn to keys (bug 600642, r=jorendorff,brendan).
2011-01-10 11:42:11 -08:00
Dave Herman
6c3fb1e8ce
bug 569487, r=gal: Reflect.parse(): custom builder object. NPOTB
2011-01-04 15:39:45 -08:00
Dave Herman
8eee2503fb
backing out due to red
2011-01-03 16:46:25 -08:00
Dave Herman
33f1a57622
bug 569487, r=gal: Reflect.parse(): custom builder object
2011-01-03 16:31:57 -08:00
Luke Wagner
e4bb2ca2a9
Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn)
2010-12-06 10:26:58 -08:00
Luke Wagner
56b2810a26
Bug 609440, part 3 - remove fallible public APIs, update mozilla (r=bent,jst,mrbkap,waldo,sdwilsh)
2010-12-03 00:24:17 -08:00
Jan de Mooij
c402f81ebb
Bug 604864 - Optimize undefined, NaN and Infinity in methodjit. r=dmandelin
2010-11-01 21:47:45 +01:00
Igor Bukanov
08acfd00c4
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-11 21:40:29 +01:00
David Anderson
b4ec0dde6d
Backed out changeset 8e119f847f97 (build busted)
2010-11-11 11:19:42 -08:00
Igor Bukanov
048e1e0a13
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-02 15:36:25 +01:00
Dave Herman
7a05401b41
bug 594060, r=cdleary: Reflect.parse(): make source location information optional
2010-10-19 09:00:51 -07:00
Jeff Walden
eb02fa2270
Bug 575522 - Object.prototype.toString should return "[object Undefined]" and "[object Null]" when called with |this === undefined| or |this === null|, respectively. r=jorendorff,brendan
2010-10-12 11:50:03 -07:00
Igor Bukanov
830fa83ae2
bug 595207 - making functionNamespaceURIAtom eager for simpler code. r=brendan
2010-09-15 16:55:35 +02:00
Nicholas Nethercote
882ecfa920
Bug 594108 - fix RegExp.exec()-to-RegExp.test() conversion. r=brendan.
2010-09-07 18:09:26 -07:00
Dave Herman
db75bd8ded
bug 533874, r=jimb: expose the parser as a JS API
2010-06-15 13:32:32 -07:00
Jeff Walden
a70f80d2cc
Bug 584811 - Date.prototype.toJSON isn't to spec. r=sayrer
2010-08-13 10:42:31 -07:00
Luke Wagner
b79071553d
Bug 581875 - use js::HashSet in JSAtomState (r=igor)
2010-07-28 09:54:14 -07:00