Bobby Holley
981f7eda15
Bug 824864 - Fix Ms2ger nits. r=me
2013-01-16 18:50:27 -08:00
Bobby Holley
cecccc3751
Bug 824864 - Pass EvaluateString out-param as a pointer, not a reference. r=bz
2013-01-16 18:50:27 -08:00
Bobby Holley
2af1ceaef4
Bug 824864 - Move responsibility for checking for JSVERSION_UNKNOWN to the one caller of EvaluateString that might pass it. r=bz
2013-01-16 18:50:26 -08:00
Bobby Holley
ab3bdab46b
Bug 824864 - Use an nsCxPusher in EvaluateString, and pull the principal off the target object. r=bz
...
This simplifies a lot of code, and makes the function scope-agnostic.
2013-01-16 18:50:26 -08:00
Bobby Holley
cbd37c2417
Bug 824864 - Rename EvaluateStringWithValue to EvaluateString. r=bz
...
Now that there's only one of them, we can get rid of the silly suffix. \o/
2013-01-16 18:50:26 -08:00
Bobby Holley
1c16565b99
Bug 824864 - Remove unused optional arguments from nsIScriptContext::ExecuteScript. r=bz
...
This lets us get rid of a bunch of junk.
2013-01-16 18:50:26 -08:00
Bobby Holley
be2e42c870
Bug 824864 - Remove nsIScriptContext::EvaluateString. r=bz
2013-01-16 18:50:26 -08:00
Bobby Holley
9ae831b5d4
Bug 824864 - Improve the API for EvaluateStringWithValue. r=bz
...
There are a few changes we make here:
1 - Having callers pass JS::CompileOptions directly.
2 - Removing aUndefined, which makes no sense and is unused by consumers.
3 - Making aScopeObject and aRetValue non-optional, via references.
3 - Adding an argument to optionally coerce the return value to a string.
Coercing jsvals to strings is the reason we currently have two nearly-identical
functions, EvaluateString and EvaluateStringWithValue, since the coercion can
trigger arbitrary script and thus needs to be bracketed by all the junk that
nsJSContext does. However, if callers can be guaranteed that the return value
will be a bonafide string, then they can easily extract the string themselves
if they so desire. This will allow us to combine the two functions.
2013-01-16 18:50:26 -08:00
Bobby Holley
a7a75b2cec
Bug 824864 - Move consumers of CompileFunction to the nsJSUtils version, and kill the nsJSContext version. r=bz
...
Note that the three consumers were all XBL, and were all passing aShared = true,
which had the effect of passing null for the target object. So we actually want
to pass JS::NullPtr() (the HandleObject version of nullptr) instead of
aClassObject in order to maintain the old behavior (whatever that is).
2013-01-16 18:50:25 -08:00
Bobby Holley
652eb13ea3
Bug 824864 - Hoist the guts of CompileFunction into nsJSUtils. r=bz
2013-01-16 18:50:25 -08:00
Trevor Saunders
b98e34aed0
bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8
2013-01-12 07:40:33 -05:00
Ehsan Akhgari
8ffeafeacf
Merge mozilla-central into mozilla-inbound
2013-01-15 09:10:19 -05:00
Olli Pettay
18534b4fb8
Bug 825544: backout Bug 825544, Bug 825544, Bug 765192 and Bug 808035 to bring back the old .location=val behavior, r=bz
2013-01-15 13:46:35 +02:00
Nicholas Nethercote
cfabe434d4
Bug 829439 (part 1) - Add MemoryReporterBase class that promotes better encapsulation within nsIMemoryReporter sub-classes. r=jlebar.
...
--HG--
extra : rebase_source : 53a77ea456f2aedafe05954ceece7e64db743e66
2013-01-14 16:26:47 -08:00
Olli Pettay
8fce433824
Bug 820378 - Try to postpone triggering CC if we're in middle of GC handling, r=mccr8
2013-01-08 13:11:01 +02:00
Ed Morley
508a8856ed
Bug 810644 - Fix merge conflict after separate backouts on multiple trees; r=me
2013-01-08 10:13:30 +00:00
Ed Morley
1ee741e692
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2013-01-08 09:26:15 +00:00
Olli Pettay
c1487b3cd4
Bug 705371 - [CC] don't add JSContexts that have no children to the cycle collector graph, r=mccr8
2013-01-07 19:40:46 +02:00
Boris Zbarsky
addb381a97
Back out bug 810644 for now to fix bug 827035, until we manage to fix bug 765780. r=stuff-is-broken
2013-01-07 10:29:00 -05:00
Boris Zbarsky
cae5a1d2b0
Back out bug 810644 for now to fix bug 827035, until we manage to fix bug 765780. r=stuff-is-broken
2013-01-07 10:29:00 -05:00
Nicholas Nethercote
37183ba801
Bug 826183 - DMD: clear reportedness data before running memory reporters and dumping. r=jlebar.
...
--HG--
extra : rebase_source : 3ea1c71eacdee712b2d1739a8e25cbf854ea0424
2013-01-06 13:34:39 -08:00
Boris Zbarsky
9e28004745
Bug 810644 part 2. Eliminate the now-unused CallEventHandler. r=smaug, sr=peterv
2013-01-03 14:02:42 -05:00
Ryan VanderMeulen
1a40712d37
Merge the last PGO-green inbound changeset to m-c.
2013-01-02 21:02:40 -05:00
Olli Pettay
ea4c9fbb78
Additional patch for Bug 821371 to fix crashes on windows, r=timeless
...
--HG--
extra : rebase_source : 0addf10c8284e141f1dfa8ae2fac467e5232c4f2
2013-01-02 22:45:36 +02:00
Nicholas Nethercote
b6939f2c42
Bug 819819 (part 2) - Remove |name| from NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN. r=jlebar.
...
--HG--
rename : dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html => dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing.html
rename : toolkit/components/places/tests/browser/browser_favicon_privatebrowsing_perwindowpb.js => toolkit/components/places/tests/browser/browser_favicon_privatebrowsing.js
extra : rebase_source : 557cc60522970ce7eea3b006d357284d9b4694c4
2012-12-23 16:59:51 -08:00
Andrew McCreight
bab924e634
Bug 821371, part 3: Remove bogus asserts. r=bustage
2012-12-31 17:03:54 -05:00
Andrew McCreight
a04090979d
Bug 821371, part 2 - Log time taken for cycle collector prep. r=smaug
2012-12-31 15:55:07 -05:00
Andrew McCreight
54e412aed8
Bug 821371, part 1 - Don't finish GC when CCTimerFired calls CycleCollectNow. r=smaug
2012-12-31 15:54:37 -05:00
Nicholas Nethercote
0a2709a9bb
Bug 819819 (part 1) - Remove DMDV. r=khuey.
...
--HG--
extra : rebase_source : af193a276409e33f0099d256cdfcd0f11917ea25
2012-12-20 23:03:50 -08:00
Bobby Holley
c05806cc51
Bug 820666 - Tag XBL script for <field> elements and child scripts. r=jorendorff
2012-12-12 17:09:37 -08:00
Nicholas Nethercote
bc6e504af4
Bug 717853 - Add a native version of DMD. r=jlebar,glandium.
...
--HG--
extra : rebase_source : 9b824556591abd63b42aa7ff823e9cd25976c162
2012-12-10 16:05:07 -08:00
Trevor Saunders
f98254ea98
backout 2bb432c47170 for debug asserts
2012-12-05 04:19:33 -05:00
Trevor Saunders
c2ce7ebb3a
bug 801466 - part 3 1/2 remove some prmem usage from dom/ and docshell/ r=mounir
2012-12-05 02:55:37 -05:00
Andrew McCreight
2fa5d0a9d8
Bug 792861 - Make HoldJSObjects/DropJSObjects infallible. r=smaug
2012-11-12 17:15:00 -08:00
Olli Pettay
f62ac2c85e
Bug 811206, Fix JSHolder drop handling, part 3 (fixes), r=mccr8,khuey
...
--HG--
extra : rebase_source : 7b2726d2aa7f5764a3c4cb750e5a735728069687
2012-11-28 03:37:57 +02:00
Brian Hackett
04c672558f
Add config option for off thread compilation, bug 815199. r=dvander
2012-11-26 16:30:37 -05:00
Benoit Jacob
5a8b82a1cb
Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8
2012-11-15 02:32:40 -05:00
Boris Zbarsky
b01e12f509
Bug 779048 part 1. Implement a parent class for C++ reflections of callback functions in WebIDL. r=bholley,smaug
2012-11-09 07:43:57 -08:00
Nicholas Nethercote
ecdc83dbd2
Bug 807850 - Add a memory reporter for the nsScriptNameSpaceManager. r=jst.
...
--HG--
extra : rebase_source : bd6e263678aab5477ba11c70015b1537278914b3
2012-11-04 14:18:44 -08:00
Ms2ger
318a2969cd
Bug 807410 - Part b: Pass the "GC on destruction" flag to the nsJSContext constructor; r=jst
2012-11-04 09:05:23 +01:00
Ms2ger
9443b096a0
Bug 807410 - Part a: Pass the global object to the nsJSContext constructor; r=jst
2012-11-04 09:04:04 +01:00
Andrew Quartey
36ae7e6c05
Bug 792581 - part 23: Replace LL_INIT and LL_UDIVMOD macros. r=ehsan
2012-11-01 20:57:25 -04:00
Benoit Girard
a04e07641d
Bug 807311 - Add a CompileScript profile label. r=ehsan
...
--HG--
extra : rebase_source : 34ad974b46270487d6ae47c50d63479096413653
2012-11-01 14:50:56 -04:00
Gregor Wagner
34c8cc722a
Bug 800063 - Make GC_ALLOCATION_THRESHOLD dynamic. r=billm
2012-10-26 16:06:19 -07:00
Benjamin Peterson
b26c0de860
Bug 804404 - Set source hook in XPC initialization. r=bz
2012-10-23 18:09:00 -04:00
Boris Zbarsky
04d6d1040c
Bug 801712 part 2. Switch ImageData to WebIDL bindings. r=peterv
2012-10-22 13:08:52 -04:00
Bobby Holley
3a93472e80
Bug 789224 - Remove miscellaneous UniversalXPConnect checks sprinkled throughout gecko. r=mrbkap
2012-10-22 08:29:55 +02:00
Oonishi Atsushi
7da1007b20
Bug 801357 - Remove Get/SetProcessingScriptTag(). r=smaug
2012-10-19 21:44:13 -04:00
Benjamin Peterson
c1b83b29cb
Bug 803358 - Remove JSOPTION_RELIMIT. r=luke
2012-10-18 21:06:42 -04:00
Nicholas Nethercote
e37c1e657a
Bug 800703 - Rename the existing, Valgrind-based DMD as "DMDV". r=khuey.
...
--HG--
rename : xpcom/base/dmd.h => tools/dmdv/dmdv.h
2012-10-08 15:31:17 -07:00