Commit Graph

2963 Commits

Author SHA1 Message Date
Jeff Walden
43ff4d65b7 Bug 940033 - js::HashMapEntry::{key,value} fields should be private, with accessors, and the former should expose a const reference. r=jimb
--HG--
extra : rebase_source : 439d194ed15bf87e9643c9c09d4512ff7f616fcc
2013-11-25 17:35:09 -08:00
Andrew McCreight
4d9c6ccf3b Bug 942528 - Make XPCWN more of a normal cycle collected class. r=smaug 2013-12-02 13:17:29 -08:00
Eric Chou
f1a9b94f89 Bug 942104 - Add nsIDOMBluetoothDiscoveryStateChangedEvent, r=gyeh 2013-11-30 20:20:17 +08:00
Ms2ger
cf53814bbc Merge mozilla-inbound to mozilla-central. 2013-11-29 09:54:12 +01:00
Ms2ger
ea0c468f56 Bug 939271 - Part f: move mochitests to manifests in js/xpconnect; r=bholley 2013-11-28 15:03:17 +01:00
Mike Hommey
fdd3247a81 Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
Mike Hommey
2f727b6d62 Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Nicholas Nethercote
c82c609ac3 Bug 936964 (part 7, attempt 2) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz.
* * *
Bug 936964 (part 7b) - Fix a use-after-free found by ASan.

--HG--
extra : rebase_source : d38ab6b63e9d576773baf8e55fa4f7182c33915e
2013-11-07 16:35:30 +11:00
Mike Hommey
b038245b8d Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-28 13:08:16 +09:00
Ehsan Akhgari
6220f98ec6 Backed out 9 changesets (bug 943660, bug 936964) because of ASAN use-after-free crashes on browser-chrome and mochitest-other
Backed out changeset 85486c4aa3d8 (bug 936964)
Backed out changeset 25312eb71998 (bug 936964)
Backed out changeset 6dbb8333960c (bug 936964)
Backed out changeset da6465ad476f (bug 936964)
Backed out changeset a87ffc992f38 (bug 936964)
Backed out changeset 4ae3a61182db (bug 936964)
Backed out changeset 34e9c3137804 (bug 936964)
Backed out changeset fd1459e71585 (bug 936964)
Backed out changeset 3e8a701d8bdc (bug 943660)

Landed on a CLOSED TREE

--HG--
rename : content/canvas/src/WebGLMemoryTracker.h => content/canvas/src/WebGLMemoryReporterWrapper.h
2013-11-27 20:05:00 -05:00
Nicholas Nethercote
74e6ffe050 Bug 936964 (part 7) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz.
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryTracker.h
extra : rebase_source : 611e8d35907959b163aeced1c4ffe1d265048fe6
2013-11-07 16:35:30 +11:00
Bobby Holley
6fe30b5795 Bug 911303 - Remove manual Destroy() routine from CycleCollectedJSRuntime. r=billm 2013-11-27 10:10:25 -08:00
Luke Wagner
ffe398ce2a Bug 929236 - Cache asm.js compiled code in Gecko (r=janv)
--HG--
extra : rebase_source : 1c97962da0044858c583fc45e69dd22e519b8066
2013-11-18 15:49:53 -06:00
Gabor Krizsanits
cf590827cd Bug 939696 - Tests for IsScriptedProxy consumers. r=bholley 2013-11-26 14:54:28 +01:00
Gabor Krizsanits
a7da72186c Bug 939696 - isProxy for export helpers. r=bholley 2013-11-26 14:54:17 +01:00
Gabor Krizsanits
8709d4fbb5 Bug 939696 - isProxy for Cu. r=bholley 2013-11-26 14:54:02 +01:00
Gabor Krizsanits
d8b6e4d092 Bug 939696 - IsScriptedProxy. r=bholley 2013-11-26 14:53:20 +01:00
Andrew McCreight
d6c0966814 Bug 770535, part 3 - Fold mMainThreadWrappedNativeProtoMap into mWrappedNativeProtoMap. r=bholley
With the removal of locks, these two maps are identical.
2013-11-24 11:03:29 -08:00
Andrew McCreight
89892236bf Bug 770535, part 2 - Replace ThreadRunningGC with GCIsRunning. r=bholley 2013-11-24 10:34:51 -08:00
Andrew McCreight
1cfa831bf2 Bug 770535, part 1 - Remove map lock from XPConnect. r=bholley 2013-11-24 10:27:51 -08:00
Ryan VanderMeulen
6864f03cf5 Backed out changesets 6235d23be128, 0fbd934a80c8, and 592b49270490 (bug 770535) for Windows build bustage on a CLOSED TREE. 2013-11-25 15:16:42 -05:00
Andrew McCreight
6bbdd252af Bug 770535, part 3 - Fold mMainThreadWrappedNativeProtoMap into mWrappedNativeProtoMap. r=bholley
With the removal of locks, these two maps are identical.
2013-11-24 11:03:29 -08:00
Andrew McCreight
9390ecab7c Bug 770535, part 2 - Replace ThreadRunningGC with GCIsRunning. r=bholley 2013-11-24 10:34:51 -08:00
Andrew McCreight
121d5509aa Bug 770535, part 1 - Remove map lock from XPConnect. r=bholley 2013-11-24 10:27:51 -08:00
Mike Hommey
d83ce2a599 Bug 942031 - Don't link against the js engine when there's no need to. r=mshal 2013-11-24 08:18:50 +09:00
Ehsan Akhgari
8f96c714b8 Bug 939608 - Part 2: Build xpconnect in unified mode; r=bholley 2013-11-20 11:35:34 -05:00
Mike Hommey
67df42f71d Bug 941450 - Add some GENERATED_FILES to moz.build. r=gps 2013-11-22 08:16:18 +09:00
Bobby Holley
bb2fd2553f Bug 933681 - Tests. r=jorendorff 2013-11-22 10:55:43 -08:00
Bobby Holley
868e96d413 Bug 933681 - Resolve canonical eval() onto Xrayed globals. r=jorendorff 2013-11-22 10:55:43 -08:00
Bobby Holley
5ee662f07c Bug 933681 - Add lookups for standard classes in XrayWrapper. r=jorendorff 2013-11-22 10:55:42 -08:00
Ehsan Akhgari
7bd9dda07f Backed out changeset 5993d8ad664c (bug 939608) because bug 941450 was backed out
Landed on a CLOSED TREE
2013-11-22 11:22:49 -05:00
Ed Morley
515fd9a20d Backed out changeset c30371a66429 (bug 941450) 2013-11-22 15:59:22 +00:00
Jon Coppeard
f40d12189f Bug 941767 - Fix rooting hazard in GetNativeForGlobal() r=bholley 2013-11-22 06:58:32 -08:00
Ehsan Akhgari
23174d221c Bug 939608 - Part 2: Build xpconnect in unified mode; r=bholley
--HG--
extra : rebase_source : d4baf7ddb95bb0217357b9eb9fabd2e08d37548a
2013-11-20 11:35:34 -05:00
Mike Hommey
210fcbefa5 Bug 941450 - Add some GENERATED_FILES to moz.build. r=gps 2013-11-22 08:16:18 +09:00
Boris Zbarsky
a7501e7c35 Bug 941437 part 2. Remove the unused cx argument from UNWRAP_OBJECT and UNWRAP_WORKER_OBJECT. r=smaug 2013-11-21 07:51:16 -05:00
Mike Hommey
03e5fc6ffa Bug 914274 - Remove MODULE_NAME. r=mshal 2013-11-21 17:31:19 +09:00
Bobby Holley
9699a172ce Bug 858101 - Tests. r=mrbkap 2013-11-20 16:04:01 -08:00
Bobby Holley
df5c80866e Bug 866823 - Tests. r=gabor,mrbkap 2013-11-20 16:04:00 -08:00
Andrew McCreight
9c3c29695f Bug 935721, part 5 - Invert the control flow of CycleCollectNow's pre- and post-collection work, add CCResults as a field on the CC. r=smaug
nsJSEnvironment::CycleCollectNow does work before and after a CC runs. With ICC, nsJSEnv won't
know where in the CC when a CC is about to begin or end, so this patch reorganizes that work
into two separate callback hooks.  This requires adding a new struct, CycleCollectorStats, to
hold data nsJSEnv needs between the two calls.

Rather than trying to pass around a pointer to a results structure, this patch just adds
it to the nsCycleCollector struct, and always stores them. The results are passed back
to the end CC callback.
2013-11-20 14:35:16 -08:00
Benjamin Smedberg
04357a9dd8 Bug 672843 part D2 - Fix the xpconnect exception code and Components.results to prefer the name NS_ERROR_ILLEGAL_VALUE over the other synonyms. Fix a few tests that rely on exception names to use exception values instead. r=bholley 2013-11-20 11:46:18 -05:00
Terrence Cole
f03fb3275f Bug 940718 - Create the first safe JSContext in a GC safe location; r=bholley
--HG--
extra : rebase_source : fa6e43d8e194e21e1a5231050aa7a959d844edd5
2013-11-20 12:12:11 -08:00
Jon Coppeard
6ab18f1654 Bug 940727 - Fix rooting hazard in DOMProxyHandler::GetAndClearExpandoObject() r=bholley 2013-11-20 15:37:30 +00:00
Jon Coppeard
91b278ba3c Bug 940639 - Fix rooting hazard in nsXPCComponents_Utils::(Un)blockScriptForGlobal() r=bholley 2013-11-20 15:37:30 +00:00
Jon Coppeard
45edc962cf Bug 940505 - Fix rooting hazard in JSObject2JSObjectMap::Add() r=bholley 2013-11-20 15:37:30 +00:00
Bobby Holley
688bba41bf Bug 939166 - Be more direct in GetStaticScriptGlobal. r=bz
This can all collapse because of the following facts:
* Ever since we introduced SandboxPrivate, we never actually use a Window
  as an SOP for a sandbox.
* nsGlobalWindow is actually the only thing that implements nsIScriptGlobalObject.
2013-11-20 08:48:00 -08:00
Bobby Holley
0cbc09f09d Bug 940783 - Tests. r=bz 2013-11-20 08:47:59 -08:00
Ed Morley
4f9c98b39c Backed out changeset 017d3e4e80bf (bug 940505) 2013-11-20 16:38:04 +00:00
Ed Morley
2266a34f80 Backed out changeset ee2544f18623 (bug 940639) 2013-11-20 16:38:01 +00:00
Ed Morley
58ac75dfe2 Backed out changeset 17ca97e65aa5 (bug 940727) 2013-11-20 16:37:55 +00:00