Terrence Cole
85273c86e9
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.
2011-11-09 18:14:11 -08:00
Rafael Ávila de Espíndola
05643ba9b5
Bug 705466 - Use MOZ_CHECK_HEADERS to check for cpuid.h. r=ted.
2011-11-28 15:32:32 -05:00
Brendan Eich
ccc1bccc03
Bug 685321: detect closed-over variables conservatively, r=jorendorff
2011-11-28 11:57:10 -08:00
Jeff Walden
b056d6b138
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
2011-11-12 01:38:24 -08:00
Jeff Walden
b8910a7264
Bug 701973 - Make js::Parser::variables not depend on the current token, and extract TOK_CONST from TOK_VAR. r=jorendorff
2011-11-11 19:23:25 -08:00
Jeff Walden
5cd1f47aa7
Bug 701620 - Split up PNK_LC into PNK_STATEMENTLIST and PNK_XMLCURLYEXPR. r=jorendorff
2011-11-11 18:05:43 -08:00
Jeff Walden
da7780dafe
Bug 701620 - Rename PNK_DO to PNK_DOWHILE to make the meaning clearer. r=jorendorff
2011-11-06 07:51:39 -08:00
Jeff Walden
89f790242e
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
2011-11-05 12:43:39 -07:00
Jeff Walden
396f0a44a3
Bug 701620 - Use two different kinds for the + operator when used in unary and binary expressions, likewise for -. r=jorendorff
2011-11-05 12:20:22 -07:00
Jeff Walden
7691a82982
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
2011-11-05 12:10:33 -07:00
Nicholas Nethercote
c0681f567c
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
e796cab3b6
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
656b26bce4
Bug 705461 - Use MOZ_CHECK_HEADER(S) everywhere. r=neil.
2011-11-26 16:05:17 -05:00
Andrew Paprocki
df3f770d36
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
d54a992532
Bug 647628 - Remove SKIP_POP_AFTER_SET. r=bhackett
2011-11-26 18:52:27 +01:00
Tom Schuster
1bd1679bde
Bug 554691 - Remove dead js_RegisterCloseableIterator definiton from header file. r=Ms2ger
2011-11-26 18:51:06 +01:00
Marco Bonardo
a43d500170
Merge mozilla-central to mozilla-inbound
2011-11-26 14:29:05 +01:00
Ms2ger
1c8c575673
Bug 705320 - Use IDL for xpcIJSWeakReference.get; r=bholley
2011-11-26 11:32:03 +01:00
Ms2ger
294f8e171a
Bug 701467 - Remove JS_TRUE/JS_FALSE from xpconnect; r=bholley
2011-11-26 11:05:59 +01:00
Bobby Holley
2753043224
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
fb07c7e27b
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
b946300ce4
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
ef46406943
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
337666da9b
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
e7467f5234
Bug 692342 - Move some things below Do datum_type resolution in ConvertDependentParam. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
a585ffb38e
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
29a16d2c3c
Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
c17226b667
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
12ff61f03f
Bug 692342 - Reindentation from previous patch (no other changes). r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
bb25e625dc
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
56105b512a
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
db039c433a
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
10ee1a821a
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
38f1b86a82
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
5902dcbab1
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
69707410fb
Bug 655658 - NetUtil.readInputStreamToString should have aCharset argument as optional. r=sdwilsh, sr=bz
2011-11-25 11:23:41 +09:00
Tom Schuster
cbdaee0e93
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
aee9a62076
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
59b5584b3d
Bug 668855, part 6: test weak maps and the cycle collector. r=gal
2011-11-24 07:35:57 -05:00
Andrew Paprocki
16eff36813
Bug 660747 - Reverting YARR begin characters optimization. r=dmandelin
2011-11-22 00:21:18 -05:00
Andrew McCreight
1626e1bb3c
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
f47995c44d
Bug 668855, part 3: hook up CC to JS WeakMap callback. r=peterv
2011-11-24 07:35:56 -05:00
Andrew McCreight
79d559e155
Bug 668855, part 1: add JS weak map tracing interface. r=billm
2011-11-24 07:35:56 -05:00
David Anderson
c30354dc62
Initial removal in bug 698201 did not apply correctly (leftover r=dmandelin).
2011-11-23 09:50:56 -05:00
Andrew McCreight
dac49e3ca6
Bug 704207 - HeapValue::gcKind should return JSGCTraceKind. r=billm
2011-11-23 09:14:04 -05:00
Jeff Walden
a076867204
Bug 704127 - Implement MOZ_FINAL as a modifier for classes and virtual member functions. r=cjones
2011-11-20 22:21:16 -08:00
Jeff Walden
0680b04f2c
Bug 704127 - Move C++ attribute support out of mozilla/Types.h and into mozilla/Attributes.h so that it can be used by code that's not yet compatible with the full mfbt experience. r=cjones
2011-11-20 12:22:51 -08:00
David Anderson
1092a7d910
Remove browser prefs for the tracer (bug 698201 part 7, r+sr=gal).
2011-11-22 17:41:43 -05:00
David Anderson
b9ea72fa63
Remove tracer from XPConnect (bug 698201 part 6, r=bholley).
2011-11-22 17:41:43 -05:00
David Anderson
86d67629e4
Remove LeaveTrace and related structures (bug 698201 part 5, r=luke).
2011-11-22 17:41:43 -05:00