Commit Graph

35639 Commits

Author SHA1 Message Date
Bobby Holley
b433ae35b8 Bug 874318 - Don't allow CALL on XOWs. r=mrbkap 2013-05-22 22:27:16 -06:00
Bobby Holley
d73a980e09 Bug 862380 - Tests. r=mrbkap 2013-05-22 22:27:15 -06:00
Bobby Holley
89be72dd4e Bug 862380 - Silently fail for enumerate-like operations on XOWs. r=mrbkap 2013-05-22 22:27:15 -06:00
Bobby Holley
2fbd8f4d5c Bug 862380 - Be more explicit about rejecting JSID_VOID for XOWs. r=mrkbap
We already do this, but it's helpful to be clear about it.
2013-05-22 22:27:15 -06:00
Bobby Holley
a76f725f9c Bug 862380 - Pass the entered id in addition to the wrapper action to Policy::deny. r=mrbkap 2013-05-22 22:27:15 -06:00
Gary Kwong
20150217b7 Bug 776043 - Make jittests assert if an error does not exit with failure; r=terrence
--HG--
extra : rebase_source : 629830fae497347215d188d687e3dc1e41144b3f
2013-05-22 10:10:20 -07:00
Eddy Bruel
bbdeaae196 Bug 637572 - Implement Debugger.Script.prototype.source; r=jimb 2013-05-22 16:42:52 -07:00
Eddy Bruel
2c00cf5310 Bug 637572 - Use ScriptSourceObject instead of ScriptSource; r=jimb 2013-05-22 16:23:07 -07:00
Eddy Bruel
6836f87c30 Bug 637572 - Implement ScriptSourceObject; r=jimb 2013-05-22 16:06:54 -07:00
Brian Hackett
5d18297de0 Bug 870821 - Seed observed values for integer CALLELEM ops with the possible targets, r=jandem. 2013-05-22 16:48:19 -06:00
Bobby Holley
79c446dac7 Bug 868110 - Remove JS_GetGlobalObject. r=luke
\o/
2013-05-22 15:42:45 -06:00
Bobby Holley
8f823bfe9a Bug 868110 - Introduce a more private API for the consumers that really do need the default compartment object. r=luke
The primary consumer of this is the whole inner/outer DOM window setup, which
uses the default global to track the current inner. But there are few other
random ones as well.

We use this as an opportunity to convert a bunch of consumers from the two-step
GetNativeContext() -> JS_GetGlobalObject() into just |GetNativeGlobal()|. This
will make things much easier to convert when we start tracking the current inner
explicitly.
2013-05-22 15:42:44 -06:00
Bobby Holley
cbf0dfe2c7 Bug 871306 - Use the current global rather than the default global in jsdContext::GetGlobalObject. r=gabor
As far as I can tell from the IDL docs and digging through the Firebug source,
this is what we want here.
2013-05-22 15:42:44 -06:00
Bobby Holley
9bb3f2f03c Bug 871306 - Remove globalObject from jsdIFilter. r=gabor
It looks like firebug only ever passes null, which is equivalent to not using
it at all.
2013-05-22 15:42:43 -06:00
Bobby Holley
d42489c5a1 Bug 871306 - Add an API for directly accessing the default JSD global and use it in ActivateDebugger. r=gabor 2013-05-22 15:42:43 -06:00
Tom Schuster
459b3f91ee Bug 863957 - Check if jsid is really a string in Components.interfacesByID. r=bz 2013-05-22 22:32:50 +02:00
Terrence Cole
e61de5ae64 Bug 872384 - Clone self hosted objects directly into tenured; r=till
The jit is allowed to bake pointers to intrinsics into jitcode. Since all
self-hosted clones are intrinsics, we need these to always be tenured.

--HG--
extra : rebase_source : b4e6b63db874a95d5eac4cafa34a7aaadd163f58
2013-05-16 10:24:22 -07:00
Terrence Cole
9ae77fd59d Bug 851057 - Implement generational GC support in IonMonkey; r=dvander 2013-04-18 17:03:40 -07:00
Brian Hackett
e2b0c1352b Bug 870052 - Various tweaks to reduce recompilation on asm.js style apps, r=jandem. 2013-05-22 11:36:29 -06:00
Bobby Holley
0394ea5eff Bug 872135 - Use the SafeJSContext in nsXPConnect::CheckForDebugMode. r=gabor 2013-05-22 10:05:28 -06:00
Bobby Holley
48739732cc Bug 868130 - Fix include guard. r=me 2013-05-22 10:05:28 -06:00
Bobby Holley
f2943090bd Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
3a5d26739d Bug 868130 - Add an AutoRequest inside nsCxPusher. r=gabor 2013-05-22 10:05:26 -06:00
Bobby Holley
b44627d83a Bug 868130 - Remove the dependencies of the nsCxPusher machinery on nsContentUtils, use nsCxPusher in xpcshell, and privatize APIs. r=gabor
No more xpc::danger, for now. ;-)
2013-05-22 10:05:26 -06:00
Bobby Holley
2bd9226493 Bug 868130 - Move nsCxPusher into XPConnect. r=gabor
The JSContext stack is an XPConnect construction. In particular, there are
situations where we want to manipulate it outside the lifetime of nsContentUtils
but within the lifetime of the stack itself. In order to do this cleanly, it's
helpful to use private XPConnect APIs. So the first step here is to move this into
js/src/xpconnect, so that we can take advantage of the stuff in xpcprivate.h.

--HG--
rename : content/base/src/nsCxPusher.cpp => js/xpconnect/src/nsCxPusher.cpp
rename : content/base/public/nsCxPusher.h => js/xpconnect/src/nsCxPusher.h
2013-05-22 10:05:26 -06:00
Bobby Holley
cdde50556c Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Bobby Holley
cfe8b9c5d2 Bug 868130 - Make sure to push the context in the ObjectWrapperChild constructor. r=gabor 2013-05-22 10:05:24 -06:00
Bobby Holley
4e9053b8c6 Bug 868130 - Enter a request for all of OnJSContextNew. r=peterv 2013-05-22 10:05:23 -06:00
Brian Hackett
2a733cdd68 Bug 871075 - Add rooting analysis warnings for unsafe address taken of variables DONTBUILD 2013-05-22 07:47:41 -06:00
Jan de Mooij
162bdc21e4 Bug 857845 part 3 - Remove JM JSAPI flags, memory reporters and browser prefs. r=djvj
--HG--
extra : rebase_source : 8b2ed85801fcd8c8fd0fc16a89b1a275add1a310
2013-05-22 14:50:45 +02:00
Brian Hackett
ca8b7e143c Bug 871002 - Use uint32 comparisons more often, r=jandem. 2013-05-22 06:50:18 -06:00
Shu-yu Guo
e39c3df786 Bug 867471 - Part 3: Compile rest parameter in Ion for parallel execution. (r=nmatsakis) 2013-05-21 23:52:45 -07:00
Shu-yu Guo
a65a196637 Bug 867471 - Part 2: Compile rest parameter in Ion for sequential execution. (r=djvj) 2013-05-21 23:52:45 -07:00
Shu-yu Guo
50ebdce419 Bug 867471 - Part 1: Compile rest parameter in Baseline. (r=djvj) 2013-05-21 23:52:44 -07:00
Brian Hackett
5c05aad0a4 Bug 868206 - Various fixes for the backtracking register allocator, r=jandem. 2013-05-21 21:40:44 -06:00
Matt Stults
48dc286b26 Bug 841615: Use MatchOnly mode for str.match(), saving wasted work when using .match() with a global regex; r=sstangl 2013-05-21 22:59:18 -04:00
Boris Zbarsky
95a1c85ed6 Bug 874612. Make some nsIXPConnectWrappedNative methods take a Handle<jsid> instead of a jsid. r=bholley 2013-05-21 22:59:17 -04:00
Luke Wagner
0f6871932f Bug 864587 - Avoid overflowing the stack on long if/else-if chains in asm.js (r=sstangl)
--HG--
extra : rebase_source : af47319af567ac1d6a86e67f95c5ac6d332b1713
2013-05-08 18:34:56 -07:00
Luke Wagner
3f85da200c Bug 686274 - Increase the limit on the maximum size of array initializers (r=bhackett)
--HG--
extra : rebase_source : 1c2cb231b8f7ea58089b353654efc886ad244ad0
2013-05-20 17:18:23 -07:00
Shu-yu Guo
32e46990a0 Bug 873320 - Pass DEBUG defines into embedjs.py. (r=till) 2013-05-21 14:03:57 -07:00
Terrence Cole
c0a0e47ed3 Bug 873136 - Only store the JSRuntime on the minor tracer once; r=billm
--HG--
extra : rebase_source : 76fc04c63d69041cd1133da2c7fa386d711ad0af
2013-05-14 13:09:22 -07:00
Terrence Cole
80395b796f Bug 870496 - Purge moved objects in the NewObjectCache on minor GC; r=billm
--HG--
extra : rebase_source : 8d4b7df4cff1df4f1fc1de88e823a3e7541a55df
2013-05-08 12:02:48 -07:00
Terrence Cole
e71644abd1 Bug 873142 - Do not shrink Arrays when tenuring; r=billm
The JITs assume that the capacity will not change between the initarray and the
actual initialization.

--HG--
extra : rebase_source : 53a3fe20f7fc687869ee303f58fbfa1bcf7324be
2013-05-14 13:09:26 -07:00
Kannan Vijayan
7e9faa1569 Bug 870514 - Uncommitted nit. r=h4writer 2013-05-21 16:42:56 -04:00
Kannan Vijayan
0e57115d3c Bug 870514 - Add Ion stubs for optimized shadowed gets on proxy objects. r=h4writer 2013-05-21 16:40:10 -04:00
Kannan Vijayan
3a657e6905 Bug 870514 - Add Baseline stubs for optimized shadowed gets on proxy objects. r=h4writer 2013-05-21 16:34:41 -04:00
Jason Orendorff
ace6d22600 Back out 91b95649a71e for GCC bustage. r=red on a CLOSED TREE. 2013-05-21 14:29:16 -05:00
Jason Orendorff
87434b98fa Silence clang "enumeration value not handled in switch" warnings. No bug#, rs=sfink on IRC. 2013-05-21 11:51:23 -05:00
Jason Orendorff
d4f3ac46a5 Bug 874199 - Remove file-wide namespace blocks from Parser.cpp. r=luke. 2013-05-21 11:06:42 -05:00
Jason Orendorff
b60731aa0e Remove unused variable. No bug#, rs=Waldo on IRC. 2013-05-21 11:06:16 -05:00