Commit Graph

122 Commits

Author SHA1 Message Date
Kyle Huey
e0afefe1c8 Bug 809666: Define ctypes and perf properties on the 'this' object, not the global, when sharing globals. r=mrbkap
--HG--
extra : rebase_source : d9f8329b7f60b3e72aea241aa97b59aa04531c66
2012-11-13 08:57:46 -08:00
Kyle Huey
0d165065cd Backout bug 809666. 2012-11-13 10:27:06 -08:00
Kyle Huey
71c6452b2a Bug 809666: Define ctypes and perf properties on the 'this' object, not the global, when sharing globals. r=mrbkap 2012-11-13 08:57:46 -08:00
Kyle Huey
45adfbf2c8 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
e6e6deb486 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
7457de64ad Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
a7bb0ec116 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
48f773482c Bug 798491: Followup bustage fix. 2012-10-30 09:10:08 -07:00
Kyle Huey
dd0cfd935a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
David Rajchenbach-Teller
e5dd8c1f5e Bug 795505 - Additional checks for feeding typed arrays to js-ctypes. r=jorendorff 2012-10-06 21:53:23 -04:00
David Rajchenbach-Teller
c5de104711 Bug 795505 - Feed typed arrays to js-ctypes. r=jorendorff 2012-10-06 21:53:23 -04:00
David Rajchenbach-Teller
e8ce3f8165 Bug 797326 - Get the right line number printed in test_jsctypes.js.in. r=jorendorff 2012-10-03 18:19:23 -04:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
8c296bbcd4 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
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ehsan Akhgari
635cf2dfd2 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (more toolkit parts); blanket-r=bzbarsky 2012-07-18 12:12:55 -04:00
Nathan Froyd
5b30baa4c3 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
David Rajchenbach-Teller
35d32fe331 Bug 757469 - Implement ctypes.off_t. r=jorendorff 2012-05-26 09:33:52 -04:00
David Rajchenbach-Teller
5cd9da169f Bug 732936 - ImplicitConvert can convert an ArrayBuffer to C array or pointer. r=jorendorff 2012-05-15 14:59:21 +02:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
David Rajchenbach-Teller
b240532e4d Bug 748745 - Supporting readString in a CDataFinalizer. r=jorendorff 2012-05-07 08:59:28 +02:00
Saurabh Anand
0246222c0f Bug 732262 - Add toSource() and toString() methods to js-ctypes ABI objects. r=jorendorff. 2012-05-15 16:48:54 +05:30
David Rajchenbach-Teller
f2667912e1 Bug 748776 - Record a more precise type in CDataFinalizer::Construct. r=jorendorff 2012-05-09 10:33:30 +02:00
David Rajchenbach-Teller
24faa7feba Bug 751505 - Better memory cleanup during the test. r=jorendorff,yoric 2012-05-03 17:14:33 +02:00
Ed Morley
88036a7927 Bug 751505 - Temporarily disable test_finalizer_shouldaccept.js for permaorange after CPG landed; rs=yoric 2012-05-03 14:34:10 +01:00
David Rajchenbach-Teller
c212827e5a Bug 742384 - Have CDataFinalizer.dispose return a value. r=jorendorff 2012-04-13 23:56:03 +02:00
David Rajchenbach-Teller
70a8930e77 Bug 720771 - Companion testsuite. r=jorendorff 2012-04-16 21:25:35 +02:00
Matt Brubeck
3d87d59e95 Bug 745233 - Back out 33e485d0e23b, 26eb08593f89, ce72679ffb95, 10b783e85c1e (bug 720771, bug 742384) because of Linux64 PGO crashes 2012-04-13 10:40:27 -07:00
David Rajchenbach-Teller
ded8664d8f Bug 742384 - CDataFinalizer.dispose now returns a value. r=jorendorff 2012-04-11 14:58:44 +02:00
David Rajchenbach-Teller
2b2b8b1212 Bug 720771 - Companion testsuite. r=jorendorff 2012-04-11 17:55:21 -04:00
Ryan VanderMeulen
c759f1cd21 Backout the tests from bug 720771 due to Linux64 red. 2012-04-11 08:35:07 -04:00
David Rajchenbach-Teller
108eebc31e Bug 742384 - CDataFinalizer.dispose now returns a value. r=jorendorff 2012-04-11 10:46:19 +02:00
David Rajchenbach-Teller
bdebd4719d Bug 720771 - Companion testsuite. r=jorendorff 2012-04-11 07:58:12 -04:00
Josh Matthews
6bc17c8afa Bug 704147 - Make ctypes function pointers callable via call and apply. r=bholley 2012-02-14 16:26:05 -05:00
Doug Turner
a6b9a548ae Backout of fd4b5485c24f (Bug 704147) 2012-04-04 14:31:09 -07:00
Josh Matthews
b44189ebe7 Bug 704147 - Make ctypes function pointers callable via call and apply. r=bholley 2012-02-14 16:26:05 -05:00
David Rajchenbach-Teller
4adff58654 Bug 684017 - Implement ctypes.errno and ctypes.winLastError. r=jorendorff 2012-04-02 15:38:20 +02:00
Bobby Holley
b765de2375 Bug 729589 - Fix js-ctypes tests for compartment-per-global. r=jorendorff 2012-03-27 11:33:25 -07:00
Jim Blandy
75fb742bf1 Bug 723806: Make JavaScript CTypes print function types correctly. r=bholley 2012-02-14 13:18:16 -08:00
Igor Bukanov
748c9f34a7 bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
--HG--
extra : rebase_source : b78519db2ff008eb5143676d2db47935f0e89f45
2012-02-05 21:07:23 +01:00
Igor Bukanov
38fe4ed717 backout merge for bug 724310. r=irc 2012-02-09 21:28:22 +01:00
Igor Bukanov
e4e3433d0c bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
--HG--
extra : rebase_source : c461dfc0e0e0462ab262cc01c2a771d3bb0971cc
2012-02-05 21:07:23 +01:00
Panagiotis Koutsourakis
583eb38038 Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
Files named Makefile.in containing the expression

DIRS += <foo>
or
DIRS = <foo>

inside the conditional expression

ifdef ENABLE_TESTS
...
endif

are changed to

TEST_DIRS += tests

outside any conditional expression.

The files

./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in

contain the string

ifdef ENABLE_TESTS

but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Mike Hommey
9168cb8046 Bug 714029 - Avoid jsctypes-test dependency on the xpcom glue. r=bsmedberg 2012-01-10 09:10:53 +01:00
Mike Hommey
9146b4ce42 Backout 057e7ead186e (bug 714029) because of failure to build on Windows. 2012-01-10 10:51:55 +01:00
Mike Hommey
1bf148fb54 Bug 714029 - Avoid jsctypes-test dependency on the xpcom glue. r=bsmedberg 2012-01-10 09:10:53 +01:00
Josh Matthews
cb25455930 Bug 696450 - Add increment/decrement methods to PointerType jsctype objects. r=bobbyholley 2011-11-08 16:06:19 -05:00
Bobby Holley
26cc5f0c55 Bug 705019 - Allow access to {C,Pointer,Struct,Array,Function}Type.prototype.prototype. r=jorendorff 2011-11-29 18:29:19 -08:00
Bobby Holley
373b613af3 Bug 705019 - Make toSource() and toString() work on sCTypeProtoClass and sCDataProtoClass objects. r=jorendorff 2011-11-29 18:26:12 -08:00
Ed Morley
7bc582f20f Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00