Commit Graph

14764 Commits

Author SHA1 Message Date
Luke Wagner
30ebc3e8b0 Bug 676023 - Increment pc on error path out of JSOP_RETURN (r=dvander) 2011-08-04 23:15:35 -07:00
Luke Wagner
b747d1721b 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
6d1540eb97 Bug 674522 - Fix jsval_layout on 64-bit big-endian platforms (r=waldo) 2011-08-04 14:49:35 -07:00
Jeff Walden
7090baef12 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
e296c93cd9 Bug 576034 - Remove aliased property implementation details. r=jorendorff
--HG--
extra : rebase_source : 8d87c5b809937b97643b382d49cfae2eee5581a6
2011-08-04 14:38:26 -07:00
Jeff Walden
257c90c2ca Bug 576034 - Remove aliased properties APIs. r=jorendorff
--HG--
extra : rebase_source : 09c9947953d6ae6d2f359e1cfedde0ea09c338ab
2011-08-04 14:38:00 -07:00
Luke Wagner
673fa49bf2 Backout a22fad398472 and 373e6bd2705d because of burnage 2011-08-04 15:54:14 -07:00
Luke Wagner
59e742e724 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
59da0b7e25 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
e6b019d27d Bug 674800 - Print address of XPTCStub with nsXPCWrappedJS. r=mrbkap 2011-08-04 15:01:43 -07:00
Jeff Walden
062e461a6e Windows warning patrol. rs=luke
--HG--
extra : rebase_source : 1b6800ae7a7d56c1d8f056d6d06d0c9d45815e42
2011-08-04 14:28:41 -07:00
Jeff Walden
46cf7041a8 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
Jeff Walden
4ce9026e05 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
642bc8cb75 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
5779fe3c93 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
c3f0bf12bc 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
e5119454f0 Bug 664249 - Inline TypedArray properties into slots. r=mrbkap
--HG--
extra : rebase_source : 5dfb31e3659a8f4365c9c03e4297a120221bb1de
2011-08-01 15:49:51 -07:00
Nikhil Marathe
90ec3914c5 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
32f475624f 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
bfc8ebbc5c Bug 675567 - Fix PRBool/JSBool mixups, r=mrbkap 2011-08-03 18:59:10 -07:00
Jason Orendorff
aeda130b6d 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
789e7bfe94 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
76e2ee8515 Bug 675068 - Remove unused XPCCallContext::GetSafeJSContext (r=mrbkap)
--HG--
extra : rebase_source : 6265482abb4fb6b732064b40b178212113c6e70e
2011-07-25 15:41:52 -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
Jeff Walden
8f9eb91e20 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
fcab7750b4 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
1bfe581c8e 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
c09e3e3ba6 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
7a0e72f576 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
d05c6783df bug 674480 - add memory reporter for the number of empty GC chunks. r=njn 2011-07-30 00:17:41 +02:00
Luke Wagner
0c95c6c2bb 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
e899dda583 Bug 631998 - CALLPROP fix (r=dmandelin) 2011-08-02 11:02:09 -07:00
Bill McCloskey
a3152655d2 Bug 674441 - Fix bogus script owner assertion (r=dmandelin) 2011-08-02 10:18:30 -07:00
Bill McCloskey
444df49e50 Bug 675802 - Instrument DestroyScript for more crash analysis (r=dmandelin) 2011-08-02 10:13:03 -07:00
Luke Wagner
249ae27b8a 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
751e43ce2a 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
0dd7aa5da8 Merge mozilla-central and mozilla-inbound 2011-08-02 11:52:56 +02:00
Michael Wu
01b9a1bbf0 Back out bug 667047 for possible orange 2011-08-01 22:46:38 -07:00
Michael Wu
dda77b2c52 Backed out changeset 617081e0fdf5 (bug 667047) for possible orange 2011-08-01 22:46:17 -07:00
Michael Wu
baf0595716 Merging backout (bug 664249) for possible orange r=killer 2011-08-01 21:20:23 -07:00
Michael Wu
8dd49dca83 Backed out changeset 3b9852666565 (bug 664249) for possible orange r=killer 2011-08-01 21:20:01 -07:00
Michael Wu
0a36bbf369 merge backout (bug 664249) for possible orange 2011-08-01 21:19:12 -07:00
Michael Wu
e6dce0d707 Backed out changeset f29ddae820bf (bug 664249) for possible orange r=killer 2011-08-01 21:18:48 -07:00
Ben Turner
716629108d Bug 674721 - 'Add memory reporting for web worker data'. r=jst+njn.
--HG--
extra : transplant_source : 9%D0%8D%BF%CE%B1Z%CC%85%EF%F5e%28%0B%A9%D1%18%99%21%11
2011-08-01 21:06:17 -07:00
Nikhil Marathe
a28285d0a7 Bug 664249 - API fixes for inlined TypedArray properties. r=mrbkap
--HG--
extra : rebase_source : fd068e786d6d49b4800a6efebf9811191a6309ef
2011-08-01 15:50:04 -07:00
Nikhil Marathe
0c583830ce Bug 664249 - Inline TypedArray properties into slots. r=mrbkap
--HG--
extra : rebase_source : 6e3cd2dd738f25b6e1fcf7ac61eaa7f14c238ffc
2011-08-01 15:49:51 -07:00
Nikhil Marathe
332c0da621 Bug 667047 - Ensure proper __proto__ behaviour as a normal property after setting it to null once. r=mrbkap
--HG--
extra : rebase_source : 7fc382055bd6b100c85b97189fbbf58742e87fea
2011-08-01 15:26:54 -07:00
Tom Schuster
6ea96fc45c Add tests for bug 497692 and bug bug 514808 r=Waldo over irc
--HG--
extra : rebase_source : 38e28d963570bcc79c59cb65f2e2294e9068cead
2011-08-02 00:29:12 +02:00
Marco Bonardo
c349396958 Merge last green changeset from mozilla-inbound to mozilla-central 2011-08-01 16:04:07 +02:00
Kyle Huey
aa3baea64a Merge m-c to b-s. 2011-08-01 08:06:23 -04:00