Commit Graph

214 Commits

Author SHA1 Message Date
Brian Hackett
1573459c2b Rename RootedVar to Rooted, bug 756823. r=billm 2012-05-24 16:05:18 -07:00
Bill McCloskey
c401b0a671 Bug 757667 - Clean up Proxy tracing (r=terrence) 2012-05-23 16:31:26 -07:00
Bill McCloskey
8eb4a8104a Backout bug 757667 for bustage 2012-05-23 17:14:26 -07:00
Bill McCloskey
7ef82bb0e8 Bug 757667 - Clean up Proxy tracing (r=terrence) 2012-05-23 16:31:26 -07:00
Bill McCloskey
f841660ab2 Bug 754989 - Nuke dead cross-compartment wrappers during brain transplant (r=bholley) 2012-05-22 14:54:08 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian Hackett
c07eaa0e3e Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 15:03:45 -07:00
Tom Schuster
55fd8ff0a0 Bug 673499 - remove some trailing whitespace from js/src. r=jorendorff 2012-05-19 21:56:17 +02:00
Brian Hackett
9ae1966596 Backed out changeset 5fc7462dd394 for android orange. 2012-05-19 11:52:55 -07:00
Brian Hackett
a863456144 Use handles in API object hooks where possible, bug 750733. r=billm 2012-05-19 09:48:09 -07:00
Eddy Bruel
36436d48e3 Bug 703537 - Add IndirectProxyhandler; r=bholley,jorendorff 2012-05-17 13:19:37 +02:00
Steve Fink
881a106d75 Bug 741041 - Use UnwrapObjectChecked, and ensure ArrayBufferViews and their buffers are in the same compartment. r=luke
--HG--
extra : rebase_source : c1b7957772e03ac2819d4ffb70f52fb46014648e
2012-03-28 14:43:02 -07:00
Jason Orendorff
f87eefb80b Bug 752092 - Support building SpiderMonkey without JS_HAS_XML_SUPPORT. r=terrence. 2012-05-14 18:53:30 -05:00
Bobby Holley
7b6eb3c939 Bug 754044 - Alter the semantics of UnwrapObject{,Checked} to check for outer windows on the initial wrapper passed. r=mrbkap
This distinction is the only reason for writing the code in this confusing manner. And I don't think we need it now that we have stopAtOuter.
2012-05-14 23:30:07 +02:00
Brian Hackett
3e6dfb0349 Disallow non-canonical jsids, bug 751331. r=luke 2012-05-06 13:45:19 -07:00
Jeff Walden
bc60b350a5 Bug 750907 - Move the marking declarations out of jsgcmark.h and into a header with minimal dependencies. r=billm
--HG--
rename : js/src/jsgcmark.cpp => js/src/gc/Marking.cpp
rename : js/src/jsgcmark.h => js/src/gc/Marking.h
extra : rebase_source : 3eb96a33102f0b76438dbb79ecb46e817bc1b767
2012-05-01 14:30:18 -07:00
Matt Brubeck
6772a57f47 Back out 682bf201edde, ef35ba222ac8, and 6a20cf61289d (bug 750907, bug 751003, bug 751377) because of build failure on a CLOSED TREE
--HG--
rename : js/src/gc/Marking.cpp => js/src/jsgcmark.cpp
rename : js/src/gc/Marking.h => js/src/jsgcmark.h
2012-05-03 14:55:52 -07:00
Jeff Walden
2044564243 Bug 750907 - Move the marking declarations out of jsgcmark.h and into a header with minimal dependencies. r=billm
--HG--
rename : js/src/jsgcmark.cpp => js/src/gc/Marking.cpp
rename : js/src/jsgcmark.h => js/src/gc/Marking.h
extra : rebase_source : 2829c44da4316ceb6af0f4627158e337dd6ba28a
2012-05-01 14:30:18 -07:00
Kyle Huey
9d19220495 Bug 750183 - Don't nuke chrome->chrome cross-compartment wrappers. r=bholley 2012-05-03 09:10:08 +02:00
Brian Hackett
0079174207 Get rooting analysis to pass jit-tests in the interpreter, bug 745742. r=billm 2012-04-30 17:10:30 -07:00
Eddy Bruel
8266662238 Bug 703537: Removing the fix trap r=jorendorff@mozilla.com 2012-04-27 17:09:32 -04: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
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
Boris Zbarsky
a3e1420cf0 Bug 726949. Instead of using the given proto for the sandbox directly, use a proxy that forwards to the given proto but rebinds all getters/setters/methods to use the given proto, not the sandbox global, as this. r=bholley, a=tracking-firefox
The code in XPCQuickStubs.h just moved from XPCQuickStubs.cpp.
2012-04-19 14:19:41 -04:00
Bobby Holley
d3e1c85a70 Bug 745422 - Factor fundamental traps into js::AbstractWrapper. r=gal 2012-04-15 16:43:14 -07:00
Brian Hackett
71506db37a Add most handles and stack rooters needed for exact scanning on shell benchmarks, bug 714647. r=billm 2012-04-12 09:23:51 -07:00
Matt Brubeck
b7d725d72a Back out e4c82a6b298c, 036194408a50, 39acc9f51df8 (bug 714647 and followups) because of test_finalizer.js crashes in Linux64 PGO builds 2012-04-12 22:07:43 -07:00
Brian Hackett
90b23329e3 Add most handles and stack rooters needed for exact scanning on shell benchmarks, bug 714647. r=billm 2012-04-12 09:23:51 -07:00
Bill McCloskey
fd165164dd Bug 737384 - Use reserve rather than resize for iterator wrapping (r=luke) 2012-03-26 11:06:49 -07:00
Bobby Holley
8189f58fdd Bug 667388 - Handle wrappers during structured clone. r=mrbkap
We also remove the declared-but-never-implemented JSObject::getWrapperHandler.
2012-03-23 14:59:27 -07:00
Bobby Holley
ab0445c528 Bug 596351 - Proxies should throw TypeErrors for assignments to read-only properties in ES5 strict mode. r=luke 2012-03-16 12:47:21 -07:00
David Mandelin
0be0db4666 Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
David Anderson
a271172b79 Ensure that iterators are closed when an exception is thrown (bug 729797, r=luke).
--HG--
extra : rebase_source : a500065bf2c96d1b8581fc8ae81af2eac0ee880f
2012-02-27 17:01:52 -08:00
Terrence Cole
8829b7dd51 Bug 727306 - Specialize HeapValue::postWriteBarrier for object slots; r=billm
Because we need to re-alloc the object slots pointers for slots growth and
actively move the slots buffer between objects in TradeGuts, we cannot safely
store pointers to slots in our write buffer.  Instead we want to store a pair of
JSObject* + offset in the write buffer.  This effectively means that we need to
specialize the HeapValue::postWriteBarrier used when storing to slots.  This
patch sub-classes HeapValue and uses this sub-class for object slots.

--HG--
extra : rebase_source : 632ad9fd74f638cf9cadc19d6bc0aac8d6cc1cb1
2012-02-17 18:43:48 -08:00
Bill McCloskey
0d08fbfac5 Bug 728086 - Initialize the stack properly (r=luke) 2012-02-22 10:36:12 -08:00
Luke Wagner
fa63b057b8 Bug 726595 - Do a better job guarding RegExpShared objects against GC (r=cdleary)
--HG--
extra : rebase_source : f4b28fd9dc0ad762d483e0a11fba450bdd8bd32f
2012-02-23 13:51:19 -08:00
Bill McCloskey
620898670f Bug 728086 - Back out f4e8839c28f5 to fix Windows purple builds 2012-02-22 13:38:34 -08:00
Bill McCloskey
5ea3251fb9 Bug 728086 - Poison the stack when not in use (r=luke) 2012-02-22 10:36:12 -08:00
Bobby Holley
b038453297 Bug 717113 - Make js::IsWrapper fully inline-able. r=luke 2012-02-21 10:31:35 -08:00
Terrence Cole
db54cc864e Bug 726845 - Make Value marking interfaces indirect; r=billm
This will eventually allow the GC to update Values that reference an Object,
when moving an object.
2012-02-15 17:16:53 -08:00
Jason Orendorff
e1d9162904 Bug 699565 - Part 3 - for-of loops on wrappers. r=bhackett. 2012-02-07 12:57:16 -06:00
Luke Wagner
864734648c Bug 688069 - fix String.prototype.{replace,match,search,split} for transparently wrapped RegExp arguments (r=cdleary)
--HG--
extra : rebase_source : 52e43bfbd134f8afcff15b354fcb777d9b0e71ba
2012-02-01 13:36:48 -08:00
Blake Kaplan
2718588789 Bug 723111 - Add an option to js::UnwrapObject so that it doesn't stop at outer windows when unwrapping. This is useful for cases where we are trying to find the wrapped native for a security wrapper. r=bzbarsky 2012-01-26 14:55:27 +01:00
Phil Ringnalda
23ca89ddfb Back out 9aac714775b9 (bug 723111) for make check orange 2012-02-01 10:25:04 -08:00
Blake Kaplan
7cce8db259 Bug 723111 - Add an option to js::UnwrapObject so that it doesn't stop at outer windows when unwrapping. This is useful for cases where we are trying to find the wrapped native for a security wrapper. r=bzbarsky
--HG--
extra : rebase_source : 51216cf21b63554e50633c89f393c5888241dee2
2012-01-26 14:55:27 +01:00
Brian Hackett
96e072a772 Store JSStrings instead of jsids in native key iterators, bug 713754. r=dvander 2012-01-18 16:56:22 -08:00
Luke Wagner
a7cae60147 Bug 714547 - SecurityWrapper should not interfere with same-document.domain access (r=mrbkap)
--HG--
extra : rebase_source : ffc6e1920dccdd194269fa7056113944863e0419
2012-01-09 15:32:53 -08:00
Luke Wagner
6e9feca701 Bug 713311 - give the remaining scope objects typed interfaces (r=waldo)
--HG--
rename : js/src/vm/CallObject-inl.h => js/src/vm/ScopeObject-inl.h
rename : js/src/vm/CallObject.cpp => js/src/vm/ScopeObject.cpp
rename : js/src/vm/CallObject.h => js/src/vm/ScopeObject.h
extra : rebase_source : 0efa6c9ac4ceb10f48fe7ee7b199333da2b54cd9
2012-01-02 15:02:05 -08:00
Brian Hackett
73956e1912 Merge MC -> JM 2011-11-26 15:03:20 -08:00