Commit Graph

14751 Commits

Author SHA1 Message Date
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
Jim Blandy
3ee5bd65a5 Bug 672728: Define MoveRef, an rvalue reference type; provide some support for move construction and assignment in js::Vector and js::HashTable. r=luke 2011-08-01 17:52:53 -07:00
Rafael Ávila de Espíndola
37a7cdc2f2 bug 672501 - pass MOZ_OPTIMIZE_LDFLAGS when checking for __thread support. r=ted 2011-07-25 20:43:00 -04:00
Brendan Eich
f2d568f9a0 Tweak to skip-if not fail-if for bug 588061's shell-only test. 2011-08-01 14:45:57 -07:00
Steve Fink
cd923d1651 Bug 673612 - JS shell help was missing functions added through jsdbgapi (r=cdleary)
--HG--
extra : rebase_source : 67668380cdbf28d7bbdc1fc5e39beaf386eb05ab
2011-07-26 15:55:43 -07:00
Steve Fink
2d93efacce Bug 673627 - Make --enable-callgrind turn on --enable-profiling (r=dmandelin)
--HG--
extra : rebase_source : aefb887b05329fb2c80260160dcbd6f9b18ab815
2011-07-26 15:56:04 -07:00
Steve Fink
c319d416f7 Bug 673616 - Fix build with --enable-shared-js and --enable-shark (r=khuey)
--HG--
extra : rebase_source : 8ec038317f7381df27942bd529ef9225ebc6fb0e
2011-07-26 15:42:16 -07:00
Kyle Huey
6ab62c5552 Bug 673940: Don't accidentally overwrite the environment's PYTHONPATH. r=ted 2011-07-25 10:20:43 -07:00
Nicholas Nethercote
84505fba14 Bug 671150 - Add memory reporter for the JS PropertyTable. r=brendan. 2011-07-24 17:00:56 -07:00
Ehsan Akhgari
cadef9ec48 Merge mozilla-central and mozilla-inbound 2011-07-24 12:52:51 -04:00
Ed Morley
665459d156 Bug 672046 - Valgrind suppression files are still generated in objdir even when building without --enable-valgrind; r=ted 2011-07-23 11:59:19 +02:00
Brendan Eich
d94cff4ac3 Bug 588061 - bogus initial tokenizer position (r=cdleary). 2011-07-22 18:14:17 -07:00
Luke Wagner
495c630b33 Bug 672026 - JSObject::principals should return the compartment's principals if there is no object-principals-finder (r=mrbkap) 2011-07-22 15:22:05 -07:00
Ehsan Akhgari
3be0b6110e Merge the last green changeset on mozilla-inbound to mozilla-central 2011-07-22 15:48:18 -04:00