Граф коммитов

29078 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster 9a36e4253d Bug 775166 - Remove some ugly optimization in jsarray. r=bhackett 2012-07-21 13:06:37 +02:00
Tom Schuster 30e59a8d14 Bug 646599 - Constant folding should happen before deciding whether to turn obj[A] into obj.A. r=Waldo 2012-07-21 13:05:07 +02:00
Jonas Sicking 23c9838514 Bug 774585: Rename getCodebasePrincipal to getSimpleCodebasePrincipal since the behavior has semantically changed. r=mounir 2012-07-21 00:29:40 -07:00
Jonas Sicking 8538371ed0 Bug 774585: Fix xpc-sandbox creation code to create the correct principals. r=mrbkap 2012-07-21 00:29:40 -07:00
Gary Kwong 1711391e21 Bug 633828 - Remove bogus assert. r=luke
--HG--
extra : rebase_source : c397bc741e71169e10993866790b79e5193b6157
2012-07-20 22:53:17 -07:00
Gary Kwong b6cc0050fb Bug 632778 - Update tests to use test metalines instead, since they are in jit-test. 2012-07-20 23:03:56 -07:00
Gary Kwong 8cfca23402 Add test for bug 770952, take two. 2012-07-20 19:10:15 -07:00
Gary Kwong 6f5cbe1fe0 Backed out changeset 62d352e6a480 for breakage. 2012-07-20 19:54:58 -07:00
Gary Kwong 25a529d83b Add test for bug 770952. 2012-07-20 19:10:15 -07:00
Luke Wagner 683c38d890 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 79ab421362 Bug 771202 - Add a PostTransplant nsIXPCScriptable hook. r=peterv 2012-07-13 10:55:14 +02:00
Terrence Cole b87dfc1293 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 7260f3fa4e Bug 775801 - LambdaIsGetElem should optimize based on JSOP_GETALIASEDVAR, not JSOP_NAME (r=dvander) 2012-07-20 16:17:24 -07:00
Luke Wagner 0ec984411b Backout 970b733bd01d (bug 775801) due to tp5n bustage 2012-07-20 15:35:59 -07:00
Ryan VanderMeulen be774885eb Merge m-c to inbound. 2012-07-20 17:37:53 -04:00
Luke Wagner e4618dcab6 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 c573675f63 No bug: class -> struct for compiler warning. r=dzbarsky 2012-07-20 15:58:18 -04:00
Olli Pettay 351f62a1d0 Bug 765947 - Preprocess the config file for generated events, r=khuey 2012-07-20 20:19:40 +03:00
Olli Pettay f4dd92a216 Bug 765766 - Convert more event interface implementations to be autogenerated, r=jst 2012-07-20 19:58:28 +03:00
Olli Pettay aa64d464e5 Bug 765163 - Implement code generator for simple DOM events, r=jst,khuey 2012-07-20 19:42:08 +03:00
Jonas Sicking c10568d0b9 Bug 774585 - Add GetDocShellCodebasePrincipal to nsIScriptSecurityManager. r=mounir 2012-07-20 00:06:24 -07:00
Mounir Lamouri 1887aa86ce Bug 758258 - part 5 - Add GetAppCodebasePrincipal and GetNoAppCodebasePrincipal to nsIScriptSecurityManager. r=mrbkap sr=sicking 2012-07-19 20:28:08 -07:00
Benjamin Peterson 39c0df43d5 Bug 761723 - Add test for chrome toSource. r=bz
--HG--
extra : rebase_source : e4e41b30d2bdb73c8f48dd01a1ad8b974604978c
2012-07-20 20:20:09 +02:00
Benjamin Peterson 0a424b0867 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 7986d9113d 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 dfea65352c 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 78a5439268 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 0bc926303e Backout 189816733310 for Android bustage. 2012-07-20 11:07:44 -07:00
Nicholas Nethercote 33012c97dc 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 ec5336df47 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 568aa16b69 Bug 774933 - Forgot to prepare GC before finishing it (r=terrence) 2012-07-19 17:15:32 -07:00
Bill McCloskey e2ca5d0559 Bug 758408 - Fix XML slot handling (r=Waldo) 2012-07-19 16:56:14 -07:00
Mounir Lamouri 84f86ababe 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 dfcda357cb Backed out changeset afc1cf222996 2012-07-19 15:22:32 -07:00
Jason Orendorff cfdc879344 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 1e1b73d49c 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 82b55a13fe 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 739a7738d1 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 14d700e6a7 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 2dbe336919 Bug 770854 - Put frontend code in the frontend namespace. r=njn. 2012-07-09 13:54:28 -05:00
Siddharth Agarwal f3842022cf 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 82bd7de2c9 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 61d9d40b3d Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar 2012-07-18 15:27:02 -07:00
Mounir Lamouri adfa6702cc Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking 2012-07-19 10:49:17 -07:00
Justin Lebar 488861592f 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 84c4cce3bb 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 76c82f3b74 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 acf9bca19f Bug 755145 - Define CCACHE_CPP2 when using ccache and Clang. r=glandium. 2012-07-19 09:20:46 -04:00
Makoto Kato bc868ccf9a Bug 771401 - Change PRTime in IDL to signed long long. r=bholley sr=bsmedberg 2012-07-19 18:53:30 +09:00
Ed Morley c2d155cb67 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 49af88332c 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 f293eab524 Bug 327244 (2/2) - Remove nsIScriptSecurityManager::CheckLoadURI(). r=sicking,jlebar 2012-07-18 15:27:02 -07:00
Mounir Lamouri 432f61b8f5 Bug 327244 (1/2) - Remove nsIScriptSecurityManager::CheckLoadURIStr(). r=sicking 2012-07-18 13:35:15 -07:00
Ryan VanderMeulen e3deb8235d Backout 61d052e202c8 (bug 647367) due to Windows bustage. 2012-07-18 22:33:41 -04:00
Nicholas Nethercote d99476d9dc 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 f731484e03 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 f480ac0a64 Bug 725702: support for of loops in Reflect.parse r=dherman 2012-07-18 18:14:15 -04:00
Luke Wagner 77c3bf67cc Bug 680562 - Remove CHECK_INTERRUPT_HANDLER (r=jimb) 2012-07-08 03:07:25 -07:00
Luke Wagner 7d3af7da1f Bug 761510 - rm JSFUN_NULL_CLOSURE (r=jimb) 2012-07-17 16:35:58 -07:00
Andrew McCreight de2697fb49 Bug 761831 - Be less ambitious in GetMemberInfo. r=bholley 2012-07-18 13:28:58 -07:00
Rafael Ávila de Espíndola b1d34774bf Bug 775134 - Remove extra ; r=ehsan.
--HG--
extra : rebase_source : 1d44663679e8f1944649d54608e5e6e6694e88c5
2012-07-18 12:15:47 -04:00
Ehsan Akhgari 0feb39d4e3 Merge mozilla-central into mozilla-inbound 2012-07-18 09:38:49 -04:00
Bobby Holley f3f5cd945c Bug 774245 - Remove unnecessary memset. r=mccr8 2012-07-18 14:56:54 +02:00
Brian Hackett 00392dc264 Treat known booleans like integers during bitops, bug 774812. r=jandem 2012-07-18 06:43:18 -06:00
Brian Hackett 7010399af9 Use distinct types and scripts for generic inner wrapper functions, bug 638794. r=jandem 2012-07-18 06:35:00 -06:00
Ed Morley fcaa2b9642 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-18 13:32:24 +01:00
Bobby Holley ed537cd79f Bug 774245 - Tests. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley bceafacc9d Bug 774245 - Reimplement LookupMethod. r=mrbkap 2012-07-18 13:51:28 +02:00
Bobby Holley 77a1ce457f 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 1ce355561c Bug 774245 - Factor out single-level checked unwrapping into a helper function. r=mrbkap 2012-07-18 13:51:28 +02:00
Ms2ger 2dcc5e0037 Bug 765464 - Part b: Add an exnType to JSErrorReport; r=Waldo 2012-07-18 12:36:08 +02:00
Ms2ger 9d077ec396 Bug 765464 - Part a: Introduce JS_ReportErrorNumberVA; r=Waldo 2012-07-18 12:36:08 +02:00
Rafael Ávila de Espíndola b891ab39a5 Bug 774671 - Fix mismatched declarations. r=luke. 2012-07-17 12:54:41 -04:00
Rafael Ávila de Espíndola 86ec4d2f17 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 091ebe183f Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky 2012-07-16 21:42:18 -04:00
Alex Crichton ce217e0120 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 a048e21bbe 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 0eec0469d7 Bug 774511 - Remove unused exception message. r=terrence 2012-07-16 20:38:47 -04:00
Nicholas Nethercote a3acb2e0a2 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 a6326a845f 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 072232236f 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 16e92dc7e1 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 8a115b769e 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 2fc4f42829 Bug 772688 - remove CallObject property ops and sea witch (r=bhackett) 2012-07-11 15:46:06 -07:00
Luke Wagner 6e6b4b2024 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 1eff2f94df Bug 769192 - Typed array accessors should not use JSPROP_READONLY. r=Waldo 2012-07-16 11:11:06 -07:00
Eddy Bruel 83a3df8a86 Bug 767059 - Commenting the parser; r=jorendorff 2012-07-17 20:16:28 +02:00
Rafael Ávila de Espíndola 5649f93152 Bug 774671 - Fix mismatched declarations. r=luke. 2012-07-17 12:54:41 -04:00
Nicolas Pierron d58294e02f Bug 772509 - Freeze a compilation output instead of a script. r=bhackett 2012-07-17 18:17:24 +02:00
Gabor Krizsanits 250d83c3f1 Bug 769273 - part4: avoiding innerization in NukeCrossCompartmentWrappers. r=bholley 2012-07-17 17:51:21 +02:00
Luke Wagner 08a191c58f Bug 773927 - Propagate closed-ness in CompExprTransplanter (r=dvander)
--HG--
extra : rebase_source : 85f484b705372b380832d94172024b0da20f19cf
2012-07-16 15:10:38 -07:00
Luke Wagner 209edc9144 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 b9e6b020aa 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 5f7ec13f73 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 68e5a1ecb2 Bug 770344 - Experiment implementing __proto__ as an accessor. r=luke 2012-06-27 18:35:56 -07:00
Gabor Krizsanits 2e645f31ef Bug 769273 - part3: Cu.nukeSandbox. r=bholley 2012-07-17 17:41:07 +02:00
Gabor Krizsanits 7a00ad07d8 Bug 769273 - part2: Refactoring NukeChromeCrossCompartmentWrappersForGlobal. r=bholley 2012-07-17 17:36:15 +02:00
Eddy Bruel 2aee9c5c34 Merge of bug 722555 with m-i 2012-07-17 16:26:37 +02:00
Eddy Bruel 7ce28421e3 bug 722555 - Add RGBA support to BMP encoder; r=jgilbert 2012-07-17 16:20:14 +02:00
Gabor Krizsanits 99ee1c2936 Bug 769273 - part1: Prep for refactoring NukeChromeCrossCompartmentWrappersForGlobal. r=bholley 2012-07-17 15:38:53 +02:00
Bobby Holley 84c45c113c 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 4a1d8fcdac 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 dce55acfc8 Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 1e868b37de87f94799500019cc13e7b8abe3c0f3
2012-07-05 20:35:08 -07:00
Luke Wagner 1299e77cea 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 3ec6cef3d2 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 ba908b4d16 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 1ebd9e063b Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett) 2012-07-11 20:55:19 -07:00
Jeff Walden 23527cee98 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 42d29bd0b1 Bug 773115 - Remove unneeded needStrictChecks() call. r=njn 2012-07-12 19:28:54 -04:00
Benjamin Peterson ada0483eb3 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 d63f0497f0 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 112a3cced0 Bug 773108 - Avoid overflowing blockid in CompExprTransplanter (r=dvander) 2012-07-11 22:07:25 -07:00
Brian Hackett f6b80832a6 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 6a0fed4780 Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 53c280967abc57f5a19e7dbc1dcfacc0603b202b
2012-07-05 20:35:08 -07:00
Luke Wagner 7f687bc16b 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 8a3f01ec9d Bug 767750 - rm JSScript::evalHashLink (r=njn)
--HG--
extra : rebase_source : 6cbf87dc2cbc23c60ee278b9fd3b64b0936517bc
2012-07-03 10:24:35 -07:00
Luke Wagner 2fc99ca715 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 91283a1af1 Bug 765956 - Set Bindings' parent eagerly (r=bhackett)
--HG--
extra : rebase_source : 4f907c3e3692199033813539b173189d760b4a7c
2012-06-20 08:57:29 -07:00
Luke Wagner 19afba869d Bug 771039 - assert some invariants in BindNameToSlot (r=dvander)
--HG--
extra : rebase_source : 9d0ba59ce4042bad88a7882b58b33f5f7b9ac19f
2012-07-05 20:29:24 -07:00
Luke Wagner 08d44ce477 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 015a070e3a 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 4dfabffcbe 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 05f5a7dc93 Bug 601277 - Better tests for document.domain. r=mrbkap 2012-07-12 10:10:15 +02:00
Bobby Holley 02ec635f9e Bug 655649 - Stop doing dynamic security checks for document.domain. r=mrbkap 2012-07-12 10:10:15 +02:00
Bobby Holley 7138534e8e 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 17143b0022 Bug 773153: don't use operand context when looking for line end. r=njn 2012-07-12 00:03:25 -07:00
Mike Hommey 125aebf06d Bug 763651 - Link the javascript engine against zlib. r=khuey 2012-07-12 08:30:59 +02:00
Luke Wagner 48cd407401 Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 73a1f673c0bcceb93dbe9e86acd8a99fbe3fb005
2012-07-05 20:35:08 -07:00
Luke Wagner 36eedc0d88 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 9c907e3113 Bug 767750 - rm JSScript::evalHashLink (r=njn)
--HG--
extra : rebase_source : 64101b0dbe1a8246e043637dca7469016362f62d
2012-07-03 10:24:35 -07:00
Luke Wagner 9e0785bc9d 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 45f9d72da4 Bug 765956 - Set Bindings' parent eagerly (r=bhackett)
--HG--
extra : rebase_source : 198757535745ab10f4bba192b163d38768e7260b
2012-06-20 08:57:29 -07:00
Luke Wagner de8ea2a8cc Bug 771039 - assert some invariants in BindNameToSlot (r=dvander)
--HG--
extra : rebase_source : fb7cbfa0cfcfd612c67cfc4961609ad424b59a1d
2012-07-05 20:29:24 -07:00
Luke Wagner eef470cd4c 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 5f55a5fba1 Back out 5eacd4fc78e4 (bug 772722) for mochitest-4 shutdown crashes 2012-07-11 22:23:56 -07:00
Eric Faust 0fbc520cb6 Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett) 2012-07-11 20:55:19 -07:00
Terrence Cole 5d06b81262 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 00703ab27b Bug 772078 - Remove JS entries even when stopping the SPS profiler. r=luke 2012-07-11 16:23:52 -07:00
Steve Fink b972ab6c21 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 2572507a99 Add more rooting for interpreter, TI and JIT, bug 772303. r=terrence 2012-07-11 16:22:41 -06:00
Steve Fink c14e7e682d 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 fae2338851 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 67da713cb4 Backed out changeset 9dc4e44365c4 2012-07-11 14:10:02 -07:00
Terrence Cole d5cdea2405 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 01bcc4ce8e 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 90aa687a21 Bug 771908 - Get rid of Wrapper::leave; r=bholley, sr=mrbkap 2012-07-11 14:01:10 +02:00
Benjamin Peterson 67b19a9db9 Bug 772691 - Disallow XML in function defaults. r=njn 2012-07-10 21:41:00 -04:00
Andrew McCreight 86de31fdd0 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 1cb6d6b979 Add more rooters, bug 772303. r=billm 2012-07-10 19:17:29 -06:00
Luke Wagner 5fd54c99e4 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 93e4660716 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 1d4dd913a2 Bug 772285 - rm JSPD_ARGUMENT/JSPD_VARIABLE (r=sfink)
--HG--
extra : rebase_source : 7be9ea3e5e90be9abd65f7d5268741e453cc717b
2012-07-10 15:34:12 -07:00
Jeff Walden 7844342da6 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 5f6e8b0bc5 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 48e541e0cf 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 3991a3ac77 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 a58d143272 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 306266285b Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-10 18:31:04 -04:00
Neil Rashbrook be77a8234e Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 22:01:08 +01:00
Ehsan Akhgari 85c97b4e67 Backout changeset 3a7ece100089 (bug 770182) because of make check failures 2012-07-10 15:41:43 -04:00
Neil Rashbrook 20b73453ed Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 19:51:53 +01:00
Takanori MATSUURA 630ffe33ff 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 78f1843bbe 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 e7ace18312 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:44 -04:00
Ehsan Akhgari eb4cda4663 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:07 -04:00
Benjamin Peterson 40d0081212 Bug 769072: retroactively apply strict mode to defaults. r=njn 2012-07-09 23:43:06 -07:00
Benjamin Peterson 87eaf6186e Bug 769072: increase tokenizer lookahead to 3. r=njn 2012-07-09 23:41:59 -07:00
Benjamin Peterson 7eb528add3 Bug 772012: create a CompileError class. r=njn 2012-07-09 23:41:56 -07:00
Chris Peterson 6114f48465 Bug 772210 - Fix warning: unused variable 'initFlushCount'. r=luke 2012-07-09 10:10:30 -07:00
Jim Blandy 3a444ea4ef 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 eb54043e38 Back out changeset ac870e3e94f3 due to red on m-i. 2012-07-09 14:39:50 -05:00
Jason Orendorff 7ecbb6e17a Back out changeset a88ce0cbdba6 due to red on m-i. 2012-07-09 14:38:49 -05:00
Jason Orendorff 379ed892bb 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 b5b0e7d36c Bug 770854 - Put frontend code in the frontend namespace. r=njn. 2012-07-09 13:54:28 -05:00
Nathan Froyd bfff055672 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 bf289c9915 Fix --enable-root-analysis builds break, no bug. r=billm 2012-07-09 09:58:22 -06:00
Mike Hommey 1edc7b1c90 Bug 771870 - Avoid js/src/Makefile being created with wrong topsrcdir. r=khuey 2012-07-09 15:47:26 +02:00
Luke Wagner f752478bbe Bug 771896 - rm LOAD_ATOM, LOAD_NAME, and 'atoms' from js::Interpret (r=waldo) 2012-07-08 04:31:04 -07:00
Luke Wagner d4879a4b25 Bug 770795 - add NullPtr and associated Handle constructor (r=billm) 2012-07-08 03:00:11 -07:00
Ryan VanderMeulen c069b0b9a3 Backout 2dd36c1cd662 (bug 771320) due to red. 2012-07-08 16:50:32 -04:00
Cameron Kaiser af804bc998 Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-08 16:33:41 -04:00
Bill McCloskey faee4cfd8b Bug 771720 - Improve GC data collection (r=terrence) 2012-07-08 10:24:32 -07:00
Eddy Bruel 4979d6969f Bug 703537: Rename AbstractWrapper to IndirectWrapper + adding comments; r=bholley 2012-07-08 19:04:14 +02:00
Luke Wagner 573a883e36 Remove unnecessary decls (mostly to trigger a clobbering rebuild) (no bug, r=me) 2012-07-07 21:26:14 -07:00
Alex Crichton 942c654064 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 4fb5d45af9 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 98c18737fb 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 b1883f8284 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 7ab11386e1 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 3761a269d7 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 ec2df69334 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 0fa5aa4bc3 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 621da71044 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 568141cba6 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 6edfe17c80 Bug 770850 - Reimplement DefnOrHeader as DefinitionList. r=njn. 2012-07-06 16:33:58 -05:00
Jason Orendorff 2e04a24519 Bug 770849 - Move StmtInfoBCE to BytecodeEmitter.cpp. r=njn. 2012-07-06 16:32:57 -05:00
Jason Orendorff fcfbcb240c 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 68c8b7d6aa 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 a941409da7 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 117136f8df 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