Commit Graph

19927 Commits

Author SHA1 Message Date
Gary Kwong
3a1f87a91c Add test for bug 770952, take two. 2012-07-20 19:10:15 -07:00
Gary Kwong
fe1e93394a Backed out changeset 62d352e6a480 for breakage. 2012-07-20 19:54:58 -07:00
Gary Kwong
dcba5b6f49 Add test for bug 770952. 2012-07-20 19:10:15 -07:00
Luke Wagner
32ea9cb6b9 Bug 775807 - Don't disassemble partially-compiled scripts (r=jimb)
--HG--
extra : rebase_source : 5179fd12faea43f227c8369bae4588d5adfebc7c
2012-07-20 17:16:14 -07:00
Bobby Holley
36dc1f0877 Bug 771202 - Add a PostTransplant nsIXPCScriptable hook. r=peterv 2012-07-13 10:55:14 +02:00
Terrence Cole
5086044b0f Bug 764962 - Add a verifier mode for GenerationalGC post barriers; r=billm
This adds a store buffer which is enabled with --enable-gcgenerational and new
verifier modes 11 & 12 corresponding to pre-barrier verifier modes 4 & 5 when
enabled.

--HG--
extra : rebase_source : 9333a9e24a448865199c0d6f84f222c081b5611e
2012-06-20 18:48:56 -07:00
Luke Wagner
6bea3866d1 Bug 775801 - LambdaIsGetElem should optimize based on JSOP_GETALIASEDVAR, not JSOP_NAME (r=dvander) 2012-07-20 16:17:24 -07:00
Luke Wagner
ad00687a85 Backout 970b733bd01d (bug 775801) due to tp5n bustage 2012-07-20 15:35:59 -07:00
Ryan VanderMeulen
2661c4efbe Merge m-c to inbound. 2012-07-20 17:37:53 -04:00
Luke Wagner
b7f981a9d5 Bug 775801 - LambdaIsGetElem should optimize based on JSOP_GETALIASEDVAR, not JSOP_NAME (r=dvander)
--HG--
extra : rebase_source : 5995e62a63b47aa4abf88d8f16a2226bd9a991f1
2012-07-20 13:56:33 -07:00
Benjamin Peterson
42e6e53063 No bug: class -> struct for compiler warning. r=dzbarsky 2012-07-20 15:58:18 -04:00
Olli Pettay
e326bb73c3 Bug 765947 - Preprocess the config file for generated events, r=khuey 2012-07-20 20:19:40 +03:00
Olli Pettay
d4c22e1e8d Bug 765766 - Convert more event interface implementations to be autogenerated, r=jst 2012-07-20 19:58:28 +03:00
Olli Pettay
e9cea4305c Bug 765163 - Implement code generator for simple DOM events, r=jst,khuey 2012-07-20 19:42:08 +03:00
Jonas Sicking
b0b6c14ad5 Bug 774585 - Add GetDocShellCodebasePrincipal to nsIScriptSecurityManager. r=mounir 2012-07-20 00:06:24 -07:00
Mounir Lamouri
15fad48685 Bug 758258 - part 5 - Add GetAppCodebasePrincipal and GetNoAppCodebasePrincipal to nsIScriptSecurityManager. r=mrbkap sr=sicking 2012-07-19 20:28:08 -07:00
Benjamin Peterson
0d217352e9 Bug 761723 - Add test for chrome toSource. r=bz
--HG--
extra : rebase_source : e4e41b30d2bdb73c8f48dd01a1ad8b974604978c
2012-07-20 20:20:09 +02:00
Benjamin Peterson
fb272e1622 Bug 761723 - Add a runtime hook to retrieve source that wasn't saved. r=luke
--HG--
extra : rebase_source : de2e88f79e1e2a4a75ff5c5b296dbae052e4b076
2012-07-20 20:19:17 +02:00
Benjamin Peterson
0710b8034e Bug 761723 - Add a context option to only save source for compileAndGo and function body scripts. r=jornedorff
--HG--
extra : rebase_source : d4637dfe967c0ea398bb4b08fa6f9955b14ff528
2012-07-20 20:19:02 +02:00
Benjamin Peterson
78a339dd91 Bug 761723 - Add memory reporting for script sources. r=njn
--HG--
extra : rebase_source : 5f2cdb960f29829e9da19bbe137a810f456cc7fc
2012-07-20 20:18:08 +02:00
Benjamin Peterson
d1064385b3 Bug 761723 - Save script sources to implement Function.prototype.toString. r=jorendorff,njn,jimb,jst,Ms2ger
--HG--
extra : rebase_source : de1b55647780a30f98fe84d29ee3cb4a437a3ece
2012-07-20 20:17:38 +02:00
Terrence Cole
395f9bd8e0 Backout 189816733310 for Android bustage. 2012-07-20 11:07:44 -07:00
Nicholas Nethercote
1cf6ff22a5 Bug 773533 (part 1) - Skip XBL nodes when looking for orphan DOM nodes. r=mccr8,smaug.
--HG--
extra : rebase_source : 0dd533b41b1ebd73bcd83852c01cd9a64adbc26a
2012-07-18 21:10:36 -07:00
Steve Fink
0701e084e5 Bug 775365 - Fill out the rooting API. r=billm
- add external type JSHandleString
 - add external type JSMutableHandleValue
 - allow converting a MutableHandle -> Handle
 - add MutableHandle::fromMarkedLocation()
 - make a non-const AudoVectorRooter::handleAt() that returns a MutableHandle
2012-07-18 14:31:24 -07:00
Bill McCloskey
6bedbce8db Bug 774933 - Forgot to prepare GC before finishing it (r=terrence) 2012-07-19 17:15:32 -07:00
Bill McCloskey
483224b99d Bug 758408 - Fix XML slot handling (r=Waldo) 2012-07-19 16:56:14 -07:00
Mounir Lamouri
19b289e5df Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking 2012-07-18 21:25:19 -07:00
Steve Fink
fe7cf7ba30 Backed out changeset afc1cf222996 2012-07-19 15:22:32 -07:00
Jason Orendorff
23d6c5d5a9 Bug 725907 - for-of improvements, part 4: Add .next() method to iterator objects and make for-of call it. r=bhackett. 2012-07-03 16:34:56 -05:00
Jason Orendorff
7e92dcab82 Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky. 2012-07-03 16:34:56 -05:00
Jason Orendorff
1b172b816f Bug 771027 - for-of semantics: convert the result of obj.iterator() to an object. r=bhackett. 2012-07-19 17:03:20 -05:00
Jason Orendorff
5127709e6d Bug 725907 - for-of improvements, part 2: Make for-of loops just call .iterator() instead of using the magic iteratorObject hook with an extra flag. r=bhackett. 2012-07-03 16:34:56 -05:00
Jason Orendorff
4f50c05dd0 Bug 725907 - for-of improvements, part 1: minor C++ refactoring, rename Iterator to PropertyIteratorObject. r=Waldo. 2012-07-03 16:34:40 -05:00
Jason Orendorff
679a92c077 Bug 770854 - Put frontend code in the frontend namespace. r=njn. 2012-07-09 13:54:28 -05:00
Siddharth Agarwal
fb0d7755f0 Bug 774054 - Switch mochitest file $(INSTALL) to install_cmd. r=glandium
--HG--
extra : rebase_source : f01a7f0ab55c32256c641dbfa33024132ad0cc79
2012-07-20 01:07:10 +05:30
Mounir Lamouri
a5975943d6 Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking 2012-07-18 21:25:19 -07:00
Mounir Lamouri
96545b3886 Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar 2012-07-18 15:27:02 -07:00
Mounir Lamouri
15ea035b93 Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking 2012-07-19 10:49:17 -07:00
Justin Lebar
54df485268 Bug 773980 - Add Components.utils.isDeadWrapper. r=bholley
--HG--
rename : js/xpconnect/tests/Makefile.in => js/xpconnect/tests/browser/Makefile.in
2012-07-19 12:39:43 -04:00
Terrence Cole
20f8adf7b7 Bug 772292 - Convert JSObject2WrappedJSMap to a new-style HashTable; r=mrbkap
--HG--
extra : rebase_source : a51ae61fde535ba18e84bec484509099101247ab
2012-07-07 16:11:54 -07:00
Jim Mathies
7f92debdd9 Bug 762519 - Send xpconnect stack dump output and javascript dump output to the win debugger when attached. r=ehsan, mrbkap 2012-07-19 09:58:44 -05:00
Rafael Ávila de Espíndola
5964da33d6 Bug 755145 - Define CCACHE_CPP2 when using ccache and Clang. r=glandium. 2012-07-19 09:20:46 -04:00
Makoto Kato
c63fb1198f Bug 771401 - Change PRTime in IDL to signed long long. r=bholley sr=bsmedberg 2012-07-19 18:53:30 +09:00
Ed Morley
80af77da9d Backout ea6db8f420c0 (bug 770831), b51c79ee0883 (bug 774957), 020f6ed5958b (bug 758258), 11d8e19e1fca (bug 758258), 707fc51bfe2e (bug 775354), 489d944a6fe6 (bug 327244), be7df3c9d50f (bug 327244) for m-oth orange 2012-07-19 08:29:48 +01:00
Mounir Lamouri
e7de2ebedc Bug 758258 - Part 2 - Add GetExtendedOrigin(), NO_APP_ID and UNKNOWN_APP_ID. r=sicking 2012-07-18 21:25:19 -07:00
Mounir Lamouri
8a2133a405 Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar 2012-07-18 15:27:02 -07:00
Mounir Lamouri
32d220e324 Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking 2012-07-18 13:35:15 -07:00
Ryan VanderMeulen
d992f8c567 Backout 61d052e202c8 (bug 647367) due to Windows bustage. 2012-07-18 22:33:41 -04:00
Nicholas Nethercote
8e95c82325 Bug 647367 - Sequester jshash.{h,cpp} in js/jsd/. r=luke.
--HG--
rename : js/src/jshash.cpp => js/jsd/jshash.cpp
rename : js/src/jshash.h => js/jsd/jshash.h
extra : rebase_source : 22311241bc356e2c724c28f4199cfa8008d594a9
2012-07-18 17:38:10 -07:00
Nicholas Nethercote
9acd099c01 Bug 771378 (part 4) - Follow-up to avoid an uninitialized variable. r=sfink.
--HG--
extra : rebase_source : 44f1456136324ae76f27077829faf546024bad11
2012-07-18 15:53:17 -07:00
Benjamin Peterson
b8058be7e8 Bug 725702: support for of loops in Reflect.parse r=dherman 2012-07-18 18:14:15 -04:00
Luke Wagner
d045bcabab Bug 680562 - Remove CHECK_INTERRUPT_HANDLER (r=jimb) 2012-07-08 03:07:25 -07:00
Luke Wagner
bbfb0890ea Bug 761510 - rm JSFUN_NULL_CLOSURE (r=jimb) 2012-07-17 16:35:58 -07:00
Andrew McCreight
de5b0a6c69 Bug 761831 - Be less ambitious in GetMemberInfo. r=bholley 2012-07-18 13:28:58 -07:00
Rafael Ávila de Espíndola
6fa6b984a6 Bug 775134 - Remove extra ; r=ehsan.
--HG--
extra : rebase_source : 1d44663679e8f1944649d54608e5e6e6694e88c5
2012-07-18 12:15:47 -04:00
Ehsan Akhgari
13792204c3 Merge mozilla-central into mozilla-inbound 2012-07-18 09:38:49 -04:00
Bobby Holley
769558b9bf Bug 774245 - Remove unnecessary memset. r=mccr8 2012-07-18 14:56:54 +02:00
Brian Hackett
1ab175defd Treat known booleans like integers during bitops, bug 774812. r=jandem 2012-07-18 06:43:18 -06:00
Brian Hackett
9ade53ec36 Use distinct types and scripts for generic inner wrapper functions, bug 638794. r=jandem 2012-07-18 06:35:00 -06:00
Ed Morley
ab4a6323cd Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-18 13:32:24 +01:00
Bobby Holley
673d7cb15b Bug 774245 - Tests. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley
025d4d99bb Bug 774245 - Reimplement LookupMethod. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley
5eac963c7a Bug 774245 - Add WrapperFactory and XrayWrapper machinery to allow same-compartment Xray wrapping. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley
13029dbed8 Bug 774245 - Factor out single-level checked unwrapping into a helper function. r=mrbkap 2012-07-18 13:51:28 +02:00
Ms2ger
b6763bdb39 Bug 765464 - Part b: Add an exnType to JSErrorReport; r=Waldo 2012-07-18 12:36:08 +02:00
Ms2ger
01a4d16165 Bug 765464 - Part a: Introduce JS_ReportErrorNumberVA; r=Waldo 2012-07-18 12:36:08 +02:00
Rafael Ávila de Espíndola
2f412dca87 Bug 774671 - Fix mismatched declarations. r=luke. 2012-07-17 12:54:41 -04:00
Rafael Ávila de Espíndola
25b2edd61d Bug 774559 - more workaround for llvm.org/pr12127. r=dvander.
LLVM is inlining these functions that use a lot of stack space into the
recursive EmitTree.
2012-07-16 23:53:30 -04:00
Ehsan Akhgari
8483016620 Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky 2012-07-16 21:42:18 -04:00
Alex Crichton
375c48007d Bug 774330: Don't unnecessarily prevent code from entering the JIT with SPS enabled. r=luke 2012-07-16 18:11:20 -07:00
Luke Wagner
ae84424734 Bug 683069 - rm setParent hack in JSCompartment::wrap (r=bholley)
--HG--
extra : rebase_source : 5e011d68fa37c812d2f238c6574def343f9a8e42
2012-07-16 17:37:57 -07:00
Benjamin Peterson
4a0c5dd75c Bug 774511 - Remove unused exception message. r=terrence 2012-07-16 20:38:47 -04:00
Nicholas Nethercote
1a1da39674 Bug 771378 (part 3) - Remove MUST_FLOW_THROUGH and related things. r=jwalden.
--HG--
extra : rebase_source : cf7a8638b7ce8a9313561f22686dc16371d14756
2012-07-17 16:40:25 -07:00
Nicholas Nethercote
0a64c97c9e Bug 771378 (part 2) - Remove use of MUST_FLOW_THROUGH from jsxml.cpp. r=jwalden.
--HG--
extra : rebase_source : 0ee0800006badf84d5ab415a858354e606f648fb
2012-07-17 16:40:21 -07:00
Nicholas Nethercote
a7ab4e5527 Bug 771378 (part 1) - Remove use of MUST_FLOW_THROUGH from BytecodeEmitter.cpp. r=jwalden.
--HG--
extra : rebase_source : c45808569daa61d10bd57fdc5b969e4880cc3ada
2012-07-17 16:36:50 -07:00
Nicholas Nethercote
f8cf077180 Bug 771378 (part 0) - Add ScopedFreePtr to Utility.h. r=jwalden.
--HG--
extra : rebase_source : b43cb64bb1175c4111903f5c30f533612daae841
2012-07-05 17:29:56 -07:00
Chris Jones
16256d749a Bug 774139, part 0: Rename 'NO' typename because that's a constant in Objective-C++. r=bz 2012-07-17 16:01:56 -07:00
Luke Wagner
9fd060b6fc Bug 772688 - remove CallObject property ops and sea witch (r=bhackett) 2012-07-11 15:46:06 -07:00
Luke Wagner
707ccf4110 Bug 772688 - add BindingIter and use it instead of directly touching a Binding's shape (r=waldo) 2012-07-05 20:35:08 -07:00
Steve Fink
769ac05993 Bug 769192 - Typed array accessors should not use JSPROP_READONLY. r=Waldo 2012-07-16 11:11:06 -07:00
Eddy Bruel
081647891e Bug 767059 - Commenting the parser; r=jorendorff 2012-07-17 20:16:28 +02:00
Rafael Ávila de Espíndola
b7dfee3795 Bug 774671 - Fix mismatched declarations. r=luke. 2012-07-17 12:54:41 -04:00
Nicolas Pierron
689f87cddc Bug 772509 - Freeze a compilation output instead of a script. r=bhackett 2012-07-17 18:17:24 +02:00
Gabor Krizsanits
eb91f1fcc5 Bug 769273 - part4: avoiding innerization in NukeCrossCompartmentWrappers. r=bholley 2012-07-17 17:51:21 +02:00
Luke Wagner
24c2aef018 Bug 773927 - Propagate closed-ness in CompExprTransplanter (r=dvander)
--HG--
extra : rebase_source : 85f484b705372b380832d94172024b0da20f19cf
2012-07-16 15:10:38 -07:00
Luke Wagner
38fa4350f8 Bug 773929 - Restore pre-bug 765956 behavior in CheckNewScriptProperties (r=bhackett)
--HG--
extra : rebase_source : ffa490e628a71102886f56207a994e0c7fbdd4ab
2012-07-16 15:08:49 -07:00
Nicholas Nethercote
082c8cb32c Bug 772615 (part 2) - Enter compartments before calling GetNativeOfWrapper() in the JS memory reporter. r=bholley. 2012-07-15 19:59:47 -07:00
Nicholas Nethercote
dc1e531d71 Bug 772615 (part 1) - Use the safe JSContext in the JS memory reporter. r=bholley. 2012-07-15 21:03:27 -07:00
Jeff Walden
38c21d9d4c Bug 770344 - Experiment implementing __proto__ as an accessor. r=luke 2012-06-27 18:35:56 -07:00
Gabor Krizsanits
9a3f0c40b0 Bug 769273 - part3: Cu.nukeSandbox. r=bholley 2012-07-17 17:41:07 +02:00
Gabor Krizsanits
616ba55d88 Bug 769273 - part2: Refactoring NukeChromeCrossCompartmentWrappersForGlobal. r=bholley 2012-07-17 17:36:15 +02:00
Eddy Bruel
8f5b3d1ebe Merge of bug 722555 with m-i 2012-07-17 16:26:37 +02:00
Eddy Bruel
59fd358b84 bug 722555 - Add RGBA support to BMP encoder; r=jgilbert 2012-07-17 16:20:14 +02:00
Gabor Krizsanits
cab55a782f Bug 769273 - part1: Prep for refactoring NukeChromeCrossCompartmentWrappersForGlobal. r=bholley 2012-07-17 15:38:53 +02:00
Bobby Holley
432ee51b14 Bug 767273 - Never declare a stack-allocated PropertyDescriptor within SM, and make API safe. r=luke 2012-07-17 12:10:09 +02:00
Peter Van der Beken
e2daa1df74 Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
--HG--
extra : rebase_source : 26d0508b8a11d75164ae4b27af8c64e8845166f9
2012-07-16 16:52:59 +02:00
Luke Wagner
062bdf6738 Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 1e868b37de87f94799500019cc13e7b8abe3c0f3
2012-07-05 20:35:08 -07:00
Luke Wagner
852895f9c2 Bug 753158 - Don't resolve uses to defs that cross non-top-level function statements (r=dvander)
--HG--
extra : rebase_source : 36331b2b862186f224c2edaf3d9a8d23a079269a
2012-07-16 17:09:52 -07:00
Terrence Cole
7fbb7da7cf Bug 764962 - Add a verifier mode for GenerationalGC post barriers; r=billm
This adds a store buffer which is enabled with --enable-gcgenerational and new
verifier modes 11 & 12 corresponding to pre-barrier verifier modes 4 & 5 when
enabled.

--HG--
extra : rebase_source : c2ba68f1cb9eaf3375048b43b777f4ed6502cde1
2012-06-20 18:48:56 -07:00
Jan de Mooij
46c01da5ad Bug 775680 - Math.pow should use powi if the exponent is an integer-valued double. r=dvander 2012-07-19 20:43:32 +02:00
Eric Faust
8cc5a05403 Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett) 2012-07-11 20:55:19 -07:00
Jeff Walden
c789b193fa Bug 773049 - Fix a comment typo noted by terrence over IRC, DONTBUILD to save resources. r=lumpy 2012-07-12 16:42:26 -07:00
Benjamin Peterson
bedf163a14 Bug 773115 - Remove unneeded needStrictChecks() call. r=njn 2012-07-12 19:28:54 -04:00
Benjamin Peterson
c98f778932 Bug 772012 - When the rest parameter aliases a function and defaults are present, don't try to set the rest parameter. r=jorendorff 2012-07-12 19:28:54 -04:00
Jeff Walden
b940fd409c Bug 773049 - Implement the Value interface in MutableHandle<Value> and Rooted<Value> (in addition to Handle<Value> and EncapsulatedValue which already manually implemented it), consolidating the Value interface bits in ValueOperations and MutableValueOperations classes using CRTP. r=bhackett
--HG--
extra : rebase_source : 436385599a7f071792c2d14037e1a1c639427c4f
2012-07-12 03:01:59 -07:00
Luke Wagner
5a689cbdcd Bug 773108 - Avoid overflowing blockid in CompExprTransplanter (r=dvander) 2012-07-11 22:07:25 -07:00
Brian Hackett
da6b1a78cd Add more rooting for interpreter, TI and JIT, bug 772303, r=terrence. Also disable Windows PGO for RegExp.cpp because the compiler is broken. 2012-07-12 12:36:27 -06:00
Luke Wagner
51d299ed9e Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 53c280967abc57f5a19e7dbc1dcfacc0603b202b
2012-07-05 20:35:08 -07:00
Luke Wagner
9a75002756 Bug 753145 - Attach static scope nesting information to scripts (r=jimb)
--HG--
extra : rebase_source : 0eaf04cf7f302308ce7f76c2012f75195e41f1bf
2012-07-03 10:24:36 -07:00
Luke Wagner
439bdb3b68 Bug 767750 - rm JSScript::evalHashLink (r=njn)
--HG--
extra : rebase_source : 6cbf87dc2cbc23c60ee278b9fd3b64b0936517bc
2012-07-03 10:24:35 -07:00
Luke Wagner
2c9d40f617 Bug 765956 - Remove the non-reentrant closure optimization (r=bhackett)
* * *
imported patch fix-debugger-for-non-reentrant-removal

--HG--
extra : rebase_source : d77f8e19d0674726fb4078a73b6a3cb57ac91d73
2012-07-03 10:24:35 -07:00
Luke Wagner
043fc7c6eb Bug 765956 - Set Bindings' parent eagerly (r=bhackett)
--HG--
extra : rebase_source : 4f907c3e3692199033813539b173189d760b4a7c
2012-06-20 08:57:29 -07:00
Luke Wagner
f86b798bff Bug 771039 - assert some invariants in BindNameToSlot (r=dvander)
--HG--
extra : rebase_source : 9d0ba59ce4042bad88a7882b58b33f5f7b9ac19f
2012-07-05 20:29:24 -07:00
Luke Wagner
325a844223 Bug 771039 - fix CompExpTransplanter to correctly fix up implicit arguments definitions in generator expressions (r=dvander)
--HG--
extra : rebase_source : 27ac2ef2f61894272c5186eca8a77e54af286150
2012-07-08 04:35:09 -07:00
Jeff Walden
2dc0ce9a5b Remove a stray semicolon that causes a warning compiling pretty much any SpiderMonkey file. No bug, r=themaid 2012-07-12 10:53:43 -07:00
Ed Morley
b42ebe8a76 Backout 6bbf3f22bb5d (bug 753158), 38a703b244c2 (bug 753145), c9a5dfa1b07d (bug 767750), cd782fd66995 & 6cf7aa93994c (bug 765956), 0253f34f6bc2 & 41d5c8529748 (bug 771039),94f6bf99a4aa (bug 766447),fad7d06d7dd5 (bug 772303) for winxp pgo-only jsreftest failures (caused by fad7d06d7dd5) and the rest for conflicts, on a CLOSED TREE 2012-07-12 13:04:51 +01:00
Bobby Holley
3bdccb2949 Bug 601277 - Better tests for document.domain. r=mrbkap 2012-07-12 10:10:15 +02:00
Bobby Holley
bf7c218243 Bug 655649 - Stop doing dynamic security checks for document.domain. r=mrbkap 2012-07-12 10:10:15 +02:00
Bobby Holley
63851e7543 Bug 655649 - Use Subsumes Rather than Equals in XPConnect wrapper computation. r=mrbkap
Now that we have nsExpandedPrincipal, the current way of doing things is wrong. For some reason, the old document.domain hackery was hiding the failures here.
2012-07-12 10:10:15 +02:00
Benjamin Peterson
d190590ad3 Bug 773153: don't use operand context when looking for line end. r=njn 2012-07-12 00:03:25 -07:00
Mike Hommey
d145a2d1a8 Bug 763651 - Link the javascript engine against zlib. r=khuey 2012-07-12 08:30:59 +02:00
Luke Wagner
411e5b385f Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 73a1f673c0bcceb93dbe9e86acd8a99fbe3fb005
2012-07-05 20:35:08 -07:00
Luke Wagner
6c1cb57b2c Bug 753145 - Attach static scope nesting information to scripts (r=jimb)
--HG--
extra : rebase_source : c2608319ab0c6a1668c1ec130569867d2013e0a4
2012-07-03 10:24:36 -07:00
Luke Wagner
a7b7bef14f Bug 767750 - rm JSScript::evalHashLink (r=njn)
--HG--
extra : rebase_source : 64101b0dbe1a8246e043637dca7469016362f62d
2012-07-03 10:24:35 -07:00
Luke Wagner
85d2d15622 Bug 765956 - Remove the non-reentrant closure optimization (r=bhackett)
* * *
imported patch fix-debugger-for-non-reentrant-removal

--HG--
extra : rebase_source : d534ed39a2ae3e245588288391759744f2081bde
2012-07-03 10:24:35 -07:00
Luke Wagner
b663dca0f6 Bug 765956 - Set Bindings' parent eagerly (r=bhackett)
--HG--
extra : rebase_source : 198757535745ab10f4bba192b163d38768e7260b
2012-06-20 08:57:29 -07:00
Luke Wagner
b8b3423ac1 Bug 771039 - assert some invariants in BindNameToSlot (r=dvander)
--HG--
extra : rebase_source : fb7cbfa0cfcfd612c67cfc4961609ad424b59a1d
2012-07-05 20:29:24 -07:00
Luke Wagner
fd1cfa5f8f Bug 771039 - fix CompExpTransplanter to correctly fix up implicit arguments definitions in generator expressions (r=dvander)
--HG--
extra : rebase_source : b28f0c1eefe5ca6c17b1a39a4034abe6b9041747
2012-07-08 04:35:09 -07:00
Phil Ringnalda
6dd4d1a2be Back out 5eacd4fc78e4 (bug 772722) for mochitest-4 shutdown crashes 2012-07-11 22:23:56 -07:00
Eric Faust
c9728904d1 Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett) 2012-07-11 20:55:19 -07:00
Terrence Cole
5aa5f87d20 Bug 772722 - Remove superfluous usage of Atomics in SpiderMonkey; r=luke
None of the current usages of ATOMIC_INC/DEC are useful now that we do not allow
multi-threaded runtimes. This also removes a pre-mature optimization that
happened to be using the atomics. I measured it as saving strictly < 3us on old
hardware.
2012-07-11 14:32:00 -07:00
Alex Crichton
6e1f9c130b Bug 772078 - Remove JS entries even when stopping the SPS profiler. r=luke 2012-07-11 16:23:52 -07:00
Steve Fink
59373082a3 Backed out changeset d99d8b4d0eeb (bug 769192) for mochitest-3 bustage
--HG--
extra : rebase_source : 0c44009fc689b0b95da0c7fdac401a1755fb8fca
2012-07-11 15:32:26 -07:00
Brian Hackett
714b548448 Add more rooting for interpreter, TI and JIT, bug 772303. r=terrence 2012-07-11 16:22:41 -06:00
Steve Fink
1a1a0332ce Bug 769192 - Typed array accessors should not use JSPROP_READONLY. r=Waldo
--HG--
extra : rebase_source : 5055b1618b876db58c219512e0168dad28104344
2012-07-11 11:54:56 -07:00
Steve Fink
1a345cef20 Bug 758106 - Intentionally leak poisoned pointers when using rooting analysis. r=bhackett
--HG--
extra : rebase_source : d0eb52bd01bb64111c32e1f491435f5c731a9647
2012-07-11 11:54:48 -07:00
Terrence Cole
ac08e5383f Backed out changeset 9dc4e44365c4 2012-07-11 14:10:02 -07:00
Terrence Cole
0a56ae80a2 Bug 772722 - Remove superfluous usage of Atomics in SpiderMonkey; r=luke
None of the current usages of ATOMIC_INC/DEC are useful now that we do not allow
multi-threaded runtimes. This also removes a pre-mature optimization that
happened to be using the atomics. I measured it as saving strictly < 3us on old
hardware.
2012-07-11 13:49:51 -07:00
Gregor Wagner
67d201613b Bug 765435 - Make JS heap growth factor depend on the heap size after a GC and GC frequency. r=billm 2012-07-11 11:09:53 -07:00
Eddy Bruel
aeda49b01d Bug 771908 - Get rid of Wrapper::leave; r=bholley, sr=mrbkap 2012-07-11 14:01:10 +02:00
Benjamin Peterson
96009147e9 Bug 772691 - Disallow XML in function defaults. r=njn 2012-07-10 21:41:00 -04:00
Andrew McCreight
97d04b5f84 Bug 704623 - Track memory used by orphan DOM nodes. code=mccr8,njn. r=njn,mccr8.
--HG--
extra : rebase_source : f4a4b6e1b1de35a08e86130110a6fbd588093867
2012-04-20 14:01:33 +10:00
Brian Hackett
d270a70bec Add more rooters, bug 772303. r=billm 2012-07-10 19:17:29 -06:00
Luke Wagner
73cdcc4dea Bug 770737 - Make JSContext::global() return Handle<GlobalObject*> (r=billm)
--HG--
extra : rebase_source : af8f4c7461cc07d4ebc34ddff0a801432fa27ddd
2012-07-10 16:14:59 -07:00
Luke Wagner
eb291f3ab2 Bug 771998 - add Handle<Value> specialization that is better suited for Value (r=billm)
--HG--
extra : rebase_source : b52fd5f8f6dda2343d1e4266dee6385ae9ef7a7a
2012-07-10 15:48:07 -07:00
Luke Wagner
c06e3b9b0b Bug 772285 - rm JSPD_ARGUMENT/JSPD_VARIABLE (r=sfink)
--HG--
extra : rebase_source : 7be9ea3e5e90be9abd65f7d5268741e453cc717b
2012-07-10 15:34:12 -07:00
Jeff Walden
ccfc129f21 Bug 771743 - Remove generator_op and have the methods that call it do their work manually. r=luke 2012-07-06 15:35:59 -07:00
Jeff Walden
40fb929704 Bug 771744 - Remove num_toStringHelper in favor of including its functionality in callers (most of which don't even need all its functionality!). r=luke 2012-07-06 17:45:14 -07:00
Jeff Walden
e0e03fb3c3 Bug 771744 - Move declarations from the start of num_toLocaleString throughout the method, for better readability. r=luke 2012-07-06 17:30:06 -07:00
Jeff Walden
cf23fd3d30 Bug 771744 - Remove num_to, and fold its functionality into its callers, for greater clarity and readability, and to move method-guarding code to the start of each user method. r=luke 2012-07-06 17:21:18 -07:00
Jeff Walden
fbba5de22d Bug 771946 - Convert most of the internal Date functions to work in terms of doubles, and add a ton of assertions to verify proper time clipping, integerization, etc. r=luke 2012-07-09 14:28:20 -07:00
Cameron Kaiser
48aa5533c8 Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-10 18:31:04 -04:00
Neil Rashbrook
e43aed79cb Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 22:01:08 +01:00
Ehsan Akhgari
80a12e96e3 Backout changeset 3a7ece100089 (bug 770182) because of make check failures 2012-07-10 15:41:43 -04:00
Neil Rashbrook
0093dbe1f3 Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 19:51:53 +01:00
Takanori MATSUURA
ee9aff8a33 Bug 772507 - Add vpx/vpx_encoder.h and vpx/vp8cx.h to system-headers files. r=bsmedberg 2012-07-10 10:51:18 -07:00
Terrence Cole
38b9fdc044 Bug 772314 - Replace NSPR's interval timer with PRMJ_Now; r=luke
PR_IntervalTime offers no extra functionality above PRMJ_Now for our uses.
2012-07-09 18:40:27 -07:00
Ehsan Akhgari
0f67e7f526 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:44 -04:00
Ehsan Akhgari
5039c88619 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:07 -04:00
Benjamin Peterson
fbda007c11 Bug 769072: retroactively apply strict mode to defaults. r=njn 2012-07-09 23:43:06 -07:00
Benjamin Peterson
009075d299 Bug 769072: increase tokenizer lookahead to 3. r=njn 2012-07-09 23:41:59 -07:00
Benjamin Peterson
86043702c1 Bug 772012: create a CompileError class. r=njn 2012-07-09 23:41:56 -07:00
Chris Peterson
6933f899ea Bug 772210 - Fix warning: unused variable 'initFlushCount'. r=luke 2012-07-09 10:10:30 -07:00
Jim Blandy
943b321364 Bug 769754: Debugger handler functions should not corrupt the debuggee's JSContext::iterValue. r=jorendorff 2012-07-09 13:19:09 -07:00
Jason Orendorff
7bf894ced1 Back out changeset ac870e3e94f3 due to red on m-i. 2012-07-09 14:39:50 -05:00
Jason Orendorff
bb2ea5126a Back out changeset a88ce0cbdba6 due to red on m-i. 2012-07-09 14:38:49 -05:00
Jason Orendorff
390c9a2dd5 Bug 770865 - Rename TreeContext to ParseContext. r=njn.
--HG--
rename : js/src/frontend/TreeContext-inl.h => js/src/frontend/ParseContext-inl.h
rename : js/src/frontend/TreeContext.cpp => js/src/frontend/ParseContext.cpp
rename : js/src/frontend/TreeContext.h => js/src/frontend/ParseContext.h
2012-07-09 13:55:04 -05:00
Jason Orendorff
bfff7ba007 Bug 770854 - Put frontend code in the frontend namespace. r=njn. 2012-07-09 13:54:28 -05:00
Nathan Froyd
a7eb97f896 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Brian Hackett
548b46b175 Fix --enable-root-analysis builds break, no bug. r=billm 2012-07-09 09:58:22 -06:00
Mike Hommey
4f24ca47f6 Bug 771870 - Avoid js/src/Makefile being created with wrong topsrcdir. r=khuey 2012-07-09 15:47:26 +02:00
Luke Wagner
63ab279d39 Bug 771896 - rm LOAD_ATOM, LOAD_NAME, and 'atoms' from js::Interpret (r=waldo) 2012-07-08 04:31:04 -07:00
Luke Wagner
22b7a4a825 Bug 770795 - add NullPtr and associated Handle constructor (r=billm) 2012-07-08 03:00:11 -07:00
Ryan VanderMeulen
623e378e7a Backout 2dd36c1cd662 (bug 771320) due to red. 2012-07-08 16:50:32 -04:00
Cameron Kaiser
1def53eae4 Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-08 16:33:41 -04:00
Bill McCloskey
76ac85af05 Bug 771720 - Improve GC data collection (r=terrence) 2012-07-08 10:24:32 -07:00
Eddy Bruel
560a0f014c Bug 703537: Rename AbstractWrapper to IndirectWrapper + adding comments; r=bholley 2012-07-08 19:04:14 +02:00
Luke Wagner
a7b1dd068c Remove unnecessary decls (mostly to trigger a clobbering rebuild) (no bug, r=me) 2012-07-07 21:26:14 -07:00
Alex Crichton
13a898fcad Bug 770663 - Add a JS shell function to turn on a static profiling stack (r=luke)
--HG--
extra : rebase_source : 7e7ad51d73d5a517ef6bb9d62255e673944b4330
2012-07-05 10:43:50 -07:00
Alex Crichton
cd618d4e33 Bug 761261 - Add JS profiling to SPS (r=luke,ehsan)
--HG--
extra : rebase_source : 328a82697aa9a9f63d18c7a30a813f436e163922
2012-06-20 17:58:55 -07:00
Jeff Walden
5033396fac Bug 771742 - Refactor the date to-UTC-string methods to not use date_format_utc. r=luke
--HG--
extra : rebase_source : 3e56e0bcf6d26aa16e56a7558f21329d9bf48cf7
2012-07-06 15:35:45 -07:00
Jeff Walden
3eac4cef53 Bug 771742 - Refactor the date to-locale-string methods to do their method-guarding right at the start, and never in nested method calls. r=luke
--HG--
extra : rebase_source : 736038a0511730eea9cf8c87c720ea1d5e10bd8c
2012-07-06 15:26:11 -07:00
Jeff Walden
8c6e1140e9 Bug 771742 - Reimplement the Date.prototype.set<date component> functions in terms of their spec steps, and remove the hard-to-understand date_makeDate. r=luke
--HG--
extra : rebase_source : 84ced3e65ab44f2e0440c8e24bb9b70d12259940
2012-07-06 13:53:11 -07:00
Jeff Walden
d68f5c5e3e Bug 771742 - Reimplement the Date.prototype.set<unit of time> functions in terms of their spec steps, and remove the hard-to-understand date_makeTime. r=luke
--HG--
extra : rebase_source : cf070e258834853ebe24ec9cf0027de1d194a62c
2012-07-06 13:53:10 -07:00
Jeff Walden
49aaa718a1 Bug 771742 - Reorganize all the date/time spec algorithms and constants to be in spec order (when possible), have proper types, be methods rather than macros, and so on. This will make it easier to refactor some of the Date method implementations to read more like the spec algorithms. r=luke
--HG--
extra : rebase_source : 66fb1c02124713ffa3fb66afde15dc075f309744
2012-07-06 13:52:53 -07:00
Jason Orendorff
b36af0f7f2 Bug 768313 - Crash with newGlobal, newContext, --dump-bytecode, happens because jaeger inlines the non-pccount script into the pccount script, r=bhackett 2012-07-07 16:06:09 -07:00
Rafael Ávila de Espíndola
74a6dda7b8 Bug 771683 - Mark some functions MOZ_ALWAYS_INILINE. r=bzbarsky.
When compiling with gcc 4.2 these functions get inlined, but then
again, gcc 4.2 inlines almost anything.

With clang, newer versions of gcc and msvc marking these functions
with MOZ_ALWAYS_INLINE is a win. I assume part of the perf win
gcc 4.5 and msvc get with pgo is from noticing these are hot
and inlining them.

Without PGO it is hard for the compiler to know that this is a
win. With clang this does increase the codesize by about 6%.

The wins from inlining are
* Stack variables (rv in particular) which have their address taken
and are passed as outparams to these functions can go in registers.
* We find that nothing set mCcxToDestroy and ~XPCLazyCallContext
(which is already inlined) can be simplified.
2012-07-06 21:18:17 -04:00
Luke Wagner
953c6a1d7f Bug 770407 - Remove overzealous assert in CrossCompartmentWrapper::nativeCall (r=waldo)
--HG--
extra : rebase_source : 3ba26a72d57b6af9854814a7ccca5c66dad2a597
2012-07-03 18:51:02 -07:00
Jason Orendorff
5a4279d4f3 Bug 770850 - Reimplement DefnOrHeader as DefinitionList. r=njn. 2012-07-06 16:33:58 -05:00
Jason Orendorff
ec7dba8378 Bug 770849 - Move StmtInfoBCE to BytecodeEmitter.cpp. r=njn. 2012-07-06 16:32:57 -05:00
Jason Orendorff
7e22fd0dc8 Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 4: move isFunctionBodyBlock to StmtInfoTC. r=njn. 2012-07-06 16:32:04 -05:00
Jason Orendorff
cbe94c4c62 Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 3: GOSUBS and friends. r=njn. 2012-07-06 16:31:33 -05:00
Jason Orendorff
2926bd8d3d Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 2: StmtInfoBase::flags. r=njn. 2012-07-06 16:31:10 -05:00
Jason Orendorff
d1b726aa3b Bug 770846 - Convert some macros to methods and flags to bitfields in TreeContext.h. Part 1: STMT_IS_TRYING and friends. r=njn. 2012-07-06 16:30:39 -05:00
Kyle Huey
fc74c5d76f Bug 765936. r=bent,peterv 2012-07-06 10:28:51 -07:00
Jason Orendorff
5fa6604e22 Bug 695908 - Use bool in js/src/frontend rather than JSBool. Part 2: JSBool to bool. r=ejpbruel. 2012-07-03 12:37:19 -05:00
Jason Orendorff
8cfe02ab86 Bug 695908 - Use bool in js/src/frontend rather than JSBool. Part 1: true/false literals. r=ejpbruel. 2012-07-03 12:37:00 -05:00
Brian Hackett
8f39f6c99d Check the types of values newly known as doubles at loop heads when entering from the interpreter, bug 769985. r=dvander 2012-07-06 06:54:32 -06:00
Nicholas Nethercote
3e5b5a0e50 Bug 687724 (part 4) - Re-indent JSMemoryMultiReporter's methods. r=bholley.
--HG--
extra : rebase_source : deba800edfc3f55a9016d29acfd91d07a56e2e62
2012-07-05 21:16:11 -07:00
Nicholas Nethercote
c27840e9f1 Bug 687724 (part 3) - Report JS memory consumption for compartments that are associated with |window| objects under "window-objects". r=bholley,jlebar,luke.
--HG--
extra : rebase_source : 20329a698154ef61cea74247d3dccc9f01899829
2012-07-05 21:12:37 -07:00