Commit Graph

1266 Commits

Author SHA1 Message Date
Nick Fitzgerald
42c7acec73 Bug 1200444 - Make JS::dbg::{IsDebugger,GetDebuggeeGlobals} handle CCWs; r=sfink
Most devtools code that uses a Debugger actually ends up doing it through
modules with a different global from the one the Debugger was instantiated in,
and so it gets a CCW. When we pass one of these CCWs to
ThreadSafeChromeUtils.saveHeapSnapshot, it would throw NS_ERROR_INVALID_ARG. The
most straightforward fix is to have the JS APIs that
ThreadSafeChromeUtils.saveHeapSnapshot calls peek through CCWs.
2015-09-02 21:04:56 -07:00
Terrence Cole
6092c20c9e Bug 1196925 - Remove the non-existing relocatable store buffer counts from about:memory; r=njn 2015-08-26 14:51:43 -07:00
Terrence Cole
32ab4ea833 Bug 1196848 - Add Zone::uniqueIds to about:memory reports; r=njn 2015-08-26 14:51:43 -07:00
Terrence Cole
24bdc50b8b Bug 1196847 - Part 2: Implement a cell hasher that uses unique id based hashes; r=jonco 2015-08-26 14:51:35 -07:00
Terrence Cole
d57e54cc36 Bug 1196847 - Part 1: Allow storage of a unique id for a cell independent of address; r=jonco 2015-08-20 10:35:22 -07:00
Jan de Mooij
d761db9aef Bug 1175394 part 2 - Rename normal/strict arguments to mapped/unmapped arguments. r=jorendorff 2015-09-02 13:05:30 +02:00
Jon Coppeard
fefa33d921 Bug 1088214 - Remove JSCLASS_IMPLEMENTS_BARRIERS now this is implemented everywhere r=terrence 2015-09-02 10:40:10 +01:00
Jan de Mooij
43d65157da Bug 1199143 - Inline heavyweight functions. r=shu 2015-09-02 09:44:17 +02:00
Jim Blandy
ebeb1be160 Bug 1200345: Add comment to js/public/UbiNode.h warning about operating on graphs constructed by hostile code. DONTBUILD r=fitzgen 2015-08-31 11:34:57 -07:00
Jim Blandy
d078364c11 Backed out changeset 297155cba060 for landing with the wrong bug number. 2015-08-31 20:17:59 -07:00
Jim Blandy
23e5b948f3 Bug 1200482: Add comment to js/public/UbiNode.h warning about operating on graphs constructed by hostile code. DONTBUILD r=fitzgen 2015-08-31 11:34:57 -07:00
Till Schneidereit
bd98b81d4e Bug 1198193 - Change all functions taking CallArgs to take const CallArgs& instead. r=Waldo 2015-08-27 21:18:37 +02:00
Nick Fitzgerald
2049a707d5 Bug 1196634 - Part 4: Remove JS::ubi::Node::getCanonicalTypeName; r=sfink 2015-08-27 16:16:58 -07:00
Nick Fitzgerald
9af4b2bb85 Bug 1196634 - Part 2: Serialize and deserialize coarseType; r=sfink 2015-08-27 16:16:58 -07:00
Nick Fitzgerald
f62b37ad9b Bug 1196634 - Part 0: Define a JS::ubi::CoarseType enum; r=sfink
This commit defines the JS::ubi::CoarseType enum and a corresponding method
coarseType() on JS::ubi::Node base and concrete classes. It implements the
overrides for all concrete specializations whose referent does not belong to the
default Other type.
2015-08-27 16:16:57 -07:00
Nick Fitzgerald
ca554a96b3 Bug 1198980 - Make JS::ubi::*::identifier be uint64_t instead of uintptr_t. r=sfink 2015-08-27 09:17:00 -04:00
Nick Fitzgerald
8000cc5d10 Bug 1196631 - Make JS::ubi::Node::size return 1 by default. r=sfink
The old default was zero, but one is a better default in a couple ways: (1)
there are no zero-sized things in C++ so one is closer to the truth, and (2) it
gives us an idea of what magnitude of space is consumed by node specializations
which don't have a JS::ubi::Node::size override yet.
2015-08-27 06:03:00 -04:00
Nick Fitzgerald
00c9308db3 Bug 1139476 - Part 0: Add a takeCensus method to HeapSnapshot instances; r=sfink,bholley 2015-08-26 11:38:05 -07:00
Jeff Walden
60a611cf0b Bug 1197097 - Don't use a context-wide cycle-detection mechanism for detecting cycles during JSON.stringify. This prevents nested (yet separate) JSON.stringify, and it causes that algorithm to be affected by specification-unrelated operations like toSource. r=jonco 2015-08-21 03:59:28 -07:00
Nick Fitzgerald
ab356d0e5e Bug 1194424 - Part 3: Implement a concrete JS::ubi::StackFrame specialization backed by a frame deserialized from a core dump; r=sfink 2015-08-24 09:29:44 -07:00
Jon Coppeard
71c70ab45d Bug 1191236 - Remove extract() methods used by operation forwarding on rooting types, r=terrence 2015-08-05 02:38:00 -07:00
Steve Fink
eed1af6238 Bug 1196378 - js_delete should accept a const pointer like builtin delete, r=fitzgen 2015-08-19 10:59:50 -07:00
Steve Fink
8b93c7c716 Bug 1195957 - Implement a Swap for Heap<T> that does not put temporaries on the stack, r=terrence 2015-08-18 12:25:01 -07:00
Nick Fitzgerald
1b701a7716 Bug 1194422 - Expose census traversals to SpiderMonkey embedders; r=sfink
This moves census types and functions to js/public/UbiNodeCensus.h and
js/src/vm/UbiNodeCensus.cpp. This is required so that embedders can do census
traversals on offline heap snapshots.
2015-08-19 13:21:08 -07:00
Nathan Froyd
4b1f0223b6 Backout f786a3ae0410 (bug 1194422) and 9f979aa382a9 (bug 1194418) for SM ARM build bustage 2015-08-19 20:18:42 -04:00
Nick Fitzgerald
6c66ce3dbb Bug 1194422 - Expose census traversals to SpiderMonkey embedders. r=sfink
This moves census types and functions to js/public/UbiNodeCensus.h and
js/src/vm/UbiNodeCensus.cpp. This is required so that embedders can do census
traversals on offline heap snapshots.
2015-08-17 15:54:00 -04:00
Nick Fitzgerald
e1c1277c38 Bug 1194426 - Add sourceLength and functionDisplayNameLength to JS::ubi::StackFrame. r=sfink 2015-08-13 13:17:00 -04:00
Nick Fitzgerald
af4dab01cb Bug 1187062 - Part 2: Implement a concrete JS::ubi::StackFrame class backed by js::SavedFrame; r=sfink 2015-08-14 17:49:06 -07:00
Nick Fitzgerald
5d4b16639e Bug 1187062 - Part 1: Add the JS::ubi::StackFrame interface; r=sfink 2015-08-14 17:49:06 -07:00
Steve Fink
1cb40f182f Bug 1164294 - Implement a linear-time ephemeron marking algorithm, r=terrence, r=jonco 2015-08-12 16:55:40 -07:00
David Major
9d0ba1911f Bug 1193459: Fix JS_DEPENDENT_TEMPLATE_HINT for clang-cl. r=jimb 2015-08-12 13:25:40 -04:00
Terrence Cole
2ac7da03fc Bug 1191529 - Remove JSIdArray and AutoIdArray and replace with Rooted<IdVector>; r=mccr8, r=jonco
* * *
imported patch 2_remove_AutoIdArray_gk
2015-08-05 11:02:00 -07:00
Jan de Mooij
fd84d70d2f Bug 1185653 - Fix enumerate hook on unboxed objects to skip non-enumerable properties. r=jorendorff 2015-08-11 17:42:56 +02:00
Terrence Cole
ae96ebf942 Bug 1193032 - Part 2: Make unlimited SliceBudget initialization explicit; r=ehoogeveen,r=mccr8 2015-08-11 08:42:24 -07:00
Terrence Cole
528385cf6e Bug 1193032 - Part 1: Rename GCRuntime::sliceBudget to defaultTimeBudget; r=jonco 2015-08-11 08:42:23 -07:00
Nick Fitzgerald
3f7c91f188 Bug 1189490 - Follow ups: Move [Traceable]Fifo to js/src/ds. r=terrence 2015-08-10 13:15:00 -04:00
Nick Fitzgerald
b6c85ba835 Bug 1189490 - Part 1: Add a JS::Traceable version of the FIFO queue for use with GC things. r=terrence 2015-08-10 13:15:00 -04:00
Nick Fitzgerald
e496ca9335 Bug 1189490 - Part 0: Add a FIFO queue container type to js/public. r=terrence 2015-08-10 13:15:00 -04:00
Jeff Walden
8ef6024e61 Bug 1158399 - Expose the [[DateValue]] field in Date objects only through a ClippedTime class that enforces prior TimeClip-ing on the given value. r=evilpie, r=bz, r=dhylands, r=mt, r=froydnj, r=khuey, r=baku, r=smaug 2015-05-01 19:12:52 -07:00
Terrence Cole
8559ecf665 Bug 1189112 - Part 2: simplify rooting of ScriptsAndCountsVector with PersistentRooted; r=nbp 2015-07-29 14:59:49 -07:00
Nick Fitzgerald
057c51b2fb Bug 1192456 - Use perfect forwarding for DispatchWrapper rather than explicit move and copy constructors. r=terrence 2015-08-07 17:47:00 -04:00
Andrea Marchesini
b72f4855c1 Bug 1188612 - Transferable errors should become NS_DOM_DATA_CLONE_ERR, r=sfink 2015-08-10 16:13:24 +01:00
Nick Fitzgerald
94e59f9764 Bug 1189490 - Follow ups: Move [Traceable]Fifo to js/src/ds; r=terrence 2015-08-08 15:19:52 -07:00
Nick Fitzgerald
ba70ccb3da Bug 1189490 - Part 1: Add a JS::Traceable version of the FIFO queue for use with GC things; r=terrence 2015-08-08 15:19:52 -07:00
Nick Fitzgerald
0c0583c7d7 Bug 1189490 - Part 0: Add a FIFO queue container type to js/public; r=terrence 2015-08-08 15:19:52 -07:00
Carsten "Tomcat" Book
137f07a707 Backed out changeset 3f861148c83c (bug 1191236) for hazard bustage 2015-08-06 13:04:18 +02:00
Jon Coppeard
e9ec4688ef Bug 1191236 - Remove extract() methods used by operation forwarding on rooting types r=terrence 2015-08-06 10:23:21 +01:00
Terrence Cole
9cef255593 Backout 027800a23ccb (Bug 1189112) for suspected crashes. 2015-08-05 17:06:53 -07:00
Terrence Cole
59ec78e3d0 Bug 1190636 - Replace AutoStringVector with Rooted usage; r=njn 2015-08-03 17:39:03 -07:00
Terrence Cole
1bfa5c772a Bug 1186626 - Part 5: Remove AutoShapeVector; r=sfink 2015-07-23 08:19:08 -07:00