Commit Graph

18767 Commits

Author SHA1 Message Date
Luke Wagner
64c39528ee Bug 720753 - hoist scriptFilenameTable from JSCompartment into JSRuntime (r=igor) 2012-05-03 09:12:47 +02:00
Luke Wagner
f80844498f Bug 650353 - Implement Compartment-Per-Global in XPConnect. r=mrbkap 2012-05-03 09:10:12 +02:00
Luke Wagner
aa6d7ccb08 Bug 722775 - rm sameGroupAs. r=mrbkap 2012-05-03 09:10:10 +02:00
Kyle Huey
9d19220495 Bug 750183 - Don't nuke chrome->chrome cross-compartment wrappers. r=bholley 2012-05-03 09:10:08 +02:00
Landry Breuil
3238222b67 Bug 691898 - Use YARR regexp interpreter instead of PCRE on platforms where YARR JIT is not supported r=dmandelin
PCRE doesn't build anyway.
2012-05-03 08:41:30 +02:00
Mike Hommey
0c684fb324 Bug 561973 - Install js shell when running make install from js/src. r=jimb 2012-05-03 08:40:40 +02:00
Boris Zbarsky
32c7f6e634 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.

--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Ehsan Akhgari
1f46a45045 Merge mozilla-central into mozilla-inbound on a CLOSED TREE 2012-05-02 21:52:33 -04:00
Matt Brubeck
e3b7b8e191 Merge mozilla-central and mozilla-inbound 2012-05-02 15:58:11 -07:00
Bobby Holley
8bc0b852b9 Bug 750859 - Remove {Disable,Revert}Capability. r=bz, PGO helper on CLOSED TREE 2012-05-02 23:57:43 +02:00
Bobby Holley
37471e102e Bug 750859 - Remove (most of) SetCanEnableCapability. r=bz 2012-05-02 23:57:34 +02:00
Luke Wagner
3fd46e14d2 Bug 749617 - Optimize js::CloneScript (r=njn,a=not-libxul)
--HG--
extra : rebase_source : a18f454312960f048b0ef15a3b3b7d48f9ba49f8
2012-05-01 20:39:05 -07:00
Luke Wagner
f3f59663e8 Bug 749617 - improve getLocalNamesArray (r=waldo,a=not-libxul)
--HG--
extra : rebase_source : 184c3644798da9bca23da017f6f9a53e28711930
2012-05-01 15:45:01 -07:00
Luke Wagner
28cc1f08ca Bug 749617 - rm XDRState::codeString (r=njn,a=not-libxul)
--HG--
extra : rebase_source : de4e8eba904cd44a7b3d99edd85d841a359b83d5
2012-05-01 14:01:06 -07:00
Christian Holler
46073c5af4 Bug 749588 - Remove set_limits in jit_test.py, r=dmandelin
--HG--
extra : rebase_source : 98b9b32f10030f3605d88b904d749ac30b98c824
2012-04-30 22:01:29 -04:00
Ehsan Akhgari
1264cba321 Backout changeset b0200dab0ccc to revert the incorrect backout of an fx-team range (no bug)
This is the range I mistakenly backed out before:
http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=bc5fee76550b
2012-05-02 16:11:19 -04:00
Ehsan Akhgari
077dde163d Backout the latest merge from fx-team because of Ts regressions (no bug) 2012-05-02 15:37:08 -04:00
Tim Taubert
467f00c214 merge m-c to fx-team; a=js-only 2012-05-02 15:36:57 +02:00
Jim Blandy
af6268930f Bug 750368: Help 'make xpcshell-tests' find 'mozinfo' Python module. r=ted 2012-05-01 16:54:45 -07:00
Jeff Walden
a79459cb17 Fix some optimized-build warnings, neither yet reported as far as I know. No bug, r=themaid 2012-04-28 10:09:27 -07:00
Jeff Walden
ccee3f6a26 Fix build warnings introduced by bug 745057, bug 739380, and bug 746036 (warnings reported as bug 749951 and bug 749933, and in bug 746036 itself). r=chucktesta 2012-04-28 09:58:30 -07:00
Jeff Walden
b41816bb37 Remove an unnecessary jsdate.h #include from jsobjinlines.h, and add a new one to vm/GlobalObject.cpp, significantly reducing the number of files compiled when jsdate.h changes. No bug, r=sparky 2012-04-26 18:58:30 -07:00
Joey Armstrong
086dd72141 Bug 743243 - Add isTargetStem makefile function. r=ted 2012-04-28 11:16:12 -04:00
Gabor Krizsanits
4ab96d9a72 Bug 735280 - Part 3: Components object specific wrapper. r=bholley 2012-04-28 09:12:28 -04:00
Gabor Krizsanits
d3cb3d3e52 Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley 2012-04-28 09:12:27 -04:00
Gabor Krizsanits
e04309157b Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley 2012-04-28 09:12:27 -04:00
David Mandelin
a842c48399 No bug, update Handle documentation, r=NPOTB 2012-04-27 16:40:10 -07:00
Nicolas Pierron
396525c215 Bug 745057 part 2 - Rename FrameRegsIter to ScriptFrameIter. r=luke 2012-04-27 15:14:35 -07:00
Nicolas Pierron
fcda9df993 Bug 745057 part 1 - Abstract StackFrame in TypeObject::clearNewScript. r=luke 2012-04-27 15:14:34 -07:00
David Mandelin
0e160b9533 No bug, add header comments to Memory.h, r=none 2012-04-27 15:10:54 -07:00
Marty Rosenberg
92232bf982 Specify that the input to a gnu asm statemnt is also an output so gcc knows the value in the register gets clobbered (bug 749486, r=jbramley) 2012-04-27 14:58:03 -07:00
Eddy Bruel
8266662238 Bug 703537: Removing the fix trap r=jorendorff@mozilla.com 2012-04-27 17:09:32 -04:00
Justin Lebar
1cb8e5461d Bug 741652 - Followup: Remove incorrect comment. DONTBUILD 2012-04-27 13:46:45 -04:00
Peter Van der Beken
d4809c1dce Fix for bug 723465 (Make finalize for DOM list bindings use XPConnect).
--HG--
extra : rebase_source : e4df7d98765aaa2c600044d69f8714568f1d6109
2012-04-27 10:15:40 +02:00
Peter Van der Beken
7d387b6e1a 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.

--HG--
extra : rebase_source : b462393e7376fdb68f3b279ccd08b3ab25ac154a
2012-04-23 16:10:56 +02:00
Gijs Kruitbosch
ae54e2bc78 Bug 539095 - Expose high-res timers to web content (performance.now()). r=bz, sr=smaug
--HG--
extra : transplant_source : o%9F%061%D4%B5%7D%5C%FB%95%5D%16%27%DEKU%EC%21%3AR
2012-04-27 09:22:06 +02:00
Makoto Kato
04cb76033f Bug 747311 - autodetect android_toolchain on Android/x86. r=glandium 2012-04-27 14:45:38 +09:00
Phil Ringnalda
1f0b033b16 Merge m-c to m-i 2012-04-26 21:40:59 -07:00
Ed Morley
9da8d22547 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-04-26 13:46:02 +01:00
Kyle Huey
7f0a8a30db Bug 695480: Remove support for chrome code leaking DOM objects. r=jst,billm,bholley 2012-04-25 21:03:53 -07:00
Andrew McCreight
a9c6928a04 Bug 678615, part 2: remove FinishCycleCollection. r=smaug 2012-04-25 08:10:09 -07:00
Andrew McCreight
a5af270e47 Bug 678615 - remove ExplainLiveExpectedGarbage. r=smaug sr=peterv 2012-04-25 08:10:09 -07:00
Ed Morley
bf37d98c17 Backout afab1aaf6704 & 0405d42629fd (bug 747197), 0379525bbdca (bug 746262), 91b9cba098f8 (bug 745944), 8535dc5b590a (bug 741040) for win debug bustage 2012-04-25 09:54:34 +01:00
Mike Hommey
79542a4d88 Bug 747870 - Properly align XPCLazyCallContext::mData. r=bholley 2012-04-25 09:09:08 +02:00
Mike Hommey
3f4029bbf4 Bug 743241 - Remove OSARCH and OSTYPE defines from config.mk. r=ted 2012-04-25 09:01:10 +02:00
Mike Hommey
a7c8845018 Bug 508942 - Use Preprocessor.py filters in #defines and #includes. r=ted,r=pike
Original patch by Markus Stange.
2012-04-25 09:00:57 +02:00
Matt Brubeck
d5da39b00f Back out bug 730208 and bug 747543 because of xpcshell test failures 2012-04-24 20:47:16 -07:00
Ryan VanderMeulen
d485f6d4b3 Backout 0b170d1f5d10 (bug 735280) due to red. 2012-04-24 22:09:23 -04:00
Gabor Krizsanits
f58f1c2ecd Bug 735280 - Part 3: Components object specific wrapper. r=bholley 2012-04-24 21:48:02 -04:00
Gabor Krizsanits
8abef4d8c3 Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley 2012-04-24 21:48:01 -04:00
Gabor Krizsanits
e6e268bb09 Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley 2012-04-24 21:47:54 -04:00
Ehsan Akhgari
a992263c77 Merge mozilla-central into mozilla-inbound 2012-04-24 21:29:44 -04:00
Ehsan Akhgari
30412417b6 Merge the last green PGO changeset from birch to mozilla-central 2012-04-24 20:54:12 -04:00
Patrick Wong
30fd6e9e6a Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar 2012-04-24 14:43:00 -04:00
Lukas Blakk
d7f942d541 Merging in version bump NO BUG a=relman 2012-04-24 12:54:16 -04:00
Bobby Holley
90ecba456e Bug 743615 - Add the JS_{Read,Write}StructuredClone api. r=jorendorff 2012-04-24 12:58:07 +02:00
Ehsan Akhgari
dadbef66ac Merge mozilla-central into birch 2012-04-24 10:49:42 -04:00
Ehsan Akhgari
624b7c422e Merge from mozilla-central 2012-04-23 18:17:44 -04:00
Kyle Huey
a2478f9645 Bug 747245: Fix a silly weak reference assertion. r=bent a=mfinkle 2012-04-23 14:14:10 -07:00
Ehsan Akhgari
06098487ea Merge mozilla-central into birch 2012-04-22 16:10:35 -04:00
Mike Hommey
90af61ce13 Bug 749573 - Declare run-mozilla.sh and xpcshell as SDK_BINARY. r=ted 2012-04-30 08:05:34 +02:00
Mike Hommey
d278e617c4 Bug 748739 - Link stdc++compat as a static library, and always link it when STDCXX_COMPAT is enabled. r=ted
--HG--
rename : build/stdc++compat.cpp => build/unix/stdc++compat/stdc++compat.cpp
2012-04-30 08:03:59 +02:00
Nathan Froyd
9428e4b221 Bug 746228 - pack JSPropertyDescriptor better on 64-bit hosts; r=luke 2012-04-17 13:45:38 -04:00
Josh Matthews
6b9a8a5fe2 Bug 729204 - Make docshell privacy notifications work across multiple processes. r=bz 2012-04-19 20:13:20 -04:00
Ehsan Akhgari
3f561f1dad Merge mozilla-central into birch 2012-04-20 13:50:08 -04:00
Ehsan Akhgari
b0555ad014 Merge mozilla-central into birch 2012-04-19 10:03:36 -04:00
Myk Melez
fd7a6dd8f7 bug 746156 - isolate webapp runtime files into subdirectory of Firefox package; r=bsmedberg, a=akeybl 2012-04-19 00:39:52 -07:00
Terrence Cole
2fbb8b9a80 Bug 746356 - Ignore js files in the root test dir; r=dmandelin, a=blassey
We should not be skipping computing their relative name, we should be skipping
them completely.

--HG--
extra : rebase_source : 3d2477afa62861afd0599f6448daf59acae7c268
2012-04-18 17:47:54 -07:00
Boris Zbarsky
e6901a65af Bug 742168. Refer to experimental bindings, not Paris bindings, in the pref code, since it will only control a subset of the Paris bindings. r=peterv 2012-04-18 12:02:04 -04:00
Ginn Chen
686a05800d Bug 689916 testing for regexp crash on SPARC r=dmandelin a=test-only 2012-04-18 18:41:10 +08:00
Marco Bonardo
8fd56f3066 Merge last green PGO from inbound to central 2012-04-17 15:31:58 +02:00
Olli Pettay
d796636855 Bug 731875 - Geolocation doorhanger might cause a zombie compartment, GeoPositionOptions part, r=dougt 2012-04-16 22:08:48 +03:00
Luke Wagner
5ea21f7058 Bug 745236 - fix f.apply(arguments) optimization bug 2 (r=bhackett,a=lsblakk)
--HG--
extra : rebase_source : cda098b51a867bf32f1486bc5b9170c3c747af9a
2012-04-13 09:55:13 -07:00
Luke Wagner
96f6d99742 Bug 745236 - fix f.apply(arguments) optimization bug 1 (r=bhackett,a=lsblakk)
--HG--
extra : rebase_source : 2cb0944ca1beaa25f38d47180d73eb1cbaf0d285
2012-04-13 09:55:12 -07:00
Nicholas Nethercote
c96eedd250 Bug 739512: Patch 4: move JS{Const,Object,TryNote}Array into the |js| namespace. r=sfink. 2012-04-10 23:51:12 -07:00
Nicholas Nethercote
eb58a727b0 Bug 739512: Patch 10: add JSScripts::hasConsts() et al. r=dvander. 2012-04-10 23:51:10 -07:00
Jeff Walden
528084de61 Bug 739380 - Start to implement a [[HasProperty]] hook, per the proto-climbing refactoring, for elements. r=bhackett 2012-04-10 16:33:44 -07:00
Nicholas Nethercote
08dc2dae6b Bug 744311 (part 1) - Preliminary whitespace and code order changes. r=jlebar.
--HG--
extra : rebase_source : f700733d8aa1aed1ae1f9206b4ee9063f9a03341
2012-04-09 22:52:33 -07:00
Boris Zbarsky
7e0db46628 Bug 748237. Only do the c++11 stuff for clang here, since otherwise we get scary warnings with gcc on android. r=luke 2012-04-26 00:43:00 -04:00
Boris Zbarsky
e2ed0fe94a Bug 747815. Use const strings for arguments in DOM bindings. r=peterv 2012-04-26 00:42:03 -04:00
Ryan VanderMeulen
3d3d4922c1 Backout a0b3af4ac9f5 (bug 735280) due to Android jsreftest orange. 2012-04-25 21:59:36 -04:00
Luke Wagner
423a1ad7a5 Bug 748212 - Tolerate n layers of wrapping around a RegExp (r=bholley)
--HG--
extra : rebase_source : 1f53df440672630bf309bef3af40b313fa8bf4f4
2012-04-25 18:18:46 -07:00
Gabor Krizsanits
0f38ab4f31 Bug 735280 - Part 3: Components object specific wrapper. r=bholley 2012-04-25 20:12:33 -04:00
Gabor Krizsanits
07fb83f53a Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley 2012-04-25 20:12:33 -04:00
Gabor Krizsanits
a9ded93717 Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley 2012-04-25 20:12:33 -04:00
Steve Fink
ab02777c4d Bug 748109 - realpath -> abspath. r=terrence
--HG--
extra : rebase_source : 72dffb16b58fec41babde5aba3160e8da67782d1
2012-04-25 15:02:23 -07:00
Jeff Walden
977628bb34 Bug 739380 - Start to implement the [[SetP]] hook from the proto-climbing refactoring. r=bhackett 2012-04-09 16:03:23 -07:00
Jeff Walden
665121450d Bug 739380 - Start to implement the default [[GetP]] hook from the proto-climbing refactoring for the various element types. r=bhackett 2012-04-10 16:33:44 -07:00
Jeff Walden
f4b90c866f Bug 747197 - abs works on ints, fabs works on doubles, grasshopper. Smallest bugfix ever. r=terrence 2012-04-26 17:19:04 -07:00
Nicholas Nethercote
809407a18d Bug 745068 - Minor front-end cleanups. r=jorendorff.
--HG--
extra : rebase_source : 29e7d06bc87f19c0d0a8fe239af9219e6c255032
2012-04-16 15:35:31 +10:00
Brian Hackett
831bd99f78 Stop precisely tracking arguments and locals beyond a 1000 variable threshold, bug 735974. r=dvander 2012-04-15 21:38:53 -07:00
Brian Hackett
a21f8c5a5d Check type compatibility when coercing RootedVar to Handle, bug 745361. r=luke 2012-04-15 21:19:44 -07:00
Justin Lebar
5766598758 Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn 2012-04-16 12:20:54 +10:00
Justin Lebar
b391903730 Back out changeset 21f34fdd64a3 (bug 741378) because it breaks telemetry. r=me 2012-04-16 11:34:00 +10:00
Justin Lebar
dbb7a3bbac Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn 2012-04-16 11:17:26 +10:00
Bobby Holley
1037d6c217 Bug 745483 - Don't assert that TI is enabled when the pref is disabled. r=jdm 2012-04-15 17:54:03 -07:00
Bobby Holley
b0e37aa6d8 Bug 743843 - Introduce the options object for Components.Exception. r=Ms2ger,sr=mrbkap 2012-04-15 17:51:37 -07:00
Bobby Holley
50e6634137 Bug 743843 - Ditch the confusing switch-based parsing and add some comments. r=Ms2ger 2012-04-15 17:51:36 -07:00
Bobby Holley
1e648b7690 Bug 743843 - Factor individual argument parsers into helper methods. r=Ms2ger 2012-04-15 17:51:36 -07:00
Bobby Holley
d8267ab1e1 Bug 743843 - Factor out Exception argument parsing into a helper class. r=Ms2ger
For ease of reviewing, note that there are only 2 changes to the big switch statement:
1 - return ThrowAndFail(...) -> return false.
2 - eMsgBytes -> messageBytes
2012-04-15 17:51:36 -07:00