Commit Graph

27830 Commits

Author SHA1 Message Date
Terrence Cole
2cf3c4f370 Bug 735549 - Generate the JS reftest suite's manifests automatically; r=dmandelin
--HG--
extra : rebase_source : 910bca5b40e37a69427cb3ab1332f24c00a0b2e7
2012-03-22 18:52:12 -07:00
Bobby Holley
26bad0fb53 Bug 745661 - Make TI assertion handle safe mode, too. r=khuey 2012-04-16 16:57:36 -07:00
David Anderson
3220976613 Remove more uses of JS_FrameIterator (bug 744617, r=mrbkap). 2012-04-16 12:30:04 -07:00
David Anderson
3fab15f4fb Remove simple JS_FrameIterator uses in xpconnect (bug 744617, r=bholley).
--HG--
extra : rebase_source : c206450cf46011543f58cded4c5aff2d49932afd
2012-04-16 12:25:28 -07:00
Ed Morley
610bb431d8 Backout 3e24a0ebd104 (bug 726949) for M-oth orange; a=backout 2012-04-19 12:28:43 -07:00
Boris Zbarsky
c056b09141 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
Jason Orendorff
674e87f181 Bug 738617 - Revert changeset 6d139ebc0f43 (bug 730139). Reserving let breaks some web sites. r=Waldo, a=mfinkle. 2012-04-18 15:07:11 -05:00
Steve Fink
7f6c66e7df Bug 747543 - Convert JIT registration API to use JITChunks nearly everywhere in place of JITScripts. r=bhackett
--HG--
extra : rebase_source : fd1ab3d4e24b8046b85421b29dfa96e1a74bf608
2012-01-30 16:13:24 -08:00
Steve Fink
0d02f27af8 Bug 730208 - UnmarkGray fixups for globals and contexts. r=billm
A common source of potential black -> gray edges is JSAPI calls made on objects with gray globals or contexts holding gray globals. (The call could potentially update a black object with a pointer to that global.) This patch mostly traps places where contexts are used, and unmarks their globals. It also includes some more global unmarking.

--HG--
extra : rebase_source : 1286bdbc4c337956242c292e0fa385629ee8850b
2012-03-14 09:32:58 -07:00
Steve Fink
7cf2182f5e Bug 730208 - Root JSD's pet global so it can't participate in CC cycles. r=billm
--HG--
extra : rebase_source : 9211b881e0c0931bd7df16989bed492449b1c74f
2012-03-20 21:29:47 -07:00
Steve Fink
f54a7f1a11 Bug 730208 - XPConnect changes to UnmarkGray some more objects and return them for convenience. r=mccr8
--HG--
extra : rebase_source : a1d56aa4dc9dcf1fe280c42667710494f2481a7c
2012-03-20 21:22:40 -07:00
Steve Fink
0d344fe567 Bug 730208 - Implement js::IsIncrementalBarrierNeededOnScript. r=billm
--HG--
extra : rebase_source : 2f065e0dae6c2789b547b677eb0e8ebb466feec2
2012-04-24 16:29:03 -07:00
Ryan VanderMeulen
81adc8fc72 Bug 747243 - Fix MSVC warning with a little JS_FRIEND_API love. r=billm 2012-04-24 19:50:00 -04:00
David Rajchenbach-Teller
eb6d231a72 Bug 742384 - Have CDataFinalizer.dispose return a value. r=jorendorff 2012-04-13 23:56:03 +02:00
David Rajchenbach-Teller
65b4c1bbbc Bug 720771 - Implement finalization for CData values. r=jorendorff 2012-04-05 15:06:25 +02:00
Jeff Walden
3210d29c48 Back out a9764c9ec124, d8aac2bd90db, d167f7fbb53e, and ca7b13e02cd5 for not-entirely-trivial build bustage. r=bustage 2012-04-24 16:47:28 -07:00
Jeff Walden
b061d084fb Add a NumberValue(uint64_t) overload, and remove the size_t overload, as it might be the case that size_t and uint32_t, say, are the same type. Followup to bug 747197, r=bustage 2012-04-24 16:29:42 -07:00
Jeff Walden
9ddb5ac055 Bug 739380 - Start to implement a [[HasProperty]] hook, per the proto-climbing refactoring, for elements. r=bhackett
--HG--
extra : rebase_source : a48f4fc318145fd1c089cfb5b4df05eb1ff4350c
2012-04-10 16:33:44 -07:00
Jeff Walden
6bd3a56a6f Bug 739380 - Start to implement the [[SetP]] hook from the proto-climbing refactoring. r=bhackett
--HG--
extra : rebase_source : 80de606a7e0128b0e61b35af0f31b6b4876e6b6f
2012-04-09 16:03:23 -07:00
Jeff Walden
0a074f1e45 Bug 739380 - Start to implement the default [[GetP]] hook from the proto-climbing refactoring for the various element types. r=bhackett
--HG--
extra : rebase_source : 0270610c88d3315023a4cc582abbaf62dcf8a1cc
2012-04-10 16:33:44 -07:00
Jeff Walden
0db62129d8 Bug 747197 - Rename TIMECLIP to TimeClip to match the spec spelling (also as it's no longer a macro). r=luke
--HG--
extra : rebase_source : 28083b4eeeee68c829b8804545d3ad6bb5660561
2012-04-19 16:22:08 -07:00
Jeff Walden
c84934111a Bug 747197 - Move basic numeric conversion operations (double->uint32_t, double->int32_t, double->integer, but not Value->* just yet) into vm/NumericConversions.h, a header with minimized dependencies. r=luke
--HG--
extra : rebase_source : a564ba8f6a4350c1c49359f08e9de44670b89aeb
2012-04-19 16:18:24 -07:00
Jeff Walden
332255ce37 Bug 746262 - Augment PropDesc so that it can represent the absence of a property by adding an isUndefined() method and bit, and checking it in all the relevant accessors. r=jorendorff
--HG--
extra : rebase_source : 50294d6b3abd9c6730d7e369220efc831f240c6a
2012-04-18 15:06:30 -07:00
Jeff Walden
0c2a71413f Bug 745944 - Make PropDesc assert propriety of access in its accessors, and privatize all PropDesc fields. r=jorendorff
--HG--
extra : rebase_source : 56e51a95253f95442f09e441620b2fac3f758c53
2012-04-10 11:08:28 -07:00
Jeff Walden
7bb66cf191 Fix class/struct mismatch warnings for js::ArrayBufferObject. Followup to bug 741040, r=chucktesta
--HG--
extra : rebase_source : c5f0daa4261896c8c5013872b1aa9cf367adeebc
2012-04-24 15:39:21 -07:00
Terrence Cole
e23c231ce0 Bug 744880 - Make Relocatable HeapValue for use with manual post barriers; r=billm
We cannot have implicit post barriers run on any pointer that can be relocated
outside of the GC's control. This includes things like HashTables and Vectors.

--HG--
extra : rebase_source : 7bae3ab9e319be48c343be58d6858b43b743e581
2012-04-13 14:33:18 -07:00
Steve Fink
629fa8e9ba Bug 741040 - Make an ArrayBufferObject subclass of JSOBject. r=Waldo
--HG--
extra : rebase_source : 63dd1cc69cfae37203c1f037d5a4b0b5c5651e7b
2012-03-28 14:43:01 -07:00
Steve Fink
bae24c9df1 Bug 748109 - jstests.py cannot find any test cases. r=terrence
When I do:
  cd js/src/tests
  python jstests.py $js_bin js1_8_5/extensions

it is unable to find any tests to run because it's looking relative to the jstests.py script, but at least in this case that is a relative path (plain "jstests.py") so os.path.dirname(__file__) is the empty string and that doesn't seem to work very well.

--HG--
extra : rebase_source : 1cdc461680ceadba26fc512a50d9c7247a187744
2012-04-21 15:51:04 -07:00
Bill McCloskey
c2770ba780 Bug 744727 - Fix methodjit register alloc bug (r=bhackett) 2012-04-24 13:36:20 -07:00
Jim Mathies
42d97b9780 Bug 737969 - Win8 Metro build config. r=ted 2012-04-24 14:28:19 -05:00
Terrence Cole
7642769f1c Bug 748397 - Fix broken JSON when there is a ',' in LC_NUMERIC; r=billm
--HG--
extra : rebase_source : 5e086466273671dbecacb7d877990250d428db6e
2012-04-24 11:25:20 -07:00
Tom Schuster
a54448c56d Bug 735036 - Check for OOM in debug only method. r=luke 2012-04-24 20:03:48 +02:00
Steve Fink
829aa5a49d Bug 747543 - Convert JIT registration API to use JITChunks nearly everywhere in place of JITScripts. r=bhackett
--HG--
extra : rebase_source : a2ccddb35663ee3365f1440133c59a69ba4babca
2012-01-30 16:13:24 -08:00
Steve Fink
4d0ec3b8f7 Bug 748915 - Implement JS_IsArrayBufferViewObject
Also includes some warnings fixes.

--HG--
extra : rebase_source : 79f95f42db10a7ee20971dac3abd7364c4ef91f5
2012-03-28 14:43:01 -07:00
Matt Brubeck
28eac2b5d9 Merge mozilla-central to mozilla-inbound 2012-04-13 14:09:05 -07:00
Nicolas Pierron
03503aa602 Bug 744670 - Port StackIter modification of IonMonkey. r=luke 2012-04-13 13:45:01 -07:00
Jim Blandy
a99a37f37e Bug 743351: Implement Debugger.Script.prototype.staticLevel. r=jorendorff 2012-04-13 13:17:18 -07:00
Matt Brubeck
e938aaf083 Bug 745233 - Back out 33e485d0e23b, 26eb08593f89, ce72679ffb95, 10b783e85c1e (bug 720771, bug 742384) because of Linux64 PGO crashes 2012-04-13 10:40:27 -07:00
Matt Brubeck
d4e1cdd51e 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
Jeff Walden
04b4615063 Attempt to fix OS X (gcc 4.2) build bustage. No bug, r=gcc-42-should-die 2012-04-12 18:32:25 -07:00
Jeff Walden
f90e3047ba Fix clang JS shell build bustage. No bug, r=billm over irl 2012-04-12 18:15:26 -07:00
Luke Wagner
d3faf91314 Bug 744842 - don't include actual args in error.stack.toString (r=dmandelin)
--HG--
extra : rebase_source : 66a780c6abfc4fadc7cc08ed97224296af20ad61
2012-04-11 18:07:44 -07:00
Jeff Walden
ff55286293 Bug 739380 - Convert the defineElement hooks to use an ECMAScript-style [[DefineOwnProperty]] interface, not the old-school SpiderMonkey defineProperty interface. r=bhackett
--HG--
extra : rebase_source : e43fcbfdb76c61b4ecd7a5f4b1d17aefa0d19f83
2012-04-09 15:15:46 -07:00
Joey Armstrong
5c536f7069 Bug 742835 - autotargets.mk: handle mkdir dot requests - r=ted 2012-04-13 14:44:24 -04:00
David Mandelin
39ffeb7915 Bug 736609: fix typo, r=sfink, a=akeybl
--HG--
extra : rebase_source : 4299196454f1a078ada48328a953d571efea9a4a
2012-04-12 11:54:47 -07:00
Bobby Holley
48dcb4071b Bug 744034 - Link the script context to the outer window earlier to ensure that we always have TI for content. r=mrbkap 2012-04-12 11:21:12 -07:00
Bill McCloskey
1078f7d662 Bug 744489 - Fix incremental GC assertion in ValidateIncrementalMarking (r=igor) 2012-04-12 11:14:43 -07:00
Bill McCloskey
8b5366ab25 Bug 742843 - Clean up weakmap header (r=terrence) 2012-04-09 11:42:04 -07:00
Bill McCloskey
e928493032 Bug 740609 - Handle null filename (r=luke) 2012-04-12 11:03:45 -07:00
Bill McCloskey
b2da88eeb8 Bug 740509 - Trace through all type properties for non-GC tracers (r=bhackett) 2012-04-12 11:03:40 -07:00
Bill McCloskey
b69b0df1ce Bug 744285 - Fix conservative stack scanning for non-GC tracers (r=igor) 2012-04-12 11:03:20 -07:00
Brian Hackett
5fe350f0a8 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
Nathan Froyd
324818de90 Bug 614188 - Part 3: build double-conversion as a part of MFBT; r=Waldo 2012-04-09 12:05:11 -04:00
Terrence Cole
1cf21563aa Bug 744192 - Assert that Vectors do not contain implicitly postbarriered types; r=luke
Since vectors move their memory around outside the control of the GC, it is not
valid to store an implicitly post-barriered item in a Vector.

--HG--
extra : rebase_source : 2cef4d855cc4e926cea872cda18e5cf29230f0a7
2012-04-11 17:14:11 -07:00
Bas Schouten
2be70a6cde Bug 719776 - Part 2: Make MOZ_CRASH and MOZ_ASSERT expand inline. r=waldo 2012-04-12 02:03:07 +02:00
Brian Hackett
8316f8dff3 Use right compartment iterator when profiling scripts, bug 744611. r=billm 2012-04-11 15:54:55 -07:00
Terrence Cole
981f652738 Bug 743868 - Fix barriers in SupressDeletedProperties; r=billm
Right now, we simply stop tracing through deleted properties. This causes us to
delete things that are still in the write buffer. We need to, in addition, set
the reference to NULL to ensure that the write buffer doesn't dereference these
dead entries.

--HG--
extra : rebase_source : add220d5fb47e0e3ffd767c9b5ebd6172df07671
2012-04-09 16:52:50 -07:00
Masatoshi Kimura
2afd81e0a3 Bug 743049 - Part 1: Add a friend API to get an error type name from a number. r=luke 2012-04-11 17:55:22 -04:00
Masatoshi Kimura
7706cbe7a8 Bug 730161 - Replace IDBDatabaseException and FileException with DOMException. r=sicking 2012-04-11 17:55:21 -04:00
Terrence Cole
124513c9bb No bug - Warning fix for 91357:fa24b215d49e; r=luke
--HG--
extra : rebase_source : 9d48a4a09cb54d711a24da41576ffc24d44a3cb4
2012-04-11 10:32:50 -07:00
Terrence Cole
869384f8e3 Bug 743896 - Fix failure misattribution in jstest runner; r=dmandelin
In the unix task runner, when we kill tasks, we should be checking and returning
bool if we kill so that we then run waitpid in timeout mode.  We weren't, so
tasks were never failing with timeout, only with failure.  It turns out that
this is not safe anyway: it will race against signal delivery.  We're better off
just removing this hack and letting the timeout cutoff be fuzzy.

--HG--
extra : rebase_source : cd44838e67cf541fd5741406e8c3f02ad7530f16
2012-04-11 10:02:33 -07:00
Nathan Froyd
76e56f19d9 Bug 743988 - unconditionally link PROGRAMS and SIMPLE_PROGRAMS with CXX; r=ted 2012-04-10 10:16:26 -04:00
Jan de Mooij
682d404984 Bug 742393 - Don't inline array.concat if the array prototype has indexed properties. r=bhackett 2012-04-11 18:49:42 +02:00
Phil Ringnalda
151c28ec53 Back out 4b82f26f8593:2fcf9cbedd48 (bug 743393, bug 719776) for bustage 2012-04-11 09:06:40 -07:00
Bas Schouten
f6ce694430 Bug 719776 - Part 1 - Followup: Fix one more case of assuming ASSERT expands to an expression. r=bustage 2012-04-11 17:18:30 +02:00
Bas Schouten
034108c2de Bug 719776 - Part 2: Inline MOZ_Assert and MOZ_Crash. r=waldo 2012-04-11 16:55:31 +02:00
David Rajchenbach-Teller
6d5fdf26e0 Bug 742384 - CDataFinalizer.dispose now returns a value. r=jorendorff 2012-04-11 10:46:19 +02:00
David Rajchenbach-Teller
290bcaec25 Bug 720771 - Implementing finalization for CData values. r=jorendorff 2012-04-05 15:06:25 +02:00
Mike Hommey
ea3507fa7e Bug 644608 - Implement full dependencies for expandlibs. r=ted
* * *
Bug 644608 - Fixups
2012-03-31 09:24:39 +02:00
Nicholas Nethercote
b99da5a940 Bug 739512: Patch 9: move JSScript::debug into a table. r=jorendorff. 2012-04-10 18:03:01 -07:00
Jeff Walden
811d0047d6 Attempt to fix OS X (gcc 4.2) build bustage. No bug, r=gcc-42-should-die 2012-04-12 18:32:25 -07:00
Jeff Walden
a971d372b8 Fix clang JS shell build bustage. No bug, r=billm over irl 2012-04-12 18:15:26 -07:00
Brian Hackett
8ba260b5ce 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
Nicholas Nethercote
acee5a1c1c Bug 739512 - Patch 8: move sourceMap into a table. r=jorendorff.
--HG--
extra : rebase_source : a986cf630b84c9b531e6179afce57b0e8c69d1ff
2012-04-09 19:56:04 -07:00
Andrew McCreight
8ce598e7c1 Bug 744272. disable test_watchpoints due to bogus failures. rs=billm 2012-04-10 18:43:22 -07:00
Nicholas Nethercote
59e904470c Bug 739512 - Patch 7: move scriptCounts into a table (attempt 2). r=bhackett. 2012-04-10 18:41:42 -07:00
Nicholas Nethercote
30846dcaae Backed out changeset fdd10e0e6e5e (bug 739512) due to 32-bit bustage. 2012-04-10 18:36:08 -07:00
Nicholas Nethercote
8f6f4d74ed Bug 739512 - Patch 7: move scriptCounts into a table. r=bhackett. 2012-04-09 19:50:06 -07:00
Jeff Walden
b3c19631d8 Bug 743878 - Move uint8_clamped and associated machinery into ObjectImpl.h, so that the new object representation can use it as well. r=sfink 2012-04-09 15:14:59 -07:00
Terrence Cole
a377cbe0ca Backed out changeset a43eb4a2d2fd 2012-04-10 17:03:25 -07:00
Terrence Cole
961c72bb26 Bug 744192 - Assert that Vectors do not contain implicitly postbarriered types; r=luke
Since vectors move their memory around outside the control of the GC, it is not
valid to store an implicitly post-barriered item in a Vector.
2012-04-10 16:43:54 -07:00
Luke Wagner
e19fc00e74 Fix --disable-methodjit bustage (no bug, r=red) 2012-04-10 14:57:15 -07:00
Luke Wagner
ded2c352a3 Bug 740259 - add ALIASEDVAR ops, assert they are used iff the variable is aliased (r=bhackett,waldo,jorendorff,dherman) 2012-03-24 12:29:36 -07:00
Luke Wagner
ba98dfe70c Bug 740446 - make 'arguments' more like a normal local binding (r=bhackett) 2012-04-02 08:58:30 -07:00
Luke Wagner
aa04799a17 Bug 740259 - Assert that dynamic binding access is expected (r=bhackett) 2012-03-16 12:02:37 -07:00
Luke Wagner
107bf1f356 Bug 740259 - Tighten assertions around closed-var noting (r=bhackett) 2012-03-28 16:36:57 -07:00
Brian Hackett
61342c1099 Treat FILTER and ENDFILTER as unknown ops, bug 740595. r=luke 2012-04-10 12:59:38 -07:00
Brian Hackett
d699d138f8 Remove bogus assert, bug 727476. r=luke 2012-04-10 12:56:59 -07:00
Brian Hackett
013145f51a Avoid assert botch in makeLazyType after types have been nuked, bug 734978. r=luke 2012-04-10 12:36:26 -07:00
Brian Hackett
e414878401 Don't botch assert after OOM while constructing object's lazy type, bug 735016. r=luke 2012-04-10 12:27:13 -07:00
Brian Hackett
701b67e290 Bail out from on calling functions if an OOM occurs while during initial bytecode analysis, bug 727341. r=luke 2012-04-10 12:24:46 -07:00
Brian Hackett
b6c39b6461 Preserve invariant between saved array and lifetime variables' saved fields on OOM during analysis, bug 735045. r=luke 2012-04-10 12:16:42 -07:00
Brian Hackett
90ac2f3e6f Nuking types should be recognized as a recompilation by enclosing monitors, bug 735012. r=dvander 2012-04-10 12:10:04 -07:00
Brian Hackett
adbd0b10bb Don't botch assert after OOM while linking ICs, bug 727344. r=dvander 2012-04-10 12:07:26 -07:00
Terrence Cole
71ea0dd217 Bug 744052 - Restructure HashTable::checkOverflow for easier reading; r=luke
When I added this function, I just copied the existing logical structure.  It
makes more sense here to check overflowed and return early, since we can do this
now.
2012-04-10 09:51:48 -07:00
Ehsan Akhgari
35feb5905e Merge mozilla-central into mozilla-inbound 2012-04-10 11:12:26 -04:00
Ehsan Akhgari
da8a28843b Merge the last PGO-green changeset from mozilla-inbound into mozilla-central 2012-04-10 11:11:37 -04:00
Igor Bukanov
abf01f2000 Bug 743559 - Remove unused JSRuntime::xml_singleton fields. r=:Waldo
The patch removes unused  anynameObject and functionNamespaceObject fields in JSRuntime.
2012-04-10 11:57:29 +02:00
Terrence Cole
e4df58c761 Bug 743885 - Fix OOM handling regression in HashTable; r=luke
Introduced by me in bug 722946.
2012-04-09 19:07:11 -07:00
Kyle Huey
b6b17661cb Refix bug 741248 harder. r=me 2012-04-09 17:41:22 -07:00
Brian Hackett
ca6235473e Don't disable call ICs with the callee frame still on the stack, bug 743088. r=luke 2012-04-09 17:33:42 -07:00
Nicholas Nethercote
22560df854 Bug 742163 (follow-up) - Unbreak --disable-methodjit. r=Ms2ger. 2012-04-09 16:41:27 -07:00
Nicholas Nethercote
bd1ed015d8 Bug 739512 - Patch 2b: rename nClosed{Args,Vars}() as numClosed{Args,Vars}(). r=luke. 2012-04-09 16:37:16 -07:00
Matt Brubeck
2584172b19 Merge last green changeset from inbound to mozilla-central 2012-04-09 10:05:48 -07:00
Takanori MATSUURA
1cddfe27e4 Bug 743433 - Remove .orig files which were accidentally added by bug 680246. r=khuey 2012-04-07 08:48:23 -04:00
Igor Bukanov
20e5c3933b 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
bcc7b8930d Fix Bug 743376. r=bz 2012-04-06 17:44:50 -07:00
Mike Hommey
daaf05e1f0 Backout bug 644608 for subtly breaking layout/media build 2012-04-06 13:57:24 +02:00
Mike Hommey
6c18cf3860 Bug 644608 - Implement full dependencies for expandlibs. r=ted 2012-03-31 09:24:39 +02:00
Mike Hommey
f72bc25505 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
6cbec49cd2 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
ef32c48bf1 Bug 733461: Implement the 'query' parameter of Debugger.prototype.findScripts. r=jorendorff 2012-04-05 17:10:44 -07:00
Bill McCloskey
7ac37189bb Bug 739899 - Fix clang warning (rs=terrence) 2012-04-05 17:05:34 -07:00
Bill McCloskey
47a4fb0311 Bug 739899 - Fix orange 2012-04-05 16:50:40 -07:00
Terrence Cole
944d8aa687 no bug: Warning fix at predeclaration of AutoCompartment; r=jorendorff 2012-04-05 16:31:26 -07:00
Bill McCloskey
7a6d0e3aba Bug 742570 - Improve shell control of incremental GC (r=igor) 2012-04-04 15:07:36 -07:00
Bill McCloskey
15f96e8610 Bug 742570 - Improve GC testing functions (r=igor) 2012-04-03 14:07:38 -07:00
Bill McCloskey
6149e805bc Bug 742570 - Change API for compartment GCs (r=igor) 2012-04-03 12:23:11 -07:00
Bill McCloskey
2f8a8308b9 Bug 742570 - Remove the compartment option for gczeal (r=igor) 2012-04-03 11:41:56 -07:00
Bill McCloskey
19d42860f8 Bug 739899 - Eliminate the distinction between full and compartment GCs (r=igor) 2012-04-02 18:29:11 -07:00
Luke Wagner
15e99e2d63 Bug 743034 - Fix script proto exec. r=bholley 2012-04-05 15:44:55 -07:00
Gabor Krizsanits
0ac891d865 Bug 733035 - postMessage support for sandboxes. r=khuey 2012-04-05 18:33:20 -04:00
Bobby Holley
403f8c3812 Bug 739825 - Push principals when entering compartments in structured clone. r=mrbkap 2012-04-05 14:02:34 -07:00
Igor Bukanov
ec49e6a78d 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
f0c623c2f5 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
0b48d9ec48 Debugger.Environment.getVariable and setVariable. Bug 692984, r=jimb.
--HG--
extra : rebase_source : fb68abbd27b3ca0809b20d99411ac797b337d227
2012-04-06 16:48:38 -05:00
Jason Orendorff
de3d390e50 Comment class js::FreeOp. No bug, no_r=me.
--HG--
extra : rebase_source : cd664de1c5aeca650b904f3ffc780c237c7044f3
2012-04-04 12:03:14 -05:00
Terrence Cole
13747cd0e7 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
8576312a1c 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
bd9ba0040a Bug 737006 - Use internal ply only if needed. r=khuey 2012-04-06 14:06:52 -04:00
Luke Wagner
0d22b6df1b Bug 738279 - Change 'pc' to match 'sp' in forced return path (r=bhackett)
--HG--
extra : rebase_source : 24cecb569cdb5df33737877bc3f02a5ceea342b1
2012-04-09 09:12:44 -07:00
Luke Wagner
7021ed28a7 Bug 723445 - StackIter should ExpandInlineFrames in all compartments, not just the current one (r=bhackett)
--HG--
extra : rebase_source : 4dfa9962367f0cc6cf3b5657c9fbc5a425f15f41
2012-04-09 09:11:26 -07:00
Takanori MATSUURA
7bad43d463 Bug 743630 - Remove unsed variable XPIDL_COMPILE. r=khuey 2012-04-09 13:36:14 -07:00
David Mason
5bc308d541 Bug 732779 - Update Date.prototype.set{Second,Minute,Hour,etc} methods to not short-circuit argument evaluation when this date is invalid or a leading argument converts to NaN. r=jwalden
--HG--
extra : rebase_source : cd10ac2d8a4cc5a55d971692def76cadaf4c4bd1
2012-04-06 18:06:14 -07:00
Ms2ger
9ae4350b73 Merge m-c to m-i. 2012-04-09 09:32:28 +02:00
Josh Matthews
95cb7efe08 Bug 704147 - Make ctypes function pointers callable via call and apply. r=bholley 2012-02-14 16:26:05 -05:00
Jim Blandy
fd6265401a Bug 741615: Replace Debugger.prototype.wrap with Debugger.Object.prototype.makeDebuggeeValue. r=jorendorff 2012-04-05 12:30:35 -07:00
Bobby Holley
4be29280b2 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
6aa87dac2b 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
0bc78f58be 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
8944f5dc26 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
2a534262e3 Merge mozilla-inbound and mozilla-central 2012-04-05 13:41:51 -04:00
Ehsan Akhgari
7430c20bc8 Merge the last green PGO changeset from mozilla-inbound to mozilla-central 2012-04-05 13:40:53 -04:00
Boris Zbarsky
90c63d679b Bug 738356. Add JSAPI for doing the equivalent of Function.prototype.bind. r=jorendorff 2012-04-05 13:14:52 -04:00
Mike Hommey
609e12c771 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
6fb367bfab Bug 742163 - Clean up JSScript::jitArityCheck{Normal,Ctor}. r=dvander. 2012-04-05 00:02:02 -07:00
Chris Cooper
ef548df90a Merge build-system to mozilla-central 2012-04-04 14:02:07 -04:00
Joey Armstrong
15ddc7aed7 Bug 738404 - Makefile.in edits to use threadsafe mkdir (bug 680246) - r=ted 2012-04-03 16:08:16 -04:00
Joey Armstrong
978a5f6d8a Bug 735638 - add utility function checkIfEmpty - r=khuey 2012-04-03 13:34:04 -04:00
Joey Armstrong
3713ef7a77 Bug 734121 - helper macros for writing make user functions - r=khuey 2012-04-03 13:32:46 -04:00