Jason Orendorff
fbb0edbd8d
Merge jsdbg2 to mozilla-inbound. See bug 672829.
2011-08-13 13:29:18 -05:00
Jason Orendorff
6666d9cd42
Merge from mozilla-central to jsdbg2.
2011-08-09 10:21:12 -05:00
Jason Orendorff
c4f527861a
Merge from mozilla-central to jsdbg2.
2011-07-28 13:45:51 -05:00
Jason Orendorff
75a71f51e8
Merge from mozilla-central to jsdbg2 branch.
2011-07-27 18:23:16 -05:00
Jeff Walden
fec16d8559
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
9b4065b6f0
Bug 651940 - When hashing a jsid, assert that js_CheckForStringIndex(id) == id. r=Waldo.
2011-07-27 17:44:29 -05:00
Jason Orendorff
1f245d40df
Merge from tracemonkey to jsdbg2.
2011-07-01 19:02:40 -05:00
Jason Orendorff
fcfd80cfc5
Merge from TM. Huge merge. Stack changes from bug 656462.
2011-06-15 16:14:09 -05:00
Nikhil Marathe
acda759fc1
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
88decefd28
Merge from TM.
2011-06-07 12:12:28 -07:00
Jason Orendorff
8d48b54691
Merge from tracemonkey to jsdbg2.
2011-05-20 11:34:31 -05:00
Chris Leary
8a58ce9072
Bug 657537: clean up jschar inflation/deflation. (r=Waldo)
2011-05-26 15:50:05 -07:00
Jeff Walden
1d16386477
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
a0e4b2bf22
Merge from tracemonkey to jsdbg2.
2011-04-29 10:12:46 -05:00
David Mandelin
8c1a69f7eb
Fix MSVC warning.
2011-05-17 18:31:00 -07:00
Chris Leary
a7253cc393
Bug 654301: Better interned string API, take 2. (r=Waldo)
2011-05-17 12:15:12 -07:00
Jason Orendorff
5e2c73b316
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
b1f75f3be0
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
87089e8f09
Bug 669776 - Genericize tagged pointer hasher. (r=Waldo)
2011-07-19 16:37:11 -07:00
Andreas Gal
fd2168c3af
Implement Harmony weak maps (bug 547941, r=jorendorff).
2011-04-16 21:23:44 -07:00
Jeff Walden
190c5e9bc0
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
0780a149be
Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke)
2011-06-24 14:22:30 -07:00
Luke Wagner
de6d0e2330
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
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
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
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
Chris Leary
089bf2c468
Back out bug 654301 to run again on try.
2011-05-16 19:03:20 -07:00
Chris Leary
a2ba07f853
Followup fix for broken changeset 7fe5fb2450f4.
2011-05-16 18:39:59 -07:00
Chris Leary
338cf025af
Bug 654301: Better interned string API. (r=Waldo)
2011-05-16 18:18:59 -07:00
Luke Wagner
7c96945e3c
Bug 613457 - clean up string interfaces (r=njn)
...
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Luke Wagner
fee4a41733
Bug 616562 - speed up JSString::isStatic (r=njn)
...
--HG--
extra : rebase_source : 9f0b553b8ab54bfbbd5290ba936581bda8bb40ec
2011-03-14 13:55:55 -07:00
Michael Wu
b3db53f346
Bug 518230 - Use CESU-8 and refer to previous strings, r=igor
2011-03-21 11:06:34 -07:00
Andreas Gal
b8f4800d4e
Rename Proxy enumerateOwn to keys (bug 600642, r=jorendorff,brendan).
2011-01-10 11:42:11 -08:00
Dave Herman
509b20f136
bug 569487, r=gal: Reflect.parse(): custom builder object. NPOTB
2011-01-04 15:39:45 -08:00
Dave Herman
8d44347d5f
backing out due to red
2011-01-03 16:46:25 -08:00
Dave Herman
f1fe5f6fd2
bug 569487, r=gal: Reflect.parse(): custom builder object
2011-01-03 16:31:57 -08:00
Luke Wagner
d8719356c0
Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn)
2010-12-06 10:26:58 -08:00
Luke Wagner
2fc61cf52e
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
59027dc8e7
Bug 604864 - Optimize undefined, NaN and Infinity in methodjit. r=dmandelin
2010-11-01 21:47:45 +01:00
Igor Bukanov
52ea348c4c
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-11 21:40:29 +01:00
David Anderson
7487c14d37
Backed out changeset 8e119f847f97 (build busted)
2010-11-11 11:19:42 -08:00
Igor Bukanov
e32ba97023
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-02 15:36:25 +01:00
Dave Herman
7488e1af91
bug 594060, r=cdleary: Reflect.parse(): make source location information optional
2010-10-19 09:00:51 -07:00
Jeff Walden
0b9b58415c
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
dc286830a3
bug 595207 - making functionNamespaceURIAtom eager for simpler code. r=brendan
2010-09-15 16:55:35 +02:00
Nicholas Nethercote
dbed4dce2d
Bug 594108 - fix RegExp.exec()-to-RegExp.test() conversion. r=brendan.
2010-09-07 18:09:26 -07:00
Dave Herman
484e1a2751
bug 533874, r=jimb: expose the parser as a JS API
2010-06-15 13:32:32 -07:00
Jeff Walden
e1c811e568
Bug 584811 - Date.prototype.toJSON isn't to spec. r=sayrer
2010-08-13 10:42:31 -07:00
Luke Wagner
dd44050eb2
Bug 581875 - use js::HashSet in JSAtomState (r=igor)
2010-07-28 09:54:14 -07:00