Commit Graph

18427 Commits

Author SHA1 Message Date
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
Luke Wagner
147cb7b0ee Fix semicolon warning in js/src (no bug, r=me)
--HG--
extra : rebase_source : 698de99375bcba9438a73460db3e04082d7ca0a9
2012-04-04 18:23:21 -07:00
Bobby Holley
c8ac59fb33 Bug 737251 - Reuse the throwing code in jsobj.cpp for jsproxy.cpp. r=luke 2012-04-04 17:26:21 -07:00
Bobby Holley
12f76c4989 Bug 737245 - Typed Arrays should handle cross-compartment wrappers; part3. r=luke 2012-04-05 09:39:41 +10:00
Bobby Holley
c26ed100c4 Bug 737245 - Typed Arrays should handle cross-compartment wrappers; part2. r=luke 2012-04-05 09:39:25 +10:00
Bobby Holley
239bf91898 Bug 737245 - Typed Arrays should handle cross-compartment wrappers; part1. r=luke 2012-04-05 09:38:47 +10: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
Daniel Holbert
5d8052de2c 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
2025e88b08 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
aabce5f94f 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
1442822e5c 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
3a859b7a76 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
ba5600fd65 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
bdbd325a96 Back out 6c435c96f10a (bug 736591) for Mac jsreftest orange 2012-04-03 21:03:30 -07:00
Terrence Cole
19334ee834 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
48d5674e72 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
3ccd955228 Bug 739659 - Try duck typing in js_ReportUncaughtException. r=luke 2012-04-03 20:08:28 -04:00
David Rajchenbach-Teller
4adff58654 Bug 684017 - Implement ctypes.errno and ctypes.winLastError. r=jorendorff 2012-04-02 15:38:20 +02:00
Jeff Walden
6dc08a3146 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
e71332b560 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
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
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
Terrence Cole
fe3125c03a Bug 741005 - Remove XPCNativeWrapperMap; r=bholley
This appears to be completely unused.
2012-03-30 15:56:35 -07:00
Matt Brubeck
678b0cfe89 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
411ed5eb97 Bug 739380 - Begin to implement element definition. r=bhackett
--HG--
extra : rebase_source : 25fff9bc91610457feaaf45faa8d42dfec162384
2012-03-21 13:32:55 -07:00
Jeff Walden
8eaf33d504 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
8771612c40 Merge mozilla-central to mozilla-inbound 2012-04-02 11:03:29 -07:00
Matt Brubeck
6c039eb840 Merge last green changeset from inbound to mozilla-central 2012-04-02 10:41:37 -07:00
Nicholas Nethercote
ae72c736fe Bug 739512 - Patch 6: improving naming of PCCount-related stuff. r=bhackett. 2012-04-01 13:24:56 -07:00
Nicholas Nethercote
85df966f34 Bug 739512 - Patch 5: remove JITScript::arityCheckEntry. r=dvander. 2012-04-01 13:24:52 -07:00
Kyle Huey
69f68d7938 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
651aa424a1 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-31 22:41:59 +01:00
Olli Pettay
f198500ad9 Bug 641821, MutationObserver, r=sicking
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Ed Morley
52040c2148 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
82633948f4 Bug 644608 - Implement full dependencies for expandlibs. r=ted 2012-03-31 09:24:39 +02:00
Peter Van der Beken
09128a75d3 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
519515c457 Backout 00f2e1e9adc2 after mq malfunction. 2012-03-29 17:52:45 -07:00
Terrence Cole
315c82925b Bug 738868 - Switch JSObject2JSObjectMap to new HashTable; r=mrbkap 2012-03-27 09:55:55 -07:00
Peter Van der Beken
8944dee246 Fix for bug 740064 (Refactor XrayWrapper). r=bholley.
--HG--
extra : rebase_source : 60559d74b10761a794d83a0a63dc60a92b2d48eb
2012-03-27 16:31:37 -07:00
Nicholas Nethercote
0180fca1d0 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
12ae3214a2 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
dbae036f37 Bug 740469 - JSNative->JSFunction fixup should happen in DefinePropertyById, not DefineProperty. r=luke 2012-03-29 13:34:36 -07:00
Dão Gottwald
4356f0181f Backed out changeset 6cb9adc02c12 2012-03-29 20:35:49 +02:00
Masatoshi Kimura
0b90477166 Bug 739659 - Try duck typing in js_ReportUncaughtException. r=luke 2012-03-29 19:49:21 +02:00
Doug Turner
71e90e76a3 Bug 739760 - doubles and floats can't be used in dictionaries. r=khuey 2012-03-29 00:05:44 -07:00