Commit Graph

16994 Commits

Author SHA1 Message Date
Chris Leary
512f0b07a4 Back out 9541ced017f7 -- performance didn't improve as expected. 2011-11-28 17:23:02 -08:00
David Mandelin
f0008d63aa Bug 684922 followup: fix test metadata to expect error
--HG--
extra : rebase_source : b9deb96721dc65822968fec49273010367f0e2ff
2011-11-28 16:59:05 -08:00
Alon Zakai
052ec1805b Bug 705508 - Add printErr to JS console. r=cdleary 2011-11-28 16:49:34 -08:00
Ryan VanderMeulen
62a927d2f5 Bug 705401 - Remove the rest of TraceVis. r=dvander 2011-11-28 16:08:25 -08:00
David Mandelin
e989f473fd Bug 684922: avoid infinite recursion through GetCustomIterator, r=luke 2011-11-28 15:20:15 -08:00
Ryan VanderMeulen
6c5d50b5ed Bug 524732 - Re-enable tests that had been skipped previously. r=bclary 2011-11-28 14:57:31 -08:00
Ryan VanderMeulen
c99172b952 Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander 2011-11-28 14:57:31 -08:00
Chris Leary
8a09202cc6 Bug 691797: Optimize RegExp.prototype.test with leading .* (r=mrbkap)
--HG--
extra : rebase_source : 83c8bf66164a4f6f5895beeeb857179de280c241
2011-11-28 13:35:12 -08:00
Terrence Cole
fb465cb23d Bug 699279 - Run GC_SHRINK collection cycle when under memory pressure; r=mrbkap
GC_SHRINK is a fairly new type of GC that does more aggressive cleanups than a
normal GC.  This patch makes the browser run the GC in this mode when under
memory pressure, or when the user pushes the Minimize Memory Usage button when
on the about:memory page.

--HG--
extra : rebase_source : abdd11ee5fa5eb0e3d58122d3d72e98328d47668
2011-11-09 18:14:11 -08:00
Rafael Ávila de Espíndola
9799f824dd Bug 705466 - Use MOZ_CHECK_HEADERS to check for cpuid.h. r=ted.
--HG--
extra : rebase_source : ecd108d166017cbd64c5be459a76cb2522723dfb
2011-11-28 15:32:32 -05:00
Brendan Eich
1319d0d674 Bug 685321: detect closed-over variables conservatively, r=jorendorff 2011-11-28 11:57:10 -08:00
Jeff Walden
75178a4438 Bug 701973 - Make callers pass the type of function body being parsed to Parser::functionBody, rather than inferring it from the current token. r=jorendorff
--HG--
extra : rebase_source : 6fe4c4dc4bcb0b7b44383da995934f2ff2383046
2011-11-12 01:38:24 -08:00
Jeff Walden
f4134134c8 Bug 701973 - Make js::Parser::variables not depend on the current token, and extract TOK_CONST from TOK_VAR. r=jorendorff
--HG--
extra : rebase_source : f6825ae9b1780fd1ecb2bc7831e14639abaeb735
2011-11-11 19:23:25 -08:00
Jeff Walden
3c5ca419bc Bug 701620 - Split up PNK_LC into PNK_STATEMENTLIST and PNK_XMLCURLYEXPR. r=jorendorff
--HG--
extra : rebase_source : 4d781725639c6c94da53fd33fcfcedf221634a35
2011-11-11 18:05:43 -08:00
Jeff Walden
2a586af759 Bug 701620 - Rename PNK_DO to PNK_DOWHILE to make the meaning clearer. r=jorendorff
--HG--
extra : rebase_source : c3320c052e937a7700ed8c1dd2259c9c4b6f0b03
2011-11-06 07:51:39 -08:00
Jeff Walden
7293d6c2ce Bug 701620 - Split parse nodes for the parenthesized heads of for loops into PNK_FORHEAD (for(;;) loops) and PNK_FORIN (for(var _ in _) loops) kinds. r=jorendorff
--HG--
extra : rebase_source : d98eeba2b14581aae589fd6e3eb12ba4220c1670
2011-11-05 12:43:39 -07:00
Jeff Walden
444d050d4e Bug 701620 - Use two different kinds for the + operator when used in unary and binary expressions, likewise for -. r=jorendorff
--HG--
extra : rebase_source : ae4b6490a658893b51a069ac40151ca63fff0055
2011-11-05 12:20:22 -07:00
Jeff Walden
071dfc0efb Bug 701620 - Split default parse nodes into PNK_DEFAULT into PNK_DEFAULT (for default cases in switches) and PNK_DEFXMLNS (for those other uses). r=jorendorff
--HG--
extra : rebase_source : 795141b3c10ccc731a8690a1c91df6db441ed46c
2011-11-05 12:10:33 -07:00
Nicholas Nethercote
f1e77095c2 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Mounir Lamouri
631be0b19b Backout 2040980c0792 (bug 705280) to investigate perf regression on dromaeo v8 deltablue. 2011-11-27 16:59:10 +01:00
Rafael Ávila de Espíndola
0ea58cfe7f Bug 705461 - Use MOZ_CHECK_HEADER(S) everywhere. r=neil. 2011-11-26 16:05:17 -05:00
Andrew Paprocki
eb7980a023 Bug 620452 - Always define sharpnum to prevent compiler error when JS_HAS_SHARP_VARS is undefined. r=mrbkap 2011-11-21 21:54:35 -05:00
Tom Schuster
18afa40401 Bug 647628 - Remove SKIP_POP_AFTER_SET. r=bhackett
--HG--
extra : rebase_source : 1332f0176be3db638d112392b5265a12eeee5ec2
2011-11-26 18:52:27 +01:00
Tom Schuster
59c2940705 Bug 554691 - Remove dead js_RegisterCloseableIterator definiton from header file. r=Ms2ger
--HG--
extra : rebase_source : b8b5fe8b03ded91b37560d045d4fe5d2da7f7925
2011-11-26 18:51:06 +01:00
Marco Bonardo
ca613c9cf5 Merge mozilla-central to mozilla-inbound 2011-11-26 14:29:05 +01:00
Ms2ger
3b924f7857 Bug 705320 - Use IDL for xpcIJSWeakReference.get; r=bholley 2011-11-26 11:32:03 +01:00
Ms2ger
50174a0e92 Bug 701467 - Remove JS_TRUE/JS_FALSE from xpconnect; r=bholley 2011-11-26 11:05:59 +01:00
Bobby Holley
e7353e9706 Bug 692342 - Get rid of the large and unnecessary table-driven reflectability detector. r=mrbkap
The XPIDL machinery should never output an invalid configuration here, so all this checking is unnecessary. The only thing we have to watch out for is native types, which all get shoehorned into T_VOID. So let's make this a simple check.
2011-11-25 17:09:07 -08:00
Bobby Holley
cf0c523c0d Bug 692342 - Assert !IsArithmetic() rather than IsPointer(). r=mrbkap
JSval is the only different between the two, and we handle that above.
2011-11-25 17:09:07 -08:00
Bobby Holley
8ae1b4f193 Bug 692342 - Coalesce cleanup flagging even further. r=mrbkap
This eliminates another pesky use of IsPointer().
2011-11-25 17:09:07 -08:00
Bobby Holley
80a53aed88 Bug 692342 - Assert against arrays of jsvals, since we don't handle them. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
06df2e6a7d Bug 692342 - Coalesce cleanup flagging within ConvertDependentParam. r=mrbkap
The only change in functionality here is that we flag for cleanup on 'inout' sized strings in addition to 'in' sized strings. I'm pretty sure we want that.
2011-11-25 17:09:07 -08:00
Bobby Holley
ce087657c7 Bug 692342 - Move some things below Do datum_type resolution in ConvertDependentParam. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
eb2e2115a2 Bug 692342 - Reorder in/out/inout handling in XPCWrappedNative parameter conversion. r=mrbkap
Apologies for the copy paste here. Fixing that will require some more serious re-architecting.
2011-11-25 17:09:07 -08:00
Bobby Holley
95cde91eeb Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
5424bb3bcc Bug 692342 - Remove check for !IsInterfacePointer(), given the code a few lines above. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
62e80bfb1b Bug 692342 - Reindentation from previous patch (no other changes). r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
583010a596 Bug 692342 - Create a ConvertDependentParam(i) method to match ConvertIndependentParam(i) (modulo reindentation). r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
6b83abef00 Bug 692342 - Simplify cleanup code in ConvertIndependentParameter(). r=mrbkap
We're not dealing with dependent parameters here. So as far as I can tell, the only behavior change that this introduces is that we flag for cleanup on T_WCHAR_STR in addition to T_CHAR_STR. This seems like something we probably want.
2011-11-25 17:09:07 -08:00
Bobby Holley
ab29eff0be Bug 692342 - Introduce deprecated_IsPointer() to handle the cases that are too mucky to figure out right now. r=mrbkap 2011-11-25 17:09:06 -08:00
Bobby Holley
cd0b0da035 Bug 692342 - Remove the obviously superfluous uses of IsPointer(). r=mrbkap
These are the easy cases, which all fall into one or more of the following categories:
* A check-and-throw, followed by a switch whose default case also throws
* A check of IsPointer() &&-ed with or tightly enclosing a check that implies IsPointer()
* A check of something clearly enforced by the XPIDL compiler
2011-11-25 17:09:06 -08:00
Bobby Holley
01cb0af700 Bug 692342 - Remove use of IsReference() within XPConnect. r=mrbkap
All we're doing is checking that various types aren't flagged as reference. But xpidl makes sure this doesn't happen, so we should just trust it instead.
2011-11-25 17:09:06 -08:00
Mounir Lamouri
64f6355173 Bug 705280 - Quickstub nsIDOMHTMLDocument.*. r=mrbkap
Currently not all methods of nsIDOMHTMLDocument were quickstubbed which means
some methods like document.head were excessivly slow (see bug report).
2011-11-26 01:24:08 +01:00
Makoto Kato
fc3b1a3f9e Bug 655658 - NetUtil.readInputStreamToString should have aCharset argument as optional. r=sdwilsh, sr=bz 2011-11-25 11:23:41 +09:00
Tom Schuster
7fee1d3cb0 Bug 602212 - Use error message from js.msg when CSP blocks a call to eval r=jorendorff 2011-11-24 19:39:02 +01:00
Tom Schuster
616aa669c1 Bug 705168 - Followup to remove some references to the tracer in the methodjit r=dvander 2011-11-24 19:38:57 +01:00
Andrew McCreight
c76f9e1244 Bug 668855, part 6: test weak maps and the cycle collector. r=gal 2011-11-24 07:35:57 -05:00
Andrew Paprocki
6e53604b3e Bug 660747 - Reverting YARR begin characters optimization. r=dmandelin 2011-11-22 00:21:18 -05:00
Andrew McCreight
a465b0434a Bug 653248 - Mark weak map values reachable only from XPCOM gray, not black. r=billm 2011-06-14 17:48:27 -07:00
Andrew McCreight
3c945315c6 Bug 668855, part 3: hook up CC to JS WeakMap callback. r=peterv 2011-11-24 07:35:56 -05:00