Commit Graph

23921 Commits

Author SHA1 Message Date
Joey Armstrong
f51e2723e8 Bug 661855 - uniq.pl quote regex dot chars in path. r=ted 2011-06-20 15:38:46 -04:00
Michael Wu
fbcd07dca0 Bug 676465 - Replace PRBool with boolean in IDL files, r=bsmedberg 2011-08-06 22:03:32 -07:00
Ehsan Akhgari
346bc29808 Merge mozilla-central and mozilla-inbound 2011-08-07 00:45:59 -04:00
Phil Ringnalda
79604c5856 Bug 243453 - Fix a 10 year old comment typo to fix a 7 year old bug with a 6 year old review request, rs=jband's 7 year old comment 2 in the bug DONTBUILD 2011-08-06 18:16:28 -07:00
Paul Biggar
15f103724e Bug 668936: Stringify String.prototype.replace's arguments in the right order (r=jwalden) 2011-08-05 19:28:31 -07:00
Marty Rosenberg
2fc178b8b4 Bug 649202 - Implement fast typed arrays for ARM (r=jbramley) 2011-08-05 18:14:50 -07:00
Tom Schuster
82842beaa5 Bug 653175 - An array index with a null character could wrongly be considered to be valid. r=jorendorff 2011-08-06 00:37:54 +02:00
Tom Schuster
a5111d2bad Bug 675896 - Expand Unicode ranges to handle chinese identifiers. Add UnicodeData.txt version 6.0.0 r=waldo
--HG--
rename : js/src/make_unicode.py => js/src/vm/make_unicode.py
2011-08-05 18:08:34 +02:00
Luke Wagner
dcceeb54b3 Bug 676486 - Only compare args in StackIter when the StackFrame hasArgs (r=waldo) 2011-08-05 08:22:51 -07:00
Luke Wagner
ebd5e2825c Bug 676023 - Increment pc on error path out of JSOP_RETURN (r=dvander) 2011-08-04 23:15:35 -07:00
Luke Wagner
514e6958c1 Bug 670059 - Add some JS engine telemetry counters to measure occurrences of: E4X, __iterator__, mutable __proto__ (r=taras,waldo) 2011-07-07 15:40:33 -07:00
Luke Wagner
163c7f654a Bug 674522 - Fix jsval_layout on 64-bit big-endian platforms (r=waldo) 2011-08-04 14:49:35 -07:00
Jeff Walden
f0a15f8ce0 Bug 676700 - Slightly speed up js::IndexToId by converting directly to atom, not to string and then to atom. r=luke
--HG--
extra : rebase_source : d352929e4002f285670448e4515bea404f2cf88f
2011-08-04 19:21:25 -07:00
Jeff Walden
30dcca107a Bug 576034 - Remove aliased property implementation details. r=jorendorff
--HG--
extra : rebase_source : 8d87c5b809937b97643b382d49cfae2eee5581a6
2011-08-04 14:38:26 -07:00
Jeff Walden
4c2d4c84ae Bug 576034 - Remove aliased properties APIs. r=jorendorff
--HG--
extra : rebase_source : 09c9947953d6ae6d2f359e1cfedde0ea09c338ab
2011-08-04 14:38:00 -07:00
Luke Wagner
85997de937 Backout a22fad398472 and 373e6bd2705d because of burnage 2011-08-04 15:54:14 -07:00
Luke Wagner
6d4c06f84f Bug 670059 - Add some JS engine telemetry counters to measure occurrences of: E4X, __iterator__, mutable __proto__ (r=taras,waldo)
--HG--
extra : rebase_source : f77f2ad5521bf4543b518f7f6cc40a3778b7a74a
2011-07-07 15:40:33 -07:00
Luke Wagner
b144912be6 Bug 674522 - Fix jsval_layout on 64-bit big-endian platforms (r=waldo)
--HG--
extra : rebase_source : e604fcda8977f50f528f327db8f7bdef22522bb2
2011-08-04 14:49:35 -07:00
Alon Zakai
8c7a6923a2 Bug 674800 - Print address of XPTCStub with nsXPCWrappedJS. r=mrbkap 2011-08-04 15:01:43 -07:00
Jeff Walden
6dacf09c85 Windows warning patrol. rs=luke
--HG--
extra : rebase_source : 1b6800ae7a7d56c1d8f056d6d06d0c9d45815e42
2011-08-04 14:28:41 -07:00
Jeff Walden
80a5672ebf Followup to bug 671630 for the Windows compiler, which actually might well be right in this case. r=bustage 2011-08-04 13:38:35 -07:00
Phil Ringnalda
d40ea94805 Back out 66845f1a3aad (bug 672893) for debug startup crashes 2011-08-06 15:31:30 -07:00
Jason Orendorff
37a2d699c6 Bug 672893 - Don't #include jscompartment.h in xpconnect. r=cdleary. 2011-08-06 16:05:25 -05:00
Matheus Kerschbaum
a13e3f7ed9 Bug 674010 - Remove check for DLL-challenged libcs. r=ted 2011-08-06 16:59:47 +02:00
Jeff Walden
d2df35cdb7 Bug 671630 - Make initializing the ArrayBuffer class non-generic. r=mrbkap
--HG--
extra : rebase_source : cd80bf371b06a96e8ed2335ef6191a8a2e0bb2ad
2011-05-04 16:54:24 -04:00
Jeff Walden
c682dbc9ab Bug 671630 - Make initializing the various typed arrays (but not ArrayBuffer) non-generic. r=mrbkap
--HG--
extra : rebase_source : 8d6755bfc55e7aab68ad32b1998a97be5dd996bb
2011-05-04 16:54:23 -04:00
Jeff Walden
c67925b616 Bug 671630 - Convert typed-array initialization code from being 'templatized' by a macro to being templatized by, well, a template. r=mrbkap
--HG--
extra : rebase_source : 4a51486ddbeafb3930c53981266007364ac34c0b
2011-05-04 16:54:23 -04:00
Nikhil Marathe
7ecfdf8e09 Bug 664249 - API fixes for inlined TypedArray properties. r=mrbkap
--HG--
extra : rebase_source : 1bcd524f639b1e79dbb461c737b6abdbc62ba606
2011-08-01 15:50:04 -07:00
Nikhil Marathe
a33512d7ec Bug 664249 - Inline TypedArray properties into slots. r=mrbkap
--HG--
extra : rebase_source : 5dfb31e3659a8f4365c9c03e4297a120221bb1de
2011-08-01 15:49:51 -07:00
Nikhil Marathe
b655588e75 Bug 667047 - Ensure proper __proto__ behaviour as a normal property after setting it to null once. r=mrbkap
--HG--
extra : rebase_source : de0807c8ad4591ab0e6f0039b292950e9e67ec49
2011-08-01 15:26:54 -07:00
Jim Blandy
30171152e1 Bug 672736: Implement the 'findReferences' shell function. r=jorendorff
findReferences(thing)

Walk the entire heap, looking for references to |thing|, and return a
"references object" describing what we found.

Each property of the references object describes one kind of reference. The
property's name is the label supplied to MarkObject, JS_CALL_TRACER, or what
have you, prefixed with "edge: " to avoid collisions with system properties
(like "toString" and "__proto__"). The property's value is an array of things
that refer to |thing| via that kind of reference. Ordinary references from
one object to another are named after the property name (with the "edge: "
prefix).

Garbage collection roots appear as references from 'null'. We use the name
given to the root (with the "edge: " prefix) as the name of the reference.

Note that the references object does record references from objects that are
only reachable via |thing| itself, not just the references reachable
themselves from roots that keep |thing| from being collected. (We could make
this distinction if it is useful.)

If any references are found by the conservative scanner, the references
object will have a property named "edge: machine stack"; the referrers will
be 'null', because they are roots.

js> var o = { x: { y: { z: {} } }}
js> findReferences(o.x.y.z)
({'edge: z':[{z:{}}], 'edge: machine stack':[null, null, null, null, null]})
js> o = { get x() { return 42 } }
({get x () {return 42;}})
js> findReferences(Object.getOwnPropertyDescriptor(o, 'x').get)
({'edge: shape; x getter':[{get x () {return 42;}}],
  'edge: constructor':[{}],
  'edge: machine stack':[null, null, null, null, null],
  'edge: get':[{configurable:true,
                enumerable:true,
                get:#1=(function () {return 42;}),
                set:(void 0)}]})
js> findReferences(Math.atan2)
({'edge: atan2':[Math], 'edge: machine stack':[null, null, null, null, null]})
js> findReferences(o)
({'edge: o':[{o:{get x () {return 42;}}}], 'edge: machine stack':[null, null, null, null, null]})
js>
2011-08-03 20:19:38 -07:00
Michael Wu
249b0f753d Bug 675567 - Fix PRBool/JSBool mixups, r=mrbkap 2011-08-03 18:59:10 -07:00
Jason Orendorff
e5002b3bc3 Bug 673070 - Fix name lookups in let scopes a bit more ("Assertion failure: sharedBlock" with e4x after fixing bug 646968). r=brendan. 2011-08-03 20:13:56 -05:00
Luke Wagner
b79f27d2f5 Bug 675068 - change off-main-thread cycle collection not to use a (thread-local) safe JS context (r=mrbkap)
--HG--
extra : rebase_source : b5a8a4ffa590bc9d0f2491d6a14bb95a37ff55e9
2011-07-27 09:26:29 -07:00
Luke Wagner
6fa760edaf Bug 675068 - Remove unused XPCCallContext::GetSafeJSContext (r=mrbkap)
--HG--
extra : rebase_source : 6265482abb4fb6b732064b40b178212113c6e70e
2011-07-25 15:41:52 -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
Jeff Walden
b0347962e1 Bug 675745 - Don't specify JSCLASS_CONSTRUCT_PROTOTYPE for js_AttributeNameClass or js_AnyNameClass. The flag's only used in a code path that neither class will ever enter. r=igor
--HG--
extra : rebase_source : 8731f262aae07a01a87ae4063d1370d81b9e5141
2011-08-01 15:14:38 -07:00
Jeff Walden
8c859c2315 Bug 675745 - Initialize the XML class by creating the prototype and constructor manually, and by initializing each according to its special needs. r=igor
--HG--
extra : rebase_source : 925e746f64092c53915b226df3c42cb3f12d90a5
2011-05-04 16:54:24 -04:00
Jeff Walden
45573f159d Bug 675745 - Initialize the QName class by creating the prototype and constructor manually, and by initializing each according to its special needs. r=igor
--HG--
extra : rebase_source : d7e2c26cdb1742c8ac239c4b596e236bc8028211
2011-05-04 16:54:24 -04:00
Jeff Walden
fb5c96b629 Bug 675745 - Initialize the Namespace class by creating the prototype and constructor manually, and by initializing each according to its special needs. r=igor
--HG--
extra : rebase_source : 467661fe15b099da27e29d7f2ceb02c39c4a2b92
2011-05-04 16:54:24 -04:00
Jeff Walden
a8812807fc Actually populate the dtoa cache correctly in js::IndexToString. r=luke over irl
--HG--
extra : rebase_source : eef9c49c3a8cc41d6c0926734e35743e25f4ff23
2011-08-03 12:39:55 -07:00
Igor Bukanov
5778ccd183 bug 674480 - add memory reporter for the number of empty GC chunks. r=njn 2011-07-30 00:17:41 +02:00
Luke Wagner
a9bc3b92ec Bug 676023 - telemetry patch to catch invalid slots reads in StackIter (r=billm)
--HG--
extra : rebase_source : cff7d40cab87e968c7b00aa3ae002355e68b12bd
2011-08-02 13:29:03 -07:00
Bill McCloskey
2ea8bbcb09 Bug 631998 - CALLPROP fix (r=dmandelin) 2011-08-02 11:02:09 -07:00
Bill McCloskey
1dd1ab38ae Bug 674441 - Fix bogus script owner assertion (r=dmandelin) 2011-08-02 10:18:30 -07:00
Bill McCloskey
0c518e835e Bug 675802 - Instrument DestroyScript for more crash analysis (r=dmandelin) 2011-08-02 10:13:03 -07:00
Luke Wagner
caf8226832 Bug 675132 - When flattening strings, round up after incrementing length (for null char) to avoid wasting memory when jemalloc rounds up the allocation size (r=njn)
--HG--
extra : rebase_source : 2d41a8a2fdb4f33be2380b452704e744a6598cd9
2011-08-02 09:21:59 -07:00
Luke Wagner
5aebc4671c Bug 674843 - Censor pushed-but-not-active InvokeSessionGuard frames from the debugger's view (r=waldo)
--HG--
extra : rebase_source : 1003735f0bce7b0de41c794702e0840cc6452edf
2011-08-02 09:21:51 -07:00
Marco Bonardo
baa593cf17 Merge mozilla-central and mozilla-inbound 2011-08-02 11:52:56 +02:00
Michael Wu
e9c6fdc029 Back out bug 667047 for possible orange 2011-08-01 22:46:38 -07:00