Terrence Cole
c6edf78940
Bug 851568 - Remove HoldScriptObject and DropScriptObject; r=smaug
...
--HG--
extra : rebase_source : d5bb9bff3dcdb8ceaf8ecb3ea60c96f75e0bc82a
2013-03-19 10:20:22 -07:00
Ehsan Akhgari
2c2760c8c7
Bug 853556 - Make nsRootedJSValueArray::SetCapacity return void; r=bzbarsky
...
--HG--
extra : rebase_source : 04a3f25da7a0f1f1bd773b79c3d620dc8392646f
2013-03-21 14:39:17 -04:00
Terrence Cole
46f8e831e6
Bug 850293 - Remove nsScriptObjectHolder; r=mccr8,bholly sr=smaug
...
nsScriptObjectHolder is not needed with either conservative or exact rooting.
2013-03-20 13:09:09 -07:00
Jon Coppeard
b9652b9f39
Bug 849273 - Investigate splitting the js and JS namespaces r=terrence
...
--HG--
extra : rebase_source : 2b131d0177f02e5f0e89398545481fcacbfde00f
2013-03-19 10:35:41 +00:00
Ed Morley
4a0f5f39ca
Backed out changeset c75481a07302 (bug 851611)
2013-03-18 14:10:35 +00:00
Ed Morley
47bc17c5f5
Backed out changeset d195190adc48 (bug 851611)
...
--HG--
rename : tools/profiler/GeckoProfiler.h => tools/profiler/sampler.h
rename : tools/profiler/GeckoProfilerImpl.h => tools/profiler/sps_sampler.h
2013-03-18 14:10:30 +00:00
Benoit Girard
90f13c7e56
Bug 851611 - Part 3: Rename headers. r=jrmuizel
...
--HG--
rename : tools/profiler/sampler.h => tools/profiler/GeckoProfiler.h
rename : tools/profiler/sps_sampler.h => tools/profiler/GeckoProfilerImpl.h
extra : rebase_source : 552fe1d3ff61d15b264aaf86f7c8cb4f4eff69d1
2013-03-18 14:41:02 +01:00
Benoit Girard
95a5b4c35f
Bug 851611 - Part 2: Update profiler calls. r=jrmuizel
...
--HG--
extra : rebase_source : 3032aaf7e50cdf9c350da688ec34e50a695fc7ca
2013-03-16 00:47:02 -04:00
Bill McCloskey
bfa3037d1f
Bug 759585 - Zones (r=jonco,bhackett,njn,dvander,luke,bz,mccr8,bholley)
2013-03-16 20:36:37 -07:00
Luke Wagner
26b31ecf0a
Bug 840282 - OdinMonkey (sr=dmandelin)
...
--HG--
extra : rebase_source : 4a3869dca32755abb58bbd3d9a06599e61b397f2
2013-03-15 02:29:02 -07:00
Olli Pettay
ceab0ac5ce
Bug 844313 - Call GC more likely when there are lots of Events to collect, r=mccr8
...
--HG--
extra : rebase_source : 675ad0e5b5e22b3ccc1ec2bddac7048df57f522a
2013-03-07 20:53:19 +02:00
Jon Coppeard
f85957ecb3
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 35cbf3cc4da4598c2e9e6975028ef397718849db
2013-03-06 16:41:43 +00:00
Ed Morley
0887cddaa0
Backed out changeset 28ef4bdff455 (bug 848395)
2013-03-07 13:03:35 +00:00
Jon Coppeard
19ed4f05c2
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 866879df05e3ec3f8e93570eb3f6b71103636b41
2013-03-06 16:41:43 +00:00
Bobby Holley
21306774b0
Bug 834732 - Improve pushing in nsJSEnvironment. r=mrbkap
2013-02-26 11:04:12 -08:00
Bobby Holley
e83e186c1b
Bug 834732 - Make nsCxPusher.Push(JSContext*) infallible. r=mrbkap
...
We leave the nsIDOMEventTarget* versions fallible for now, but this makes the
common case a lot simpler. Note that this means that pushing a null JSContext,
a bug, is no longer handled at runtime. But I think we should just assert
against it, since there are already callers that don't check the return value.
2013-02-26 11:04:11 -08:00
Bobby Holley
784a476fb8
Bug 834732 - Remove PushBehavior. r=mrbkap
...
Now that we only have ALWAYS_PUSH and ASSERT_SCRIPT_CONTEXT, we have uniform
release-mode behavior everywhere. Remove the crap.
2013-02-26 11:04:11 -08:00
Bobby Holley
e04f8d807d
Bug 834732 - Get rid of footgun bool param for nsCxPusher and use an explicit enum. r=mrbkap
...
The goal here is to get rid of this crap entirely, and make nsCxPusher always
push. But that's a scary change, so we do it in chunks. This patch, in particular,
should have zero behavioral change. This means preserving some very wrong behavior.
For instance, currently SafeAutoJSContext never pushes a damn thing, because the
safe JSContext doesn't have an associated nsIScriptContext. We preserve this
behavior, and in fact convert various similarly-buggy consumers to
SafeAutoJSContext, so that we can hoist the behavioral change into a subsequent
patch.
2013-02-26 11:04:09 -08:00
Dave Hylands
7731d35d78
Bug 842932 - Update to use Preferences::RegisterCallbackAndCall to correct pref callback from getting wrong params. r=smaug
2013-02-20 11:49:51 -08:00
L. David Baron
d9c0a39dc8
Bug 563195: Fix -Wshadow warnings in public JS API headers (those used from layout/style/). r=njn
2013-02-17 22:56:32 -08:00
Gabriele Svelto
b665234960
Bug 820438 - Immediately apply changes in maximum script runtime to make them visible in content processes. r=jst
2013-01-31 18:23:50 +01:00
Jeff Walden
149649e256
Bug 826009 - Move locale callback info, default locale, etc. data and APIs to be JSRuntime-centered. f=bholley, r=jorendorff
...
--HG--
extra : rebase_source : 35317f4c29e9dd70e7d4fd1292027cfd51ce2675
2013-02-07 18:04:11 -08:00
Nicholas Nethercote
d8786a806d
Bug 836949 (part 1) - Clean up the versions/options code. r=jorendorff.
...
--HG--
rename : content/html/content/test/test_meta_attributes_reflection.html => content/html/content/test/test_ol_attributes_reflection.html
extra : rebase_source : 970d8a542bb631ce3f18da26ece69667af29d0a9
2013-02-06 21:35:16 -08:00
Nicholas Nethercote
0bda4fcd31
Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
...
Ding dong! The witch is dead!
2013-01-24 21:24:57 -08:00
Phil Ringnalda
2d79942fa4
Back out 66882ea6f8c7 (bug 788293) and 32f09cb3c7b6 (bug 834090) for bustage
...
CLOSED TREE
2013-01-31 22:29:30 -08:00
Nicholas Nethercote
46ba51002e
Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
...
Ding dong! The witch is dead!
--HG--
extra : rebase_source : 7574f5620e303c25120fcfc8ceb2099ad75c8f1b
2013-01-24 21:24:57 -08:00
Olli Pettay
8f0a34d9d4
Bug 836457 - Don't start forgetSkippable/GC timer before first GC, r=mccr8
2013-01-31 00:46:37 +02:00
Ryan VanderMeulen
eab06717bc
Merge m-c to inbound.
2013-01-29 10:50:01 -05:00
Boris Zbarsky
126e2f75e3
Bug 834785. Make sure to not ask the JS engine for return values in toplevel scripts, so it'll be able to ion-compile them as needed. r=bholley
2013-01-29 08:44:00 -05:00
Olli Pettay
b2ee14044a
Bug 835503 - Remove nsCycleCollector::ShouldBeFreed/WasFreed, r=mccr8
2013-01-29 12:45:38 +02:00
Bill McCloskey
fb226611b8
Bug 751618 - Zone renaming part 7 (r=jonco)
2013-01-27 13:51:41 -08:00
Bill McCloskey
fbf07135dc
Bug 751618 - Zone renaming part 2 (r=jonco)
2013-01-27 13:51:35 -08:00
Bill McCloskey
0b41061a2c
Bug 751618 - Add js/GCAPI.h (r=terrence)
2013-01-27 12:35:12 -08:00
Bobby Holley
29dd20ec7d
Bug 833856 - Handle errors better in EvaluateString. r=bz
...
This bug happens when we take the !useSandbox path. Basically, when the code
throws, we can end up with garbage in *aRetValue while still returning true
from EvaluateString. It looks like the convention is for these kind of eval
functions to return success even for invalid code, so lets just make sure we
check things a bit better.
This crashtest is kind of half-baked in the sense that it doesn't actually
crash without the rest of the patch. But the testcase here involves a lot of
undefined behavior (what ends up getting left in *aRetValue) during a call
to window.open (which spins the event loop, etc). I already sunk about half
an hour into trying to make it crash, so I'm just going to go with this for
now.
2013-01-25 11:17:40 +01:00
Bobby Holley
5de758ce91
Bug 832041 - Remove nsJSContext::CompileEventHandler and move consumers to nsJSUtils::CompileFunction. r=bz
2013-01-23 07:12:50 +01:00
Ryan VanderMeulen
736ce65b82
Merge m-c to inbound.
2013-01-23 18:30:46 -05:00
Olli Pettay
e5d7c86f9b
Bug 822849 - Don't run CC/GC timers during shutdown, r=mccr8
...
--HG--
extra : rebase_source : 173e02106457b6867db8c4cf734a93366f4b31dd
2013-01-22 21:17:48 +02:00
Bobby Holley
ff3e20df9d
Bug 832435 - Fix compartment handling for EvaluteString and javascript: uris. r=bz
2013-01-21 12:56:28 +01:00
Andrew McCreight
e33fde633d
Bug 830595 - Add JSAutoCompartment to nsJSContext::ExecuteScript. r=bz
2013-01-22 11:48:46 -08:00
Phil Ringnalda
d564033cc7
Back out 7dbbb6e3d240 (bug 832435) for assertion failures
2013-01-18 21:29:05 -08:00
Bobby Holley
2f946c4f2d
Bug 832435 - Fix compartment handling for EvaluteString and javascript: uris. r=bzbarsky
2013-01-18 23:33:26 -05:00
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