27565 Commits

Author SHA1 Message Date
Bobby Holley
be7e8fcc3d Bug 737245 - Typed Arrays should handle cross-compartment wrappers; part1. r=luke 2012-04-05 09:38:47 +10:00
Doug Turner
96a0f81035 Backout of fd4b5485c24f (Bug 704147) 2012-04-04 14:31:09 -07:00
Josh Matthews
846b9a06a6 Bug 704147 - Make ctypes function pointers callable via call and apply. r=bholley 2012-02-14 16:26:05 -05:00
Daniel Holbert
274d9dd552 Bug 742438: Fix straggling bool-vs-NULL comparison after HashSet::put return-type change. r=terrence 2012-04-04 11:18:18 -07:00
Igor Bukanov
ddd76bb22d bug 737365 - followup to fix !JS_THREADSAFE build. r=none
--HG--
extra : rebase_source : 949296487fa23ae991adc29a9ecf66d79d7fbef0
2012-04-04 18:05:51 +02:00
Igor Bukanov
18841022a6 Bug 737365 - stop using the cx during finalization, part 3.
This part removes the usage of JSContext* during the finalization and
when sweeping the compartments. That required to change quite a few
methods in type inference, jit and debugger implementation to take a
FreeOp rather than JSContext pointer. In turn that also often required
to replace cx->compartment usage with extracting the compartment from
the passed objects or pass the compartment explicitly. On the plus side
it allowed to remove fallible compartment enter code in methods that
could be called during finalization.
2012-03-20 11:22:05 +01:00
Igor Bukanov
ac58c404f7 Bug 737365 - stop using the cx during finalization, part 2.
This parts removes the usage of JSContext* during the finalization in
Web Workers and JS shells implementations. With this chnages JSContext * is only
accessed during the finalization in the SpiderMonkey implementation.
2012-03-19 15:34:58 +01:00
Igor Bukanov
2d04a4fe3d Bug 737365 - stop using the cx during finalization, part 1.
This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
2012-03-19 15:34:55 +01:00
Nicholas Nethercote
6ca9f23930 Bug 711895 - Tweak the warning options used for GCC builds (3rd attempt). r=waldo,derf,khuey,mhommey.
--HG--
extra : rebase_source : 20540c9b838ee3be6cb0847c1b90fdc3bd44059d
2012-03-21 22:21:16 -07:00
Phil Ringnalda
a892cfdc01 Back out 6c435c96f10a (bug 736591) for Mac jsreftest orange 2012-04-03 21:03:30 -07:00
Terrence Cole
09d50a45a9 Bug 742114 - Remove duplicate marking of TypeObject::interpretedFunction; r=billm
This looks like a merge conflict that I didn't resolve correctly.  I also took
the liberty of re-ordering the marking here to match what's in MarkChildren and
the declaration ordering of TypeObject.

--HG--
extra : rebase_source : 33beeb5ea33f8238f6d4d17c223d29acdbfa9457
2012-04-03 18:33:41 -07:00
Jeff Walden
4973b55562 Bug 736591 - Ensure that StringBuffer never allocates more memory than is needed to represent a maximum-sized string. Thanks for the technique/idea go to Luke. r=luke
--HG--
extra : rebase_source : 3c35b6ac2541425812c57bc76374a43c3a554bbe
2012-04-03 17:18:46 -07:00
Masatoshi Kimura
932c8abcc5 Bug 739659 - Try duck typing in js_ReportUncaughtException. r=luke 2012-04-03 20:08:28 -04:00
David Rajchenbach-Teller
c324c85c93 Bug 684017 - Implement ctypes.errno and ctypes.winLastError. r=jorendorff 2012-04-02 15:38:20 +02:00
Jeff Walden
3d76ad5939 Remove an unnecessary declaration that seems to be causing link errors only on Windows with some compilers. Followup to bug 739380, r=bustage 2012-04-03 09:10:22 -07:00
Justin Lebar
31cebc2b87 Bug 738624 - Add ghost windows to about:compartments. r=njn
--HG--
extra : rebase_source : c16cdfc4c06b363f54f1d0f37bb006cf977b079a
2012-04-02 22:28:05 -04:00
Nicholas Nethercote
6abc96ea39 Backout 2f9b6bdf63f7 (bug 739512) due to a bad V8 regression. r=me. 2012-04-02 18:02:54 -07:00
Bill McCloskey
b4eb5cc658 Bug 716142 - Multi-compartment GC (r=igor,jorendorff) 2012-04-02 17:02:25 -07:00
David Mandelin
f6c2a9431d Bug 737780: diagnostic for crashes in GetNameFromBytecode, r=luke 2012-04-02 11:31:37 -07:00
Terrence Cole
c20ba53402 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
Terrence Cole
b0a5057ce6 Bug 741005 - Remove XPCNativeWrapperMap; r=bholley
This appears to be completely unused.
2012-03-30 15:56:35 -07:00
Matt Brubeck
6113f7efa8 Back out bug 738011, bug 738624, and bug 737857 because of WinXP debug reftest log errors
--HG--
extra : rebase_source : 965c755f6416e2ca102b38633fe7a2c7267e956e
2012-04-02 12:44:31 -07:00
Jeff Walden
75ebe79331 Bug 739380 - Begin to implement element definition. r=bhackett
--HG--
extra : rebase_source : 25fff9bc91610457feaaf45faa8d42dfec162384
2012-03-21 13:32:55 -07:00
Jeff Walden
eb5f294a2e Bug 739380 - Define an ElementsHeader base class for all element subtypes, and define meaningful subclasses through which to use an ElementsHeader. r=bhackett
--HG--
extra : rebase_source : adb6feb2278c3130ec890d0e38b7bf1dd9e7e1e1
2012-03-21 13:32:55 -07:00
Matt Brubeck
21ac41db6c Merge mozilla-central to mozilla-inbound 2012-04-02 11:03:29 -07:00
Matt Brubeck
2c4e2f7b62 Merge last green changeset from inbound to mozilla-central 2012-04-02 10:41:37 -07:00
Nicholas Nethercote
e56d4795ad Bug 739512 - Patch 6: improving naming of PCCount-related stuff. r=bhackett. 2012-04-01 13:24:56 -07:00
Nicholas Nethercote
01213c2a06 Bug 739512 - Patch 5: remove JITScript::arityCheckEntry. r=dvander. 2012-04-01 13:24:52 -07:00
Kyle Huey
30907f7e40 Bug 722671: Components.utils.getWeakReference should get a reference to the underlying native object if possible. r=mrbkap 2012-04-01 19:21:13 -07:00
Ed Morley
18b9148c4f Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-31 22:41:59 +01:00
Olli Pettay
c7a649ab35 Bug 641821, MutationObserver, r=sicking
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Ed Morley
d4b48e7211 Backout 82c315c0bd14 (bug 644608) for suspected SHARED_LIBRARY_LIBS_DEPS issues on a CLOSED TREE 2012-03-31 13:18:29 +01:00
Mike Hommey
8965672b38 Bug 644608 - Implement full dependencies for expandlibs. r=ted 2012-03-31 09:24:39 +02:00
Peter Van der Beken
ed510d3506 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.
--HG--
rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
2012-03-30 21:42:20 -07:00
Terrence Cole
2c0bc63017 Backout 00f2e1e9adc2 after mq malfunction. 2012-03-29 17:52:45 -07:00
Terrence Cole
2f9cd7725c Bug 738868 - Switch JSObject2JSObjectMap to new HashTable; r=mrbkap 2012-03-27 09:55:55 -07:00
Peter Van der Beken
e462957b02 Fix for bug 740064 (Refactor XrayWrapper). r=bholley.
--HG--
extra : rebase_source : 60559d74b10761a794d83a0a63dc60a92b2d48eb
2012-03-27 16:31:37 -07:00
Nicholas Nethercote
0a5d67243e Bug 739512 - Patch 2: space-optimize representation of closedArgs and closedVars. r=dvander.
--HG--
extra : rebase_source : 8738fae7581265ba464899c9a7b6c53c118740b8
2012-03-25 17:07:33 -07:00
Terrence Cole
7885c4776d Bug 549683 - Remove final JSDHashTable users from SpiderMonkey; r=?
This does not build jsdhash.cpp for SpiderMonkey, but does keep it in tree for
the remaining users in xpconnect.

--HG--
extra : rebase_source : 5780e1e024a247d619a548541ad84cbeeba6c75b
2012-03-23 16:00:01 -07:00
Bobby Holley
83879a9142 Bug 740469 - JSNative->JSFunction fixup should happen in DefinePropertyById, not DefineProperty. r=luke 2012-03-29 13:34:36 -07:00
Dão Gottwald
a13dabd86a Backed out changeset 6cb9adc02c12 2012-03-29 20:35:49 +02:00
Masatoshi Kimura
160e1c0fcc Bug 739659 - Try duck typing in js_ReportUncaughtException. r=luke 2012-03-29 19:49:21 +02:00
Doug Turner
b47e1fac99 Bug 739760 - doubles and floats can't be used in dictionaries. r=khuey 2012-03-29 00:05:44 -07:00
Luke Wagner
2704caef24 Bug 733793 - Check for null return from JS_ObjectToOuterObject (r=bholley)
--HG--
extra : rebase_source : 2b7fbb3a72f641785de7f7707e9b6e8013b4eb6d
2012-03-28 16:15:38 -07:00
Andrew McCreight
980ef286d3 Bug 738700 - unmark wrapped gray objects from nsISupports. r=smaug 2012-03-28 21:51:46 -07:00
Andrew McCreight
76cceac62b Bug 712735 - Don't add JS holders with no gray children as XPConnect roots. r=smaug 2012-03-28 21:23:01 -07:00
Nicholas Nethercote
9f37b0f3fb Bug 739512 - Patch 1: remove JSScript::cookie[12] and reorder JSScript members. r=wccloskey.
--HG--
extra : rebase_source : 825a78faae71c837fca3a3b9c9bee3a1d1ba85ab
2012-03-22 18:26:34 -07:00
Jim Blandy
5f05f3a842 Bug 740542: Implement Debugger.prototype.wrap. r=jorendorff 2012-03-31 23:26:37 -07:00
Boris Zbarsky
2c1acbadbb Bug 739541. Add faster versions of JS_ValueToNumber and JS_ValueToECMAInt32. r=dmandelin 2012-03-28 16:35:21 -07:00
Ben Turner
201db1d3e0 Bug 737911 - 'Shrink bits for CACHED_PROTO_KEYs and add two new JSClass flags for the new DOM bindings'. r=lukew. 2012-03-28 14:50:31 -07:00