Commit Graph

28526 Commits

Author SHA1 Message Date
Boris Zbarsky
253a8c8d80 Bug 908351. Stop over-including DOMJSClass.h, so we don't rebuild as much when PrototypeList.h changes. We do this by factoring out the slot macros into a separate header and including that. r=khuey 2013-08-23 22:42:39 -04:00
Jeff Walden
161921f0ee Back out bc75fd3095eb (bug 907958), the simple rebasing through bug 666399 is busted. Probably a simple-ish fix, not gonna try it on a deadline, tho. r=beep-beep-beep from a CLOSED TREE 2013-08-23 19:27:30 -07:00
Jeff Walden
6c37b0230a Bug 907958 - Disallow |function function() {}| and similar unreadabilities. r=jorendorff 2013-08-15 10:07:40 -07:00
Jeff Walden
8bfcb55cb3 Bug 901351 - Properly handle various edge cases in JSON.parse when walking/reviving the initial object tree. r=jorendorff 2013-08-08 17:31:45 -07:00
Terrence Cole
9afd8fe922 Bug 908891 - Fix remaining exact rooting hazards in js/ipc; r=evilpie
--HG--
extra : rebase_source : d48dfa50ed83c8c3d3c344467c6bd0b702a3263a
2013-08-23 15:53:46 -07:00
Steve Fink
ecdd20b4cf Bug 908825 - Assorted hazard analysis changes+fixes to get rooting analysis running on build slaves
--HG--
extra : rebase_source : bff2e12a00934391ae50ce288d903d5bea6600c8
2013-08-23 13:03:23 -07:00
Steve Fink
079a424ef5 Bug 908825 - Refactor static rooting analysis to make the following patch cleaner
--HG--
extra : rebase_source : 52a5b477899cfd500327650448547d86e02b71eb
2013-08-23 13:03:23 -07:00
Steve Fink
8c389493c6 Bug 908825 - Generate multiple output files from intermediate rooting analysis stages
--HG--
extra : rebase_source : b90f85cfd1815d9a7fea4792b965b8a434f5fa6e
2013-08-01 14:59:09 -07:00
Steve Fink
c43007623c Bug 908825 - Minor irrelevant cleanups to static rooting analysis
--HG--
extra : rebase_source : 63c13fc6817fc14b2c47357bf213d7a6615f1f35
2013-07-26 10:40:36 -07:00
Steve Fink
ccfc6cebcd Bug 908825 - Pass functionName around instead of using a global variable
I just found it easier to follow what's going on this way. Also, this passes a 'suppressed' value through to functions, which might change behavior but if so I'm happy with the new behavior.

--HG--
extra : rebase_source : 1ee42853de87de18f9dd17e8c2eeb6677bdf8d2c
2013-07-23 12:17:07 -07:00
Steve Fink
5efd96ea75 Bug 900144 - Add redirect shell built-in for changing stdout/stderr destination
--HG--
extra : rebase_source : f6fe4aa12d0e053437044306a1815c1e32f5f153
2013-07-25 18:39:10 -07:00
Steve Fink
1041a33255 Bug 899712 - Prevent infinite recursion in fallback asinh, r=jorendorff
--HG--
extra : rebase_source : 1b810304f83b81fd435f3de3350004d0fcffba14
2013-07-30 12:36:03 -07:00
Steve Fink
85ff446e25 No bug. Remove unnecessary SkipRoot from structured clone buffers.
--HG--
extra : rebase_source : 057f79cd78741572cc607213638895c2815ab7da
2013-07-22 14:46:48 -07:00
Till Schneidereit
38aa35cce2 Bug 908472 - make JSFunction::generatorKind() treat lazy self-hosted functions as non-generators. r=jwalden
--HG--
extra : rebase_source : bc946eb476b6ba6dc98ea01b76c8aefc8827ddc5
2013-08-23 23:23:38 +02:00
Luke Wagner
76813d23b7 Bug 908813 - Only report asm.js warnings once during syntax-only parse (r=bbouvier)
--HG--
extra : rebase_source : be57c7ac40c828bea5577e2857b2f0709bd74a16
2013-08-23 14:39:59 -05:00
Till Schneidereit
a4fd2b5e2c Bug 905370 - Move SelfHostedClass list to JSRuntime. r=bhackett,shu
--HG--
extra : rebase_source : e45e182038fdc5267aa9b50853eefb43c7f9cf54
2013-08-23 13:29:01 +02:00
Ms2ger
79dd184c74 Bug 517765 - Mark make-source-package.sh as executable. 2013-08-23 19:35:54 +02:00
Ian Stakenvicius
00cff60360 Bug 517765 - Add 'make source-package' support into js/src. r=sstangl 2013-08-22 12:38:18 -04:00
Bill McCloskey
ea4b0b506f Bug 908484 - Fix canCollect() exception in JS engine (r=bhackett) 2013-08-23 10:23:40 -07:00
Ryan VanderMeulen
08f594ec2a Backed out changeset 0dad16fe66b2 (bug 517765) for Linux PGO bustage. 2013-08-23 13:17:07 -04:00
Terrence Cole
49c80c8448 Bug 908483 - Fix some exact rooting hazards in jsd; r=jonco 2013-08-22 15:43:47 -07:00
Jon Coppeard
03edd99023 Bug 907135 - Disable verification of OSI point registers in rooting analysis builds r=nbp 2013-08-23 16:43:38 +01:00
Andy Wingo
bb8edee39e Bug 904701 - Implement prototype madness for ES6 generators. r=bhackett, r=jorendorff
Add a Generator constructor, like the Function constructor.

Define the GeneratorFunctionPrototype, GeneratorFunction, and
GeneratorObjectPrototype meta-objects.

When cloning or creating a star generator, give it
GeneratorFunctionPrototype as its prototype.

Each star generator function has a ".prototype" property, which has
GeneratorObjectPrototype as its prototype.  That prototype does not have
a ".constructor" link.

If Function.prototype.toSource is called on a non-function, chain up to
Object.prototype.toSource instead.

Prototypes of generator objects are no longer made with
GeneratorObject::class_.  This allows us to elide some "null" checks
from bug 352885.  Instead calling a generator on a method now signals a
typeerror.

Make the "send" generator method a simple alias to "next".
2013-08-23 11:07:10 -04:00
Ian Stakenvicius
6922532fd3 Bug 517765 - Add 'make source-package' support into js/src. r=sstangl 2013-08-22 12:38:18 -04:00
Gabor Krizsanits
73d41a24b4 Bug 886237 - follow-up part2: Comment formatting in sandbox.cpp. r=bholley 2013-08-23 09:56:03 +02:00
Gabor Krizsanits
be6a2be548 Bug 886237 - follow-up part1: Moving Sandbox/XPCComponents helpers into namespace xpc. r=bholley 2013-08-23 09:55:47 +02:00
Kyle Huey
450b0c5f42 Bug 903772: Part 9 - Use a different class in the weakmap test now that the implementation of TextDecoder has changed. r=peterv 2013-08-22 22:17:10 -07:00
Kyle Huey
8edf4de9ad Bug 903772: Part 4 - Harmonize main thread and worker dictionary implementations. r=peterv 2013-08-22 22:17:09 -07:00
Kyle Huey
de0ee30e74 Bug 903772: Part 3 - Refactor GlobalObject. r=peterv 2013-08-22 22:17:08 -07:00
Brian Hackett
d5fe5f02fa Bug 908294 - Additional fixes for ExclusiveContext zones with TI enabled, r=billm. 2013-08-22 21:42:20 -06:00
Luke Wagner
cec964ccec Bug 908255 - tidy up 'non-destructive' functions, give StringHashPolicy a scarier name (r=terrence)
--HG--
extra : rebase_source : 84bbc6c0416190a9dae8c758262def530a591219
2013-08-22 13:54:34 -05:00
Luke Wagner
5a24677ba5 Bug 907118 - Fix bug in JSRope::getCharsNonDestructiveInternal (r=bhackett)
--HG--
extra : rebase_source : 30a52611309ba474653bd547cde3eb4af77dd578
2013-08-22 11:47:55 -05:00
Nicholas Nethercote
d208a00ee8 Bug 905017 (part 3, attempt 2) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm.
--HG--
extra : rebase_source : 8226a31c4f2a286ba843da616b1061ca034a5d41
2013-08-19 23:45:26 -07:00
Nicholas Nethercote
9ce6c39a8f Bug 905017 (part 2, attempt 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm.
--HG--
rename : js/src/jsclone.cpp => js/src/vm/StructuredClone.cpp
extra : rebase_source : 2699588c63ef58ab84bc8c63adc0487648af3834
2013-08-19 23:43:47 -07:00
Brian Hackett
d3df5f7c56 Bug 905544 - Fix assertion failure in threadsafe builds with --disable-ion, r=billm. 2013-08-22 18:02:28 -06:00
Terrence Cole
83b46d17ec Bug 907973 - Suppress an exact rooting non-hazard in ShellObjectMetadataCallback; r=bhackett
--HG--
extra : rebase_source : 3c2911f67d14375bc98580fc483cf61498ed8be3
2013-08-21 12:44:00 -07:00
Terrence Cole
0bf4aef42a Bug 907791 - Suppress some AsmJS rooting non-hazards in the static analysis; r=bhackett,luke
--HG--
extra : rebase_source : 9acbb597415c4bf08c978c480262ce5e5dd9c452
2013-08-21 12:43:22 -07:00
Mike Hommey
3e16a0d1dd Bug 904743 - Use makefile creation helper in BindingGen.py, cl.py and xpidl-process.py. r=gps
While at it, fix dependencies generated by BindingGen.py
2013-08-23 08:09:17 +09:00
Mike Hommey
26234441d3 Bug 908052 - Use GetShortPathName/GetLongPathName to canonicalize paths for dependency files generated by cl.py. r=gps 2013-08-23 08:08:05 +09:00
Benjamin Bouvier
354c49842b Bug 906860: Ignore segfaults handled by AsmJSFaultHandler in gdb; r=jimb,gps 2013-08-22 15:54:12 -07:00
Bobby Holley
4e5093e6fa Bug 903891 - Default the iid to nsISupports in NativeInterface2JSObject, and assert |Interface| when getting an XPCWrappedNative. r=mrbkap 2013-08-22 15:51:35 -07:00
Bobby Holley
52d40c8a87 Bug 907937 - Followup comment fixes. r=billm DONTBUILD 2013-08-22 13:39:20 -07:00
Bobby Holley
62306e6427 Bug 907937 - Followup fix for review-nit bustage. r=me CLOSED TREE 2013-08-22 12:54:05 -07:00
Bobby Holley
eb213192a7 Bug 907937 - Address review nits. r=billm
I normally roll these into the appropriate patches, but this queue moves a lot
of code around, and I'm afraid of a mismerge.
2013-08-22 12:40:31 -07:00
Bobby Holley
6a67707c4e Bug 907937 - Optimistically check the CCW cache early in opt-build value wrapping. r=billm 2013-08-22 12:40:31 -07:00
Bobby Holley
e6a0bd3c95 Bug 907937 - Inline jsval wrapping overload. r=billm
This thing is small enough now that it can be inlined. This is already a significant
win because primitive jsval wrapping is now entirely inlined.
2013-08-22 12:40:31 -07:00
Bobby Holley
1e989152b6 Bug 907937 - Move object wrapping into the object-overloaded wrap() function. r=billm
There are a couple of changes to the wrap code, so it probably needs to be
looked over.
2013-08-22 12:40:31 -07:00
Bobby Holley
bb79bca070 Bug 907937 - Whitespace change. r=billm 2013-08-22 12:40:30 -07:00
Bobby Holley
20bb98f1a6 Bug 907937 - Remove isObject() checks, and stop using |vp| as an intermediary. r=billm
We can do this now that we're not trying to deal with strings at the same time.
Whitespace change in the next patch.
2013-08-22 12:40:30 -07:00
Bobby Holley
9d3feb41a1 Bug 907937 - Move string wrapping into the actual string wrapping method. r=billm
The current string->value->string setup is kind of silly. This also moves work
out of the jsval overload, which will be helpful when we inline the first part.
2013-08-22 12:40:30 -07:00