Commit Graph

34720 Commits

Author SHA1 Message Date
Bobby Holley
f977f7061f Bug 1042824 - Manually do the cross-compartment call in NonCloningFunctionForwarder. r=gabor 2014-07-28 11:19:24 -07:00
Bobby Holley
8bcc146804 Bug 1042824 - Do a security check on the callee in ExportFunction. r=gabor
It would be nice to enforce this in New*FunctionForwarder, but we're already
in the target compartment at that point. :-(

We don't need to worry about this at the other callsites of
New*FunctionForwarder because:
* The stuff in XPCComponents is always invoked by System Principaled code.
* The stuff in StackScopedCloneRead only gets invoked when we're already done a
  successful CheckedUnwrap inside the JS engine.
2014-07-28 11:19:24 -07:00
Benjamin Bouvier
d39eb74e72 Bug 1042244: Make FuncWith return the same type as their inputs; r=nmatsakis 2014-07-28 19:27:52 +02:00
Benjamin Bouvier
84fdb9a299 Bug 1042244: Instantiate operators template arguments in users; r=nmatsakis 2014-07-28 19:27:48 +02:00
Benjamin Bouvier
7b9a7f0ecc Bug 1042244: Simplify and generalize FuncShuffle; r=nmatsakis 2014-07-28 19:27:46 +02:00
Benjamin Bouvier
50c643e060 Bug 1042244: Remove return template parameter in SIMD operators; r=nmatsakis 2014-07-28 19:27:42 +02:00
Benjamin Bouvier
68e0e44c0b Bug 1042244: Make comparison operators always return int32_t; r=nmatsakis 2014-07-28 19:27:34 +02:00
Ehsan Akhgari
022f2f1142 Bug 1045092 - Fix some bad implicit constructors in xpconnect; r=bholley 2014-07-28 13:20:14 -04:00
Andrea Marchesini
8e6f92ea03 Bug 1030917 - xpc::GlobalProperties object ignores the 'aPromise' param., r=bholley 2014-07-28 15:42:57 +01:00
Nicolas B. Pierron
13078b60ea Bug 1040194 - Keep recoverOnBailout instruction for resume point operands. r=h4writer 2014-07-28 05:46:26 -07:00
Nicolas B. Pierron
dae837c304 no bug - Fix order of namespace comments. r=me 2014-07-28 05:46:26 -07:00
Benjamin Bouvier
a838adcacf Bug 1043898: Remove num() methods and use input() instead, remove MComputeThis' overriding input(); r=nbp 2014-07-28 13:18:46 +02:00
Benjamin Bouvier
e92f13bf2e Bug 1043898: Remove MNot's operand() and use input() instead; r=nbp 2014-07-28 13:18:42 +02:00
Jon Coppeard
fe8bcdd001 Bug 1043888 - Make GetObjetZone() work on nursery objects and rename GetGCThingZone() to GetTenuredGCThingZone() r=terrence 2014-07-28 10:39:36 +01:00
David Zbarsky
57223393ac Bug 1044305: Remove Location classinfo r=bz 2014-07-26 13:28:48 -04:00
Jim Blandy
e35255f747 Bug 1012456: Use 'using namespace' in DebuggerMemory.cpp, to avoid wrapping top-level definitions in a namespace { ... } form. r=sfink 2014-07-25 22:17:34 -07:00
Jim Blandy
0fbb454c44 Bug 1012456: Use 'using namespace' in DebuggerMemory.cpp, to avoid wrapping top-level definitions in a namespace { ... } form. r=sfink 2014-07-25 22:10:51 -07:00
Andy Anderson
162f77b1b8 Bug 369778 - RegExp capturing groups that aren't matched during a match (because of, say, a *?+{n}{n,m} quantifier that means they're never used) should be matched as |undefined|, not as the empty string. r=jwalden
--HG--
extra : rebase_source : cf5710ee19dbdc0ee9b50d9a75d94e4e04584ec4
2014-07-25 14:34:10 -07:00
Jeff Walden
7b38606210 Bug 1043683 - Make RegExpStatics::makeMatch sane about not taking two arguments, one of which is always double the other (yet has its parity tested). r=ae.anderson0@gmail.com
--HG--
extra : rebase_source : 13b576c6e15b8f4f0ad7e639ccdcaaf609bc10b5
2014-07-25 14:34:10 -07:00
Jeff Walden
9204f25f64 Bug 1037609 - Remove the js_strdup(cx, jschars) method entirely, seeing as there are so few other uses of it. r=jimb
--HG--
extra : rebase_source : 1a611dccabaddccebc522943559a2ea1f1703811
2014-07-11 14:24:34 -07:00
Luke Wagner
49cca32cc2 Bug 1043453 - OdinMonkey: fix bugs in interrupt handling (r=dougc)
--HG--
extra : rebase_source : 79fc33173590bde7e80f2960115361cb21c27cba
2014-07-25 11:01:35 -05:00
Tom Schuster
5f98bf8180 Bug 1043588 - Remove some unused functions from OldDebugAPI. r=jimb 2014-07-25 14:26:40 +02:00
Tom Schuster
5641840326 Bug 1031878 - Remove JS_SetWatchPoint and friends. r=jimb 2014-07-25 14:26:40 +02:00
Tom Schuster
0c81b4ab09 Bug 1043577 - Remove PropertyDescArray stuff. r=jimb 2014-07-25 14:26:40 +02:00
Tom Schuster
8703e4f327 Bug 1043578 - Remove JS_SetDebuggerHandler and friends. r=jimb 2014-07-25 14:26:40 +02:00
Tom Schuster
55ca76bc2e Bug 1031876 - Remove JS_SetTrap and friends. r=jimb 2014-07-25 14:26:39 +02:00
Benjamin Bouvier
c7b04b8954 Bug 1028580: remove multi-line comment warning; r=Ms2ger 2014-07-25 10:21:50 +02:00
Ms2ger
369b3ac3f7 Bug 1043281 - Remove JS_ClearNonGlobalObject; r=luke
This has always been a somewhat wonky API, which only existed because of
existing consumers in the DOM. The last consumer went away in bug 660237.
2014-07-25 08:59:40 +02:00
Gou Lingfeng
21b75c90da Bug 977400 - Fixed WeakMapPtr visibility, r=sfink
--HG--
extra : rebase_source : 404dabdbaa3056988f922ce711292ded7f77f7dc
2014-07-24 16:57:42 -07:00
Nicholas Nethercote
fc41c3c0c1 Bug 1039965 (attempt 2) - Avoid slop in JS arrays. r=bhackett,terrence.
This patch changes JS array resizing to prefer power-of-two sized slot
requests. Previously it would mostly make slightly-more-than-power-of-two sized
requests that cause lots of slop.

Also, shrinkElements() now only does a reallocation if it would result in going
down a size class. E.g. if you pop all the elements from a 1000-element array,
it would realloc 999, then 998, then 997, all the way down the minimum size.
Now it does 512, then 256, down to the minimum size (which is 8).

I confirmed with DMD that the element allocations now have zero slop. This
reduces peak RSS loading a couple of large PDF files (four times each) with
pdf.js by 10s of MiBs.

--HG--
extra : rebase_source : c10fd4efd8ab80df5bbe14815009edb8eed3f23f
2014-07-24 18:41:09 -07:00
Terrence Cole
963a4ecc4e Backed out changeset 554e549aab67 (bug 1033442) for build failures on a CLOSED TREE.
--HG--
extra : rebase_source : 984dcabe44674d73bcadbce89899d683db96449e
2014-07-24 11:22:48 -07:00
Terrence Cole
fd151d5d0c Bug 1033442 - Split out GC scheduling tunables to make Zone GC heap triggers clearer; r=sfink
--HG--
extra : rebase_source : 43d48180eae9d4753dba22078b4c66061a9380d2
2014-07-22 16:24:28 -07:00
Nathan Froyd
d6641186a2 Bug 1043417 - don't check for X headers in js/src; r=mshal 2014-07-24 09:59:55 -04:00
Terrence Cole
3184079621 Bug 1029648 - Fix a typo; r=jonco 2014-07-22 11:25:22 -07:00
Hannes Verschore
2182869dc6 Bug 1039976 - IonMonkey: Improve generated code of MTypeObjectDispatch with one case, r=jandem 2014-07-24 16:40:11 +02:00
Hannes Verschore
63ea4bc881 Bug 1039542 - TraceLogger: Reset the lastChildId when resuming the tracelogger, r=bbouvier 2014-07-24 16:40:10 +02:00
Nicolas B. Pierron
4a1e7b14ac Bug 1039607 - Scalar Replacement support dynamic slots. r=h4writer 2014-07-24 04:30:50 -07:00
Jan de Mooij
b22c062679 Bug 1031529 part 4 - Remove getBuildConfiguration().threadsafe. r=bhackett 2014-07-24 11:56:47 +02:00
Jan de Mooij
6490db0af1 Bug 1031529 part 3 - Step defining JS_THREADSAFE, remove --disable-threadsafe. r=glandium 2014-07-24 11:56:45 +02:00
Jan de Mooij
da58004330 Bug 1031529 part 2 - Remove JS_THREADSAFE #ifdefs everywhere. r=bhackett 2014-07-24 11:56:43 +02:00
Jan de Mooij
6e5c3a5c11 Bug 1031529 part 1 - Add a --no-threads shell flag. r=bhackett 2014-07-24 11:56:41 +02:00
Nick Fitzgerald
58050836b0 Bug 1035287 - Part 2: Refactor js::SavedStacks::insertFrames to use iteration instead of recursion. r=shu 2014-07-23 09:15:00 +02:00
Terrence Cole
8878446289 Bug 1033442 - Automate tracking of the GCRuntime's gcBytes; r=jonco,sfink 2014-07-22 13:30:26 -07:00
Mike Conley
a3b82c8ae2 Bug 1042398 - Tests. r=bholley 2014-07-23 15:20:05 -07:00
Bobby Holley
64ee1af06f Bug 1042398 - Add a WaiveXrayWrapper override for ::iterate. r=gabor
I thought we had overrides for all the proxy traps that returned non-primitive
values, but it looks like we missed one.
2014-07-23 15:20:05 -07:00
Alexandre Poirot
5a3800bc64 Bug 1027242 - Blacklist mulet's failing tests + expose 'mulet' to ini files; fix previous bustage on a CLOSED TREE, r=ahal 2014-07-02 15:40:56 -07:00
Wes Kocher
4c67cec5f7 Backed out changeset 88860bed8c96 (bug 1042398) for bustage on a CLOSED TREE 2014-07-23 13:09:54 -07:00
Wes Kocher
575bd1d6b6 Backed out changeset 79d2db9a2a2c (bug 1042398) for build bustage on a CLOSED TREE 2014-07-23 13:08:24 -07:00
Brian Hackett
8c55be5102 Bug 1028580 - Improve code generated for conditional and &&/|| tests, r=jandem,sunfish. 2014-07-23 11:59:10 -08:00
Mike Conley
fc443521cb Bug 1042398 - Tests. r=bholley 2014-07-23 12:36:22 -07:00