Commit Graph

60 Commits

Author SHA1 Message Date
Christian Holler
16b6b8eb6c Bug 779560 - Revert worker stack limit in ASan builds to default state. r=bent 2012-08-28 13:39:32 +02:00
Rafael Ávila de Espíndola
ec153c3b0e Bug 784895 - Remove unnecessary token pasting. r=mrbkap. 2012-08-23 19:57:51 -04:00
Ehsan Akhgari
243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ms2ger
26fa23777d Bug 743573 - Fix a number of build warnings in dom/; r=mounir 2012-08-07 09:06:29 +02:00
Aryeh Gregor
8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Bill McCloskey
a4d863d341 Bug 770759 - Add mutable handles (r=bhackett) 2012-07-04 11:12:16 -07:00
David Rajchenbach-Teller
9eca609f25 Bug 750178 - Expose OS.Constants as an xpcom component. r=khuey 2012-07-04 08:30:58 -04:00
David Zbarsky
9050aef271 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Jeff Walden
dc3cce2d6d Bug 757908 - Remove JSRESOLVE_DECLARING. r=dmandelin 2012-05-23 10:22:46 -07:00
David Rajchenbach-Teller
3928c50d3e Bug 763848 - Expose the path to libxul at OS.Constants.Sys. r=khuey 2012-06-28 21:56:30 -04:00
Ryan VanderMeulen
66bc0d319b Backout b97cdd8008a0, bc305a9ac000, and 03549c72043d due to Android browser-chrome orange. 2012-06-30 11:09:26 -04:00
Jeff Walden
3d133e4c1f Bug 757908 - Remove JSRESOLVE_DECLARING. r=dmandelin 2012-05-23 10:22:46 -07:00
Honza Bambas
1415b7fdef Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium 2012-06-12 19:06:20 +02:00
Jason Orendorff
a7c7c697dd Bug 753542 - Add prefs to enable/disable E4X (javascript.options.xml.content and .chrome). r=bsmedberg, sr=jst. 2012-06-06 21:52:14 -05:00
Jason Orendorff
97c660a9e4 Bug 753885 - Part 2: Add JSOPTION_ALLOW_XML, making E4X support optional per-context. r=Waldo. 2012-05-30 15:05:59 -05:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian Hackett
b4c002a912 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 15:03:45 -07:00
Brian Hackett
4f8baecc9e Backed out changeset 5fc7462dd394 for android orange. 2012-05-19 11:52:55 -07:00
Brian Hackett
b7d2500332 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 09:48:09 -07:00
Benjamin Smedberg
2b55dddfca Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar 2012-05-18 13:30:49 -04:00
Ms2ger
b8c940e642 Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley 2012-05-05 11:00:05 +02:00
Boris Zbarsky
830492af6c Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom.  General files not specific to an interface are also exported into
mozilla/dom.

In terms of namespaces, most things now live in mozilla::dom.  Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).

IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum.  We then typedef
EnumFooValues::valuelist to EnumFoo.  That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.

The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.

The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
2012-05-03 00:35:38 -04:00
Peter Van der Beken
70167db26f Fix for bug 741267 (UserScript's XMLHttpRequest is undefined in 20120401 nightly).
Pass two objects when creating a DOM interface object, the global used to cache
the DOM interface objects and a receiver object on which the named property is
that points to the DOM interface object.
2012-04-23 16:10:56 +02:00
Ms2ger
2cba70143c Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley 2012-04-14 15:05:19 +02:00
Ms2ger
54f1f6b78d Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes. 2012-04-14 17:52:34 +02:00
Ms2ger
6622f9ead6 Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley 2012-04-14 15:05:19 +02:00
Ms2ger
78bc77e39f Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley 2012-04-14 15:05:01 +02:00
Bill McCloskey
38062ea556 Bug 742570 - Remove the compartment option for gczeal (r=igor) 2012-04-03 11:41:56 -07:00
Peter Van der Beken
6233c150b8 Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. 2012-03-30 21:42:20 -07:00
Christian Holler
05d3b224aa Bug 727445 - Add --enable-address-sanitizer for ASan specific workarounds. Add --enable-llvm-hacks to pass CFLAGS to NSS and omit -Wl,-z,defs for shared libs. r=khuey,kaie 2012-03-07 15:11:15 -08:00
David Mandelin
f0690b22d1 Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
Chris Leary
cd8032094d Bug 700822: Randomize JIT VirtualAlloc location on win32, sans XP. (r=dmandelin) 2012-02-13 21:36:11 -08:00
Kyle Huey
282cb7bb00 Bug 725848: ProxyCompleteRunnable must always run, even when clearing the event queue. r=bent 2012-02-09 20:54:47 -08:00
Igor Bukanov
18eb7777e9 bug 723021 - moving native stack limits into runtime. r=luke 2012-01-31 23:28:22 +01:00
Ben Turner
8ee989c91b Bug 718100 - 'Web workers should GC more'. r=mrbkap. 2012-01-17 12:05:25 -08:00
Ben Turner
01a3e5cf81 Bug 715756: Workers: Enable TI and allow JIT hardening to be disabled. r=sicking. 2012-01-05 17:51:21 -08:00
Ben Turner
8a04d58443 Bug 711388 - 'WORKER_RUNTIME_HEAPSIZE too small for big PDFs in PDF.JS'. r=sicking. 2012-01-04 11:11:32 -08:00
Ben Turner
02167d741a Bug 713728 - 'Workers: Need a shutdown observer topic'. r=mrbkap. 2011-12-29 13:28:09 -05:00
Nathan Froyd
01a317a0fe Bug 709205 - use GetObserverService in dom,docshell; r=bz 2011-12-09 14:35:37 -05:00
Ben Turner
0c2ba68ea6 Bug 687929 - 'null cx Crash [@ JS_BeginRequest] with dom workers', r=sicking. 2011-12-08 02:52:53 -08:00
Blake Kaplan
0a5d56105e Bug 698621 - Part 1: Implement cross-thread dispatching for web workers. r=bent 2011-12-05 15:58:27 +08:00
Ryan VanderMeulen
340b13b1c1 Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander 2011-11-28 14:57:31 -08:00
David Anderson
1092a7d910 Remove browser prefs for the tracer (bug 698201 part 7, r+sr=gal). 2011-11-22 17:41:43 -05:00
Mounir Lamouri
aece4e1a7e Bug 695287 - Move Navigator declaration and definition outside of nsGlobalWindow.{h,cpp}. r=Ms2ger
This patch is creating Navigator.h and Navigator.cpp and makes Navigator part
of the mozilla::dom namespace.
2011-11-02 14:44:16 +01:00
Jonathan Watt
276bdfa251 Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg. 2011-10-28 19:33:28 +01:00
Ehsan Akhgari
478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
7d613942b0 Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones 2011-10-10 22:50:08 -07:00
Jeff Walden
c5e5f873d1 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
946f2ae0e3 Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones 2011-10-10 22:50:08 -07:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00