Commit Graph

18470 Commits

Author SHA1 Message Date
Kyle Huey
902e133eab Refix bug 741248 harder. r=me 2012-04-09 17:41:22 -07:00
Matt Brubeck
4ee87a2a2f Merge last green changeset from inbound to mozilla-central 2012-04-09 10:05:48 -07:00
Takanori MATSUURA
4a483c2e4c Bug 743433 - Remove .orig files which were accidentally added by bug 680246. r=khuey 2012-04-07 08:48:23 -04:00
Igor Bukanov
d3018bc6d8 Bug 737364 - part 2 - replace JSContext with JSRuntime in the GC-related API
This part replaces the JSContext *cx argument in most GC-related API
with JSRuntime *rt. When possible, the patch removes the code to obtain
a temporary cx just to run the GC.

The patch also removes JS_DestroyContextMaybeGC. That function is not
used in FF code base and its implementation is broken. It requires that
the context has an entered compartment when it is destroyed, which in
turns implies a missing leave compartment call.
2012-03-28 12:13:30 +02:00
Kyle Huey
c06dcdfb58 Fix Bug 743376. r=bz 2012-04-06 17:44:50 -07:00
Mike Hommey
061c97a943 Backout bug 644608 for subtly breaking layout/media build 2012-04-06 13:57:24 +02:00
Mike Hommey
9fd9d15ea4 Bug 644608 - Implement full dependencies for expandlibs. r=ted 2012-03-31 09:24:39 +02:00
Mike Hommey
24eb677c51 Bug 741287 - Make expandlibs_gen.py error out when given a missing file. r=ted 2012-04-06 10:16:25 +02:00
Terrence Cole
fb3b904143 Bug 730452 - Trigger post barriers on moveDenseArrayElements; r=billm
We cannot do this per-element because it is too slow.  Instead we have a special
storebuffer entry for this case so we can do all work at gc time.

--HG--
extra : rebase_source : 7e48184d38b442b2bdba38553cf93f9d629debf1
2012-04-05 17:56:53 -07:00
Jim Blandy
c61eb2aa08 Bug 733461: Implement the 'query' parameter of Debugger.prototype.findScripts. r=jorendorff 2012-04-05 17:10:44 -07:00
Bill McCloskey
54a6aeb374 Bug 739899 - Fix clang warning (rs=terrence) 2012-04-05 17:05:34 -07:00
Bill McCloskey
a9a7de26a1 Bug 739899 - Fix orange 2012-04-05 16:50:40 -07:00
Terrence Cole
08a207686f no bug: Warning fix at predeclaration of AutoCompartment; r=jorendorff 2012-04-05 16:31:26 -07:00
Bill McCloskey
6deca8df52 Bug 742570 - Improve shell control of incremental GC (r=igor) 2012-04-04 15:07:36 -07:00
Bill McCloskey
6090417a56 Bug 742570 - Improve GC testing functions (r=igor) 2012-04-03 14:07:38 -07:00
Bill McCloskey
714dde6b82 Bug 742570 - Change API for compartment GCs (r=igor) 2012-04-03 12:23:11 -07:00
Bill McCloskey
210b823250 Bug 742570 - Remove the compartment option for gczeal (r=igor) 2012-04-03 11:41:56 -07:00
Bill McCloskey
2200b651e3 Bug 739899 - Eliminate the distinction between full and compartment GCs (r=igor) 2012-04-02 18:29:11 -07:00
Luke Wagner
d88d81a4df Bug 743034 - Fix script proto exec. r=bholley 2012-04-05 15:44:55 -07:00
Gabor Krizsanits
74922f0040 Bug 733035 - postMessage support for sandboxes. r=khuey 2012-04-05 18:33:20 -04:00
Bobby Holley
56658e2cea Bug 739825 - Push principals when entering compartments in structured clone. r=mrbkap 2012-04-05 14:02:34 -07:00
Igor Bukanov
f16ca3a2a1 Bug 737364 - part 1 - stop using the cx in the GC implementation
This part removes JSContext::gcBackgroundFree, moves all mark-related
cleanup code to run right after the marking is done for clear mark/sweep
separation and eliminates all JSContext references in the GC
implementation. That allowed to remove a wait for the bakground
finalization to finish in js_DestroyContext. As a followup for the bug
737365 the patch also replaces in few cases the JSContext argument with
FreeOp in infallible code that only free/destroy things.
2012-03-25 09:48:45 +02:00
Jason Orendorff
f36484c27a Fix "Assertion failure: srcArgs.callee().toFunction()->native() == native || srcArgs.callee().toFunction()->native() == js_generic_native_method_dispatcher, at jswrapper.cpp:788." Bug 743101, r=djvj. 2012-04-06 16:58:43 -05:00
Jason Orendorff
96b77212a3 Debugger.Environment.getVariable and setVariable. Bug 692984, r=jimb.
--HG--
extra : rebase_source : fb68abbd27b3ca0809b20d99411ac797b337d227
2012-04-06 16:48:38 -05:00
Jason Orendorff
2743146e55 Comment class js::FreeOp. No bug, no_r=me.
--HG--
extra : rebase_source : cd664de1c5aeca650b904f3ffc780c237c7044f3
2012-04-04 12:03:14 -05:00
Terrence Cole
e1c00af8a2 Bug 737258 - Provide the real thing location to the marker callback; r=billm
In debug builds only, this adds a new void* to the JSTracer struct so that users
that would have to lie about their address in order to mark safely can still
provide the real location to users that care.

--HG--
extra : rebase_source : 3e64c975a97f6f22b94e1bab522a18eb37ceb906
2012-04-05 16:10:53 -07:00
Terrence Cole
93868c449a Bug 743047 - Make the script atoms HeapPointers; r=billm
These are only initialized and then read from, but we need to barrier the init
so that we will have a remembered set entry for atoms that are in the nursery.

--HG--
extra : rebase_source : 9a5a1eb3e0c76d4624a978627ff901d336b0c540
2012-04-05 15:54:57 -07:00
Takanori MATSUURA
ad43cf956c Bug 737006 - Use internal ply only if needed. r=khuey 2012-04-06 14:06:52 -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
Jim Blandy
1c14d48cab Bug 741615: Replace Debugger.prototype.wrap with Debugger.Object.prototype.makeDebuggeeValue. r=jorendorff 2012-04-05 12:30:35 -07:00
Bobby Holley
b36c773a23 Bug 739796 - Make same-origin cross-compartment Location object access go through the LW in the host compartment. r=gal
--HG--
extra : rebase_source : d5e07d4628bfd5990d127b4316219a43c4e0de88
2012-04-05 12:21:12 -07:00
Bobby Holley
b1e579a168 Bug 739796 - Make js_TransplantObjectWithWrapper and GetSameCompartmentSecurityWrapper play nicely together. r=mrbkap
--HG--
extra : rebase_source : c132069987b4cae121dfcf1b19ffacaee845df1e
2012-04-05 12:21:12 -07:00
Bobby Holley
6192344bd1 Bug 739796 - Move same-compartment security wrapping into a method on XPCWrappedNative. r=gal
--HG--
extra : rebase_source : 48c61d699d27d390be2bcfb006f12264345f9d49
2012-04-05 12:21:12 -07:00
Daniel Holbert
1d7de02883 Bug 742788: Fix two 'warning: comparison of unsigned expression >= 0 is always true' in js. r=luke 2012-04-05 10:56:22 -07:00
Ehsan Akhgari
ac25c078a1 Merge mozilla-inbound and mozilla-central 2012-04-05 13:41:51 -04:00
Ehsan Akhgari
47a6da0be5 Merge the last green PGO changeset from mozilla-inbound to mozilla-central 2012-04-05 13:40:53 -04:00
Boris Zbarsky
284e65c088 Bug 738356. Add JSAPI for doing the equivalent of Function.prototype.bind. r=jorendorff 2012-04-05 13:14:52 -04:00
Mike Hommey
8707a0e9c7 Bug 738176 - Completely disable jemalloc when it's supposed to be disabled on OSX, and cleanup exposed APIs. r=jlebar,r=khuey 2012-04-05 09:20:53 +02:00
Nicholas Nethercote
80c5f174fb Bug 742163 - Clean up JSScript::jitArityCheck{Normal,Ctor}. r=dvander. 2012-04-05 00:02:02 -07:00
Chris Cooper
fb51fe56fa Merge build-system to mozilla-central 2012-04-04 14:02:07 -04:00
Joey Armstrong
3bf09bb5ab Bug 738404 - Makefile.in edits to use threadsafe mkdir (bug 680246) - r=ted 2012-04-03 16:08:16 -04:00
Joey Armstrong
72717d870d Bug 735638 - add utility function checkIfEmpty - r=khuey 2012-04-03 13:34:04 -04:00
Joey Armstrong
1556f96978 Bug 734121 - helper macros for writing make user functions - r=khuey 2012-04-03 13:32:46 -04:00
Phil Ringnalda
87bb926ef4 Merge m-c to b-s 2012-04-03 08:27:38 -07:00
Nicholas Nethercote
2ded0a7107 Backout 2f9b6bdf63f7 (bug 739512) due to a bad V8 regression. r=me. 2012-04-02 18:02:54 -07:00
Bill McCloskey
da1df5ad06 Bug 716142 - Multi-compartment GC (r=igor,jorendorff) 2012-04-02 17:02:25 -07:00
Joey Armstrong
f9d62546f1 Bug 680246 - add missing files from import - r=khuey 2012-04-02 15:28:37 -04:00
Joey Armstrong
aa2d8dc13c Bug 680246 - add a makefile library rule to support thread safe directory creation - r=khuey 2012-04-02 13:06:06 -04:00
David Mandelin
c2dbf26676 Bug 737780: diagnostic for crashes in GetNameFromBytecode, r=luke 2012-04-02 11:31:37 -07:00
Terrence Cole
0031d321a6 Bug 549683 - Remove final JSDHashTable users from SpiderMonkey; r=Waldo
We still have to continue building and linking jsdhash.cpp for XPConnect, but
this kills the remaining users in SpiderMonkey proper.
2012-03-30 10:33:20 -07:00