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
Andrew Paprocki
16eff36813
Bug 660747 - Reverting YARR begin characters optimization. r=dmandelin
2011-11-22 00:21:18 -05:00
Brian Hackett
5d28c3f66e
Fix incorrect test in FindIdentifierBase, bug 694247.
2011-10-25 08:48:22 -07:00
Nicholas Nethercote
1f66eab735
Bug 684800 - Measure slop in TI-related JS memory reporters. r=bhackett.
2011-11-01 21:59:43 -07:00
Ms2ger
38fe8aae71
No bug - Fix OSX -Werror builds by initializing Chars::cx in the constructor; rs=Waldo over IRC
2011-11-01 22:46:48 +01:00
Brian Hackett
8c78b3b2ff
Back out b979f9d59e89 (bug 678687) for intermittent test_jQuery timeout.
2011-11-01 14:52:26 -07:00
Brian Hackett
2bed10124a
Remove ARGCNT, ARGSUB opcodes, bug 698015. r=dvander
2011-11-01 09:01:04 -07:00
Brian Hackett
6d0ee4f347
Try converting known doubles to integers in GETELEM/SETELEM paths, bug 678687. r=dvander
2011-11-01 08:43:40 -07:00
Brian Hackett
223e0ac9b3
Add JSScript::function, bug 693754.
2011-10-21 14:31:01 -07:00
Leon Sha
74203f828f
Bug 697014 - Javascript test case testTypedArrays.js failed on sparc with typed array and TI. Part II. r=bhackett1024.
2011-10-27 14:03:02 +08:00
Andrew Paprocki
68aaf5a1ac
Bug 696957 - Add Sparc, POWER/PPC, IA64 big-endian detection to jscpucfg.h. r=ted.mielczarek.
2011-10-27 14:02:20 +08:00
Dave Herman
2c40e21120
Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff
2011-10-26 16:45:25 -07:00
Brian Hackett
95c5ee636d
Try to coerce doubles to integers on tripped type barriers, bug 678687. r=dvander
2011-10-26 18:46:06 -07:00
Ed Morley
1857cdec0e
Backout changeset d5cc34a9351d (bug 696109) for jsreftest orange
2011-10-27 01:53:05 +01:00
Dave Herman
066e370ce6
Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff
2011-10-26 16:45:25 -07:00
Rasmus Jensen
1510a8ca16
Bug 680858 - Setting the namespace of an existing attribute may cause it to duplicate another existing attribute (E4X spec bug). Remove the already-existing attribute before mutating the attribute's namespace to not introduce duplicate attributes. r=jwalden
2011-10-26 15:35:32 -07:00
Doug Sherk
ae49bccc9b
Bug 656824: Implemented ARB_robustness to detect driver resets in WebGL, only on GLX for now - r=bjacob
...
This patch implements ARB_robustness on GLX and allows scripts to handle driver resets
through events. The changes in this patch are very sweeping; they hit almost
every NS_IMETHODIMP function within WebGLContextGL.cpp and WebGLContext.cpp.
More work must be done on this to support EGL_CONTEXT_LOST.
2011-10-26 16:00:44 -04:00
Marty Rosenberg
0e9f138120
When using DoubleConditionBitSpecial, actually strip out the bits before emitting an instruction (bug 691073, r=dvander)
2011-10-26 12:35:41 -07:00
Boris Zbarsky
31a35d4acf
Bug 697244. Quickstub nsIDOMWindow.self. r=peterv
2011-10-26 15:34:22 -04:00