Commit Graph

31423 Commits

Author SHA1 Message Date
Nicholas Nethercote
e76e923b09 Bug 842419 (part 1) - Remove unnecessary JSOp arg from EmitBackPatchOp(). r=jorendorff. 2013-02-20 17:42:21 -08:00
Bill McCloskey
c6b4bbc1ee Bug 759585 - Change the granularity of collection from compartment to zone (r=jonco,bhackett,njn,dvander,mccr8,bz,luke,bholley) 2013-02-21 18:23:47 -08:00
Phil Ringnalda
ef339737e8 Back out b831500ca4be (bug 837714) for bustage
CLOSED TREE
2013-02-21 14:26:04 -08:00
Nicolas B. Pierron
59fa8a4ece Bug 796114 - Inline with type-checked arguments. r=h4writer 2013-02-21 14:04:49 -08:00
David Anderson
e3e78a9ed1 Prevent GC from occuring during IC linking (bug 837714, r=bhackett). 2013-02-21 13:52:09 -08:00
Bobby Holley
3d28da8c7c Bug 842940 - Remove another instance of cx->isExceptionPending(). r=jorendorff 2013-02-21 13:32:14 -08:00
Bobby Holley
5665dd548f Bug 842940 - Don't squelch exceptions in Proxy::get. r=jorendorff 2013-02-21 13:32:13 -08:00
Nicholas D. Matsakis
accb43b75e Bug 842723 - Remove incorrect inlines.h include r=dvander 2013-02-19 09:18:43 -05:00
Phil Ringnalda
b01d7591f9 Back out 4d301b2bcad0:e0632e639097 (bug 836301) for Windows build bustage
CLOSED TREE
2013-02-22 08:41:37 -08:00
Brian Hackett
aa78ff1fd2 Bug 844048 - Track uses of 'var arguments' within eval scripts, always make arguments objects for generators, r=luke. 2013-02-22 09:29:28 -07:00
Bobby Holley
18791e1638 Bug 836301 - Hoist some assertions, remove a bunch of no-op trap overrides, and add assertions that we've entered our policy. r=mrbkap 2013-02-22 08:14:34 -08:00
Bobby Holley
20c1f60c81 Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap 2013-02-22 08:14:34 -08:00
Bobby Holley
d265a08311 Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-22 08:14:33 -08:00
Bobby Holley
c580b8b2eb Bug 836301 - Hoist enter() into BaseProxyHandler. r=mrbkap 2013-02-22 08:14:33 -08:00
Bobby Holley
33443556d5 Bug 836301 - Add tracking for whether we have a non-trivial enter() trap. r=mrbkap
This will allow us to skip the virtual function call for non-security-wrapper
proxies, which are the cases where we care most about performance.
2013-02-22 08:14:33 -08:00
Bobby Holley
8f4056a696 Bug 836301 - Stop enter()ing with CALL for nativeCall. r=mrbkap
This is kind of nonsensical, because CALL means "the wrapped object is being
called", whereas nativeCall means "the wrapped object is being unwrapped to
have a JSNative invoked on it", which are two very different things.

We _could_ add a NATIVECALL enter() trap, but our current policy enforcement
around nativeCall involves overriding the trap itself, so we wouldn't use it
for anything. So let's just get rid of it.
2013-02-22 08:14:33 -08:00
Bobby Holley
8e408a8fd0 Bug 836301 - Add Special handling to allow us to call enter() for defineProperty on Xrays. r=mrbkap 2013-02-22 08:14:33 -08:00
Bobby Holley
7c2b6439ed Bug 836301 - Stop using JSRESOLVE_ASSIGNING to determine GET vs SET. r=mrbkap
This is just a heuristic, anyway, and some of the usage is downright broken.
There are two cases here:

1 - Deciding what to do for get{Own,}PropertyDescriptor. In these cases, we can
just enter with GET and rely on the filtering machinery to filter out dangerous
setters for security wrappers.

2 - Custom Xray props. None of these make sense in a |set| context. In fact,
    they generally have null setters anyway, so we can just assume GET.

The policy-entering code in XrayWrapper is super haphazard. We'll get rid of it
entirely later in these patches.
2013-02-22 08:14:32 -08:00
Bobby Holley
bd1c211135 Bug 836301 - Assert against JSID_VOID in JSID wrapping. r=mrbkap
Luke explained to me that it should never get there.
2013-02-22 08:14:32 -08:00
Bobby Holley
de5ba02f92 Bug 843231 - Compute whether to use an XBL scope exactly once. r=bz 2013-02-22 07:56:03 -08:00
Bobby Holley
786bfdbe39 Bug 843231 - Remove SetGlobal. r=bz
This stuff has all been simplified significantly with CPG, and this is no longer
necessary. We always have a global when we construct a scope, and it never
changes.
2013-02-22 07:56:03 -08:00
Bobby Holley
0d08fa271d Bug 843231 - Move the nulling out of mPrototypeNoHelper from SetGlobal to RemoveWrappedNativeProtos. r=bz
The only call-site for both of these is JSD->nsXPConnect::InitClasses, so this
is equivalent. All this will go away soon anyhow when JSD goes away.
2013-02-22 07:56:02 -08:00
Hannes Verschore
a0b534d0ab No bug: IonMonkey: Improve debugging spew, r=evilpie 2013-02-21 16:09:39 +01:00
Hannes Verschore
3490b41a85 Bug 843038: IonMonkey: Correct the definition of when an instruction is part of the loop, r=jandem 2013-02-21 15:56:49 +01:00
Hannes Verschore
d5fc1efcb5 Bug 843518: IonMonkey: Run alias analysis when UCE removes dependency of an instruction, r=nmatsakis 2013-02-21 15:56:43 +01:00
Brian Hackett
9e8427ac92 Bug 842424 - Remove assertion. 2013-02-21 07:02:41 -07:00
Brian Hackett
925f1d9f1e Bug 743394 - Ion compile JSOP_EVAL, r=jandem. 2013-02-21 06:56:54 -07:00
Brian Hackett
ce15bbc408 Bug 842425 - Watch for arrays that need elements converted to doubles when pushing elements, r=jandem. 2013-02-21 06:54:16 -07:00
Brian Hackett
be31df013b Bug 842424 - Add missing newKind, r=terrence. 2013-02-21 06:46:46 -07:00
Brian Hackett
9db0efedf4 Bug 842305 - Don't try to cleanup values in global frames. 2013-02-21 06:02:45 -07:00
Brian Hackett
e35b6ad4b5 Bug 842305 - Watch for null payloads flowing into Ion, r=jandem. 2013-02-21 05:38:44 -07:00
Brian Hackett
4bc1130b4a Bug 841367 - Check for suppressed GC before verifying barriers, fix OOM crash, r=billm. 2013-02-21 05:26:57 -07:00
Chuck Lee
9db8f6364b Bug 828782 - 0002. Add new readString function for ctypes to use new inflate function. r=terrence 2013-02-20 11:20:56 +08:00
Chuck Lee
d346facf63 Bug 828782 - 0001. Add inflate function for replacing invalid byte while decoding UTF-8 character. r=terrence 2013-02-20 11:20:54 +08:00
Jon Coppeard
9e02f84b3e Bug 843626 GC: Rooting analysis failures in parallel array jittests r=terrence 2013-02-21 15:50:50 +00:00
Till Schneidereit
50350c25bd Bug 842192 - Self-host Array.map. r=jorendorff 2013-02-19 21:36:37 +01:00
Benjamin Peterson
7fb8fa13f8 Bug 842884 - Don't do array assignment optimizations when spread is involved. r=jorendorff 2013-02-20 14:48:59 -05:00
Nicholas D. Matsakis
1e32e6ead1 Bug 842729 - Repair merge failures from bug 807853 in TypeOracle and MCallOptimize r=bhackett 2013-02-19 08:30:25 -05:00
Peter Van der Beken
14b4db0cf5 Fix for bug 825628 (Implement NamedConstructor) - use NamedConstructor for Image() and Option(). r=bz. 2013-01-22 11:53:13 +01:00
Peter Van der Beken
715d9242cf Fix for bug 825628 (Implement NamedConstructor) - add codegen support for NamedConstructor. r=bz. 2013-01-22 11:51:15 +01:00
Nicholas D. Matsakis
d69c550a7f Bug 842745 - Modify timer in JS shell function to take an arbitrary JS function. r=dvander 2013-02-19 09:23:31 -05:00
Eddy Bruel
ad67e061fc Bug 568953 - Parser support for module declarations; r=jorendorff 2013-02-20 20:49:41 +01:00
Eddy Bruel
da51b5e082 Bug 568953 - Refactor FunctionNode; r=jorendorff 2013-02-20 20:15:15 +01:00
Ryan VanderMeulen
4feee0896f Merge m-c to inbound. 2013-02-20 12:52:59 -05:00
Gregory Szorc
41640d8924 Backout 4682ed369545 (bug 841713) for reftest make target bustage 2013-02-20 09:16:02 -08:00
Benjamin Smedberg
eb79362a45 Bug 791244 - Make the hangprocessor pref dependent on RELEASE_BUILD since deploying multidump hasn't happened yet, r=heycam 2013-02-20 10:52:16 -05:00
Daniel Holbert
2459f0b553 Bug 842886: Initialize & compare size_t variables to SIZE_MAX instead of -1 in Debugger.cpp. r=ejpbruel 2013-02-19 23:20:14 -08:00
Gregory Szorc
93a6494e65 Bug 841713 - Add objdir paths to virtualenv; r=ted 2013-02-19 15:23:21 -08:00
Eddy Bruel
5f104053e5 CLOSED TREE. (Bug 568593) Backed out changeset e0aa698192b7 2013-02-19 23:51:40 +01:00
Eddy Bruel
4c1afb5ec7 Bug 568953 - Refactor FunctionNode; r=jorendorff 2013-02-19 23:06:14 +01:00