Commit Graph

452 Commits

Author SHA1 Message Date
James Cowgill
d183653ab3 Bug 1130434- xpcom: add support for mips n64 abi. r=froydnj 2015-02-06 08:28:00 -05:00
L. David Baron
ea80ec9aaa Bug 680547 bustage fix: Make #pragmas be #ifndef __clang__. No review. 2015-02-10 16:24:54 +11:00
L. David Baron
501b6ec2b7 Bug 680547 - Compile Linux 64-bit NS_InvokeByIndex with -mno-avx to allow compiling with -march=native on new hardware, or similar -march flags. r=froydnj
As explained in bug 1111355, having avx enabled appears to change the
alignment behavior of alloca (apparently adding an extra 16 bytes) of
padding/alignment (and using 32-byte alignment instead of 16-byte).  The
suggestion of using __bultin_alloca_with_align in bug 1111355 didn't fix
the problem, so this seems to be the best available workaround, given
that this code, which should perhaps better be written in assembly, is
written in C++.

Interestingly, this is NOT fixed by #pragma GCC target ("arch=x86-64").
(I determined the (undocumented) name for the default -march value on
x86_64 from the gcc source code (gcc/config/i386/i386.c, function
ix86_option_override_internal, code that sets opts->x_ix86_arch_string .)
I confirmed that this sets the same macros based on the empty diff
between the output of 'gcc -E -dM -x c++ /dev/null' and 'gcc -E -dM -x
c++ -march=x86-64 /dev/null', which was not an empty diff for other
-march values (e.g., k8).)

I confirmed that the push_options and pop_options actually work by
putting the push/pop pair around a different (earlier) function, and
testing that this did not fix the bug (with the pop_options before
NS_InvokeByIndex).

See the gcc documentation at:
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Function-Specific-Option-Pragmas.html
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Function-Attributes.html
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/i386-and-x86-64-Options.html

--HG--
extra : transplant_source : %DA%7CJ4H%DE%80%15%84%0D%116%85Q%9A%F9%2C%D1v%16
2015-02-10 16:04:46 +11:00
Masatoshi Kimura
06e7f14f32 Bug 1128273 - Stop using |typedef enum class tag_nsresult { ... } nsresult;| trick. r=froydnj 2015-02-02 23:44:25 +09:00
Ehsan Akhgari
fe8780146e Bug 1123003 - Clarify the ownership of xptiInterfaceInfo pointers in xptiprivate.h; r=froydnj 2015-01-19 12:37:07 -05:00
Trevor Saunders
3f83c69ae4 bug 1077549 - remove useless gcc version checks r=glandium 2015-01-15 21:30:05 -05:00
Ehsan Akhgari
4f80dee4e8 Bug 1117035 - Mark virtual overridden functions as MOZ_OVERRIDE in XPCOM; r=froydnj 2015-01-05 11:25:41 -05:00
Landry Breuil
463718ee0c Bug 1113374 followup: test for equality against 'GNU' instead of against a single-entry tuple r=froydnj 2014-12-22 21:45:41 +01:00
Thomas Klausner
0963688221 Bug 1113374 : like done in bug 971897, use xpct{stubs,invoke}_x86_64 from linux/unix on NetBSD/amd64 r=froydnj 2014-12-22 21:16:48 +01:00
Chris Peterson
c582a636ed Bug 1110031 - Part 1: Mark more directories as FAIL_ON_WARNINGS. r=gps 2014-12-10 22:56:31 -08:00
Chris Peterson
d3acb03f9f Bug 1107814 - Part 1: Mark more directories as FAIL_ON_WARNINGS for all compilers. r=gps 2014-12-04 16:24:03 -08:00
Jacob Bramley
781b8cbbc6 Bug 1050258 - ARM hard-float XPCOM: correct argument passing. r=dougc 2014-11-07 19:44:08 +11:00
Mike Hommey
d667f4bb59 Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.

Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.

Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Landry Breuil
fd74ccfd81 Bug 971897: Use xpct{stubs,invoke}_x86_64 from linux/unix on OpenBSD/amd64 for consistency r=bsmedberg
This fixes the download panel issue, and brings us revs 727721e5d8ac,
844b142d8111 and 236989b3a807 as a bonus. Remove the unmaintained
OpenBSD/amd64 specific versions.
2014-10-26 17:13:19 +01:00
Jon Morton
0f167a14a3 Bug 979835: Port BoxObject and its subclasses to WebIDL. r=khuey sr=bz
--HG--
rename : layout/xul/nsIPopupBoxObject.idl => dom/webidl/PopupBoxObject.webidl
rename : layout/xul/tree/nsITreeBoxObject.idl => dom/webidl/TreeBoxObject.webidl
rename : layout/xul/nsBoxObject.cpp => layout/xul/BoxObject.cpp
rename : layout/xul/nsBoxObject.h => layout/xul/BoxObject.h
rename : layout/xul/nsListBoxObject.cpp => layout/xul/ListBoxObject.cpp
rename : layout/xul/nsMenuBoxObject.cpp => layout/xul/MenuBoxObject.cpp
rename : layout/xul/nsPopupBoxObject.cpp => layout/xul/PopupBoxObject.cpp
2014-10-14 13:15:21 -07:00
Andrew Osmond
758e28dde4 Bug 994912 - Add support for event-based notifications to media streams. r=roc, r=bz 2014-10-03 04:18:00 -04:00
Carsten "Tomcat" Book
c6259b5db7 Backed out changeset 23b18c4d6f6a (bug 994912) for suspecion of causing m3 test failures 2014-09-25 12:44:50 +02:00
Andrew Osmond
df9a7f17e9 Bug 994912 - Add support for event-based notifications to media streams. r=roc,bz 2014-09-24 12:47:00 +02:00
Benjamin Smedberg
dcb398c24f Bug 1069518 - XPTCall should refuse to implement interfaces with [notxpcom] methods, r=froydnj/bholley 2014-09-22 15:10:31 -04:00
David Zbarsky
92ca9fab1a Bug 1042654: Remove nsITouchEventReceiver r=bz 2014-09-05 23:32:49 -04:00
Mike Hommey
6258dd8523 Bug 1059090 - Don't require SOURCES to be set for CPP_UNIT_TESTS and SIMPLE_PROGRAMS. r=mshal 2014-09-03 14:16:37 +09:00
Mike Hommey
fc99c53ae5 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Andrew McCreight
e22baa3a1e Bug 1052626, part 2 - Report the total size of nsXPCWrappedJS. r=bholley,froydnj 2014-08-25 12:34:00 -07:00
Andrea Marchesini
733f01834b Bug 1055467 - Rename MozNamedAttrMap to NamedNodeMap, r=smaug
--HG--
rename : dom/webidl/MozNamedAttrMap.webidl => dom/webidl/NamedNodeMap.webidl
2014-08-25 10:25:34 +01:00
Bobby Holley
7c7704aa07 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
7c3098f03b Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
e5da39b71b Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Nicholas Nethercote
8c60d14a1a Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Mike Hommey
0f4c5d9244 Bug 1047267 - Move remaining OS_LIBS and EXTRA_LIBS to moz.build. r=gps
* * *
Bug 1047267 - To fold with "Move remaining OS_LIBS and EXTRA_LIBS to moz.build"
2014-08-07 14:21:03 +09:00
Ehsan Akhgari
1030a03b0a Bug 1047781 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-08-05 09:21:27 -04:00
Ehsan Akhgari
38ec6af068 Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-07-29 20:43:56 -04:00
Mike Hommey
ad9b49263a Bug 1041936 part 2 - Directly use the static library "xul" to link into "xul-gtest" instead of having an intermediate library "xul" used by "xul-shared" and "xul-gtest". r=gps 2014-07-23 13:33:09 +09:00
Mike Hommey
71623acdd6 Bug 1036894 part 9 - Replace all EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS with EXTRA_LIBS, OS_LIBS or OS_LDFLAGS, appropriately. r=gps
OS_LIBS for libraries that are not part of the gecko tree, EXTRA_LIBS for
libraries, such as NSPR, that are in the tree, but are not handled by
moz.build just yet. Those EXTRA_LIBS may also come from a system library.
However, in cases where the expanded variables are always empty for the
in-tree case, OS_LIBS is used (as for, e.g. MOZ_ZLIB_LIBS). OS_LDFLAGS is
used exclusively for non-library linker flags.

Always pass EXTRA_LIBS before OS_LIBS on linker command lines.

Forbid EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS in Makefiles.
2014-07-23 13:31:02 +09:00
Mike Hommey
e5c43ef995 Bug 1036894 part 8 - Move most in-tree library linkage information to moz.build, as USE_LIBS. r=gps 2014-07-23 13:30:52 +09:00
Mike Hommey
d10b15b035 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Kyle Huey
3076eaa115 Bug 1034304: Remove nsIDOMHTMLAudio/VideoElement. r=smaug 2014-07-12 19:20:42 -07:00
Bobby Holley
31b9417307 Bug 1036777 - Stop relying on useAllocator for 'in' string classes in ConvertIndependentParam. r=neil 2014-07-11 19:21:22 -07:00
zhoubcfan@163.com
f232c9cb4a Bug 950323 follow-up - Correct the logic in the moz.build file; r=bsmedberg 2014-07-03 23:10:50 -04:00
Benoit Jacob
1f73b3fe2e Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
Nathan Froyd
29804ebd2e Bug 1030399 - remove semi-spammy warning from xptiInterfaceInfo.cpp; r=bholley
This warning isn't that helpful anymore, because it means that we don't
have interface info from an .xpt.  For DOM interfaces, that's OK,
because we'll have shimmed interface info instead.  So just remove the
warnings.
2014-06-26 09:55:27 -04:00
Kyle Huey
cdd97d70f7 Bug 1031051: Part 16 - Migrate Style*ChangeEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:04 -07:00
Kyle Huey
31c6ce833c Bug 1031051: Part 15 - Migrate Speech events to the WebIDL code generator. r=smaug 2014-06-30 16:02:03 -07:00
Kyle Huey
3af11dcb4d Bug 1031051: Part 14 - Migrate DOMTransactionEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:03 -07:00
Kyle Huey
b4bc359b16 Bug 1031051: Part 12 - Migrate DeviceStorageChangeEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:03 -07:00
Kyle Huey
f41994a0fc Bug 1031051: Part 11 - Migrate DeviceOrientationEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:03 -07:00
Kyle Huey
862c18ba87 Bug 1031051: Part 10 - Migrate MozSettingsEvent and MozApplicationEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:02 -07:00
Kyle Huey
48ddb6d666 Bug 1031051: Part 9 - Migrate RecordErrorEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:02 -07:00
Kyle Huey
bf1fd04304 Bug 1031051: Part 8 - Migrate SmartCardEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:02 -07:00
Kyle Huey
e2e1171cb1 Bug 1031051: Part 7 - Migrate PageTransitionEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:02 -07:00
Kyle Huey
1658cc0c55 Bug 1031051: Part 6 - Migrate PopStateEvent to the WebIDL code generator. r=smaug 2014-06-30 16:02:02 -07:00