Commit Graph

19781 Commits

Author SHA1 Message Date
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
Jeff Walden
2a28626ad6 Bug 773850 - Refactor method guarding to be able to work for methods that must be able to accept a |this| which is a proxy. r=luke
--HG--
extra : rebase_source : 1a015ffd3faa9fa6c82426c94058bce026602f8c
2012-07-03 17:44:22 -07:00
Nick Fitzgerald
fcaab16926 Bug 774464: Don't delete the sourceMapMap just because the 'putNew' operation failed. r=jimb 2012-07-16 15:09:55 -07:00
Jim Blandy
4a4b34e518 (No bug): js/src/frontend/Parser.cpp:Parser::comprehensionTail returns pointers, not bools. r=luke in IRC 2012-07-16 13:41:03 -07:00
Rafael Ávila de Espíndola
fcc958e22d Bug 774120 - #ifdef fields only used in debug builds. r=terrence. 2012-07-16 16:39:31 -04:00
Kannan Vijayan
9ed44eabd2 Bug 773731 - Fix UseNewType pattern matching. (r=bhackett) 2012-07-16 15:36:12 -04:00
Kannan Vijayan
45a006939c Backed out changeset 8837ebfb3045 - wrong bug number. 2012-07-16 15:33:51 -04:00
Alex Crichton
738b267315 Bug 774343 - Move the JS shell SPS assertion so the browser can use it. r=luke 2012-07-16 10:55:25 -07:00
Ed Morley
489adf7c8d Backout 29104ecddc3a (bug 769464) for crashtest assertions 2012-07-16 18:49:14 +01:00
Ed Morley
db49714a0c Merge mozilla-central to mozilla-inbound 2012-07-16 18:32:39 +01:00
Gabor Krizsanits
7d370fc235 Bug 771081 - part3: Rename WaiveXrayWrapperWrapper. r=gal 2012-07-16 19:28:17 +02:00
Lukas Blakk
1ebacabfe4 Merging in version bump NO BUG 2012-07-16 10:08:20 -07:00
Gabor Krizsanits
0908f47e39 Bug 771081 - part2: Rename CrossOriginWrapper files. r=gal
--HG--
rename : js/xpconnect/wrappers/CrossOriginWrapper.cpp => js/xpconnect/wrappers/WaiveXrayWrapper.cpp
rename : js/xpconnect/wrappers/CrossOriginWrapper.h => js/xpconnect/wrappers/WaiveXrayWrapper.h
2012-07-16 19:22:51 +02:00
Gabor Krizsanits
5061b6289d Bug 771081 - part1: Rename CrossOriginWrapper. r=gal 2012-07-16 17:53:16 +02:00
Peter Van der Beken
0d3a0c3732 Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
--HG--
extra : rebase_source : 1bdf15c06e0e1e89a877a0f74300bf212de5b60e
2012-07-16 16:52:59 +02:00
Kannan Vijayan
8872a77475 Bug 77373 - Fix UseNewType pattern matching. (r=bhackett) 2012-07-16 10:36:48 -04:00
Neil Rashbrook
6fa3527dcc Bug 772303 Followup to simplify SkipRoot constructor so that it doesn't confuse VC2008 r=bhackett 2012-07-16 14:06:49 +01:00
Bill McCloskey
2ffb100c36 Bug 774104 - Add a read barrier when rooting JS objects (r=mccr8) 2012-07-15 14:37:15 -07:00
Bill McCloskey
d8a20cf52b Bug 774104 - Purge allocating arenas when incremental GC starts (r=mccr8) 2012-07-15 14:37:04 -07:00
Bill McCloskey
3c70386ae5 Bug 774104 - Avoid leaks during JS_TransplantObject (r=mccr8) 2012-07-15 14:36:58 -07:00
Ryan VanderMeulen
7faaa873f9 Merge m-c to inbound. 2012-07-14 08:48:58 -04:00
Olli Pettay
7db906c14c Bug 773803 - Remove nsIScriptObjectOwner, r=bz
--HG--
rename : dom/base/nsIScriptObjectOwner.h => dom/base/nsIScriptEventHandlerOwner.h
2012-07-14 01:23:59 +03:00
Ryan VanderMeulen
bf06c46235 Backout 3923d008386d (bug 753158) due to various regressions. 2012-07-13 23:48:08 -04:00
Jeff Walden
584f52cb27 Fix another obvious typo to make MutableHandle<Value> a friend of ValueOperations<MutableHandle<Value>> and MutableValueOperations<MutableHandle<Value>>. Followup to bug 773049, r=sparky
--HG--
extra : rebase_source : af69f1a76d4bd73fc9c87f778e4bd509242c78ea
2012-07-13 12:04:33 -07:00
Brian Hackett
a5275e577d Fix rooting hazard in eval cache, no bug. r=billm 2012-07-13 14:03:52 -06:00
Brian Hackett
c92b296ee8 Add more rooting for --enable-rootanalysis tbpl builds, bug 772303. r=terrence 2012-07-13 10:13:50 -06:00
Jan de Mooij
2991840b79 Bug 773586 - Initialize PICGenInfo::pc and clean up ICs a bit. r=bhackett 2012-07-13 15:32:25 +02:00
Bobby Holley
1a88142535 Bug 763343 - Handle classinfo singletons in cross-compartment wrapping. r=peterv 2012-07-13 14:33:25 +02:00
Bobby Holley
36dc1f0877 Bug 771202 - Add a PostTransplant nsIXPCScriptable hook. r=peterv 2012-07-13 10:55:14 +02:00