Igor Bukanov
8785797ba7
Backed out changeset 14c76164f4c2 - patch for bug 524346 caused test fails
2009-10-27 19:21:47 +03:00
Igor Bukanov
ed4f6edf7f
bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan
2009-10-27 13:26:57 +03:00
Jason Orendorff
e66886b51c
Bug 515885 - Assertion failure: !scope->owned(), at ../jsobj.cpp. r=brendan.
2009-10-23 14:35:53 -05:00
Brendan Eich
9f9a05b0c3
Don't build a stack frame to execute empty scripts (516827, r=igor).
2009-10-18 17:41:24 -07:00
Jim Blandy
d87d9403e2
Bug 517990: Remove unused 'TS' parameter from NewNameNode and NewBindingNode. r=mrbkap
2009-10-08 10:29:03 -07:00
Jim Blandy
416f219573
Bug 515233: Move the TSF_DESTRUCTURING flag to the tree context. r=igor
...
The flag TSF_DESTRUCTURING is used by the parser to modify the way
variables in the destructuring pattern get represented in the parse
tree. It is never set or used by the tokenizer. This patch moves it
to JSTreeContext::flags, where it belongs, now that that field is wide
enough to hold it.
It also renames the flag TCF_DECL_DESTRUCTURING, since the flag is
only used for destructuring patterns that occur in declarations; it is
not set when processing assignment-like destructuring patterns.
2009-10-08 10:29:03 -07:00
Jim Blandy
f06be32d20
Bug 515233: Widen JSTreeContext::flags to 32 bits. r=igor
...
All the bits in this uint16 field are currently in use. Adding bits
for projects like strict mode entails relocating existing flags, which
is additional work. Furthermore, it seems that this has already
inspired people to put flags in places they don't belong:
TSF_DESTRUCTURING is a JSTokenStream flag, but is only used by the
parser.
This patch widens the field to 32 bits, and adjusts JSFunctionBox and
a few other places to match.
We should really replace these all with bitfields.
2009-10-08 10:29:03 -07:00
Jim Blandy
f4a407f114
Bug 515233: Make the static level its own parameter to JSCompiler::compileScript. r=igor
...
Pre-patch, the initial static level at which a script should be
compiled to run is passed in the upper sixteen bits of the tcflags
parameter to JSCompiler::compileScript; because JSTreeContext::tcflags
is a uint16, while the tcflags parameter is a uint32, we know the
parameter's upper bits are free.
However, we would like to enlarge JSTreeContext::tcflags to 32 bits,
as we already have a handful of new flags that belong there. This
patch moves the static level to its own parameter, which has a default
argument.
2009-10-08 10:29:03 -07:00
Jim Blandy
0d6cdd1921
Bug 514585: Use bitfields in JSScript instead of a flag word. r=brendan
...
This is behavior-neutral cleanup in preparation for the real patch.
2009-10-08 10:29:03 -07:00
Jim Blandy
b101872320
Bug 514567: Fix error processing in PrimaryExpr. r=brendan
...
This code seems to assume that one can proceed if pn3 is NULL, but we
never check it again further down. Instead, we create TOK_COLON nodes
whose left (and perhaps right) children are NULL. It seems to me that
the TOK_RC case in js_EmitTree will choke on this.
2009-10-08 10:29:02 -07:00
Brendan Eich
2cf8dc9cf7
Remove now-redundant USE2DEF flags propagation before LinkUseToDef, which does it (510783 followup, r=mrbkap).
2009-09-17 19:44:24 -07:00
Brendan Eich
59ee053a5e
Propagate USE2DEF flags in LinkUseToDef, duh (510783, r=mrbkap).
2009-09-17 18:56:23 -07:00
David Anderson
92ad5b2859
Renamed JSOP_LOOP to JSOP_TRACE, which now also gets emitted at the start of scripts (bug 515806, r=brendan).
2009-09-14 17:26:16 -07:00
Brendan Eich
79d774b114
Bug 515815 - TM: Regression on shell test case regress-452498-224.js (r=igor).
2009-09-11 10:47:47 -07:00
Brendan Eich
1cef550e73
Fix obvious thinko that bites Gary's fuzzer (515892, r=igor tomorrow, I trust).
2009-09-11 00:00:52 -07:00
Brendan Eich
016b0f207a
Bug 514981 - JSStackFrame::sharp{Array,Depth} should be locals allocated due to #n[#=] usage (r=igor).
2009-09-09 20:21:15 -07:00
Jason Orendorff
e170e4b573
Bug 511728 - Misc. cleanup from bug 503080. r=igor.
...
--HG--
extra : rebase_source : f4b7b385bbece2316912ce67c77a49ac8fca6e5c
2009-09-09 15:53:37 -05:00
Brendan Eich
cce4dce512
Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff).
2009-09-03 14:41:19 -07:00
Andreas Gal
d4c110a6b1
Avoid bit twiddling on double values (513063, r=brendan).
2009-08-27 13:59:19 -07:00
Jason Orendorff
df3e3a355d
Bug 510709 - Assertion failure: PN_TYPE(pn) == TOK_FUNCTION, at ../jsparse.cpp. r=brendan.
2009-08-27 12:28:28 -07:00
Brendan Eich
b063d31520
Back out changeset aff171a8c4f0 (bug 471214).
2009-08-26 09:34:41 -07:00
Brendan Eich
bd8f55c0ad
Join function objects where possible (471214, r=igor).
2009-08-25 23:42:37 -07:00
David Anderson
e322e64001
Removed JSStackFrame::xmlNamespace (bug 512389, r=brendan).
2009-08-25 12:07:45 -07:00
Luke Wagner
3cf8a59c01
Bug 503952 - Use JSTempVector in scanner/parser; remove JSStringBuffer (r=brendan)
2009-08-14 16:10:59 -07:00
Jason Orendorff
d25d775501
Bug 510568 - Kill one last #if JS_HAS_LVALUE_RETURN directive. r=Waldo.
2009-08-15 07:21:06 -05:00
Igor Bukanov
7e607aac4d
bug 495061 - js_PutArgsObject and js_PutCallObject that never fail. r=brendan
2009-08-14 20:43:16 +02:00
Jason Orendorff
8384b1e239
Bug 509098 - Remove JS_HAS_LVALUE_RETURN support. r=brendan.
2009-08-13 16:18:33 -05:00
Robert Sayre
c8a923e58e
Merge mozilla-central to tracemonkey.
2009-08-12 12:18:38 -07:00
Jason Orendorff
335eeb15af
Bug 461269 - Remove TOK_RP nodes from the parse tree. r=brendan.
2009-08-10 14:00:46 -05:00
Robert Sayre
99a0962393
Backed out changeset e09130fcb013
2009-07-28 18:51:35 -04:00
Brendan Eich
8d27b07ec5
Bug 471214 - Join function objects transparently, clone via read barrier to satisfy de-facto standard (r=igor).
2009-07-28 13:20:14 -07:00
Andreas Gal
e7f2714ea1
When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo).
2009-07-27 21:10:12 -07:00
David Mandelin
cfb0d1fd1b
Bug 506821: clean up trailing whitespace, r=brendan
2009-07-27 18:40:12 -07:00
Jason Orendorff
a31f80165c
Bug 503080 - Remove prototype-scope-sharing. r=brendan.
2009-07-21 16:25:11 -05:00
Brendan Eich
4632276b25
Bug 499790 - common sub-expression elim for repeated (PND_ASSIGNED | PND_FUNARG), r=mrbkap.
2009-07-17 11:36:45 -07:00
Andreas Gal
f8892ed21b
Shrink slots during GC only, split ReallocSlots into Alloc/Grow/ShrinkSlots (504478, r=igor).
2009-07-16 18:42:54 -07:00
David Anderson
a46f3aa0f0
Fix -0 modulo -x disagreement on Windows (bug 503595, r=sayrer).
2009-07-11 12:40:37 -07:00
Blake Kaplan
3cd1e79160
Bug 498993 - Don't mistake initialization for assignment when the assignment is hidden by a secon var declaration. r=brendan/jorendorff
2009-06-18 14:52:06 -07:00
Jason Orendorff
52fe5a97ba
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
Jason Orendorff
45de8e01db
Bug 498395 - "Assertion failure: !(pn->pn_dflags & flag), at ../jsparse.h". r=mrbkap, r=brendan.
...
--HG--
extra : rebase_source : c3d0ecfcbbbce0c7494ffd53dc240c2b69e6eb8f
2009-06-15 15:42:00 -05:00
Brendan Eich
1bd5c5dc73
Over-parenthesize per house style and to avoid GCC warning (r=nnethercote, private communication).
2009-06-14 19:37:43 -07:00
Brendan Eich
51fe52e6f9
Wrapper automation should not apply to flat closures, plus cleanup (496790, r=igor).
2009-06-09 00:51:02 -07:00
Brendan Eich
a08c609235
Fix destructuring binding to follow the cheezy dominance relation rules of the upvar analysis (496134, r=mrbkap; take 2).
2009-06-08 13:03:50 -07:00
Robert Sayre
f44a576277
Back out bug 496134, destructuring assignment upvar fixes due to reported fuzzer problems
2009-06-06 02:20:06 -04:00
Brendan Eich
05f8dc2692
Fix destructuring binding to follow the cheezy dominance relation rules of the upvar analysis (496134, r=mrbkap).
2009-06-05 16:14:00 -07:00
Brendan Eich
b95d489795
Skip let binding not in scope (in let head, e.g.) and find any shadowed binding (496532, r=mrbkap).
2009-06-05 13:55:51 -07:00
Brendan Eich
77da9d75ed
Bug 494235: wrap escaping optimized closures for the debugger API (r=igor/mrbkap).
2009-06-04 18:58:47 -07:00
Brendan Eich
64f0a471ba
Make @ns::attr force HEAVYWEIGHT to avoid having to analyze ns as a lexical name (hack for 496316, r=igor).
2009-06-04 10:58:06 -07:00
Blake Kaplan
931a6dcb91
Bug 495843 - Crash [@ js_Interpret] or Assertion failure: cg->stackDepth == stackDepth, at ../jsemit.cpp. r=brendan
2009-06-03 01:17:20 -04:00
Brendan Eich
d3fe4a3144
Bug 495045: test tcflags for new Function's top-level, its body, when vetoing flat closure optimization based on HEAVYWEIGHTness (r=jorendorff).
2009-05-28 17:08:06 -07:00
Jason Orendorff
74a5f6c8f5
Bug 495166 - static-analysis error in jsparse.cpp JSCompiler::compileScript: return without going through label out. r=brendan.
2009-05-28 10:08:57 -05:00
Brendan Eich
f136df48d6
Bug 494954 - JS_GetScriptLineExtent() does not returns the right value (r=mrbkap).
2009-05-27 18:53:22 -07:00
Jason Orendorff
83d855cfa1
Followup to changeset f9ad6d736430 (for bug 493232): fix a stale comment. r=brendan in IRC.
2009-05-27 17:48:39 -05:00
Jason Orendorff
70dbad9c94
Bug 493232 - Wrong variable value accessed in closure. r=brendan.
2009-05-27 15:46:03 -05:00
Brendan Eich
52745d8646
Bug 494544 - Uninitialized variable undefined after assignment whose initializer is a closure capturing that var (r=mrbkap).
2009-05-23 11:01:11 -07:00
Jason Orendorff
bb1a005103
Bug 493260 - js1_5/Regress/regress-344959.js - with and eval do not inhibit the flat closure optimization. r=brendan.
2009-05-21 13:00:53 -05:00
Brendan Eich
5c7f7e02b8
Bug 493760: the real fix for problem left in wake of patch for bug 493466 (r=mrbkap).
2009-05-19 18:40:55 -07:00
Brendan Eich
72c8adabdb
Back out patch for 493760, chrome mochitests failed.
2009-05-19 16:34:40 -07:00
Brendan Eich
41f161471d
Bug 493760: fix bad typo in patch for bug 493466 (superluminal r=mrbkap).
2009-05-19 12:11:09 -07:00
Brendan Eich
d552a194d4
Bug 493466 - TM: youtube.com customization broken (r=mrbkap).
2009-05-18 18:02:51 -07:00
Brendan Eich
51dd82a552
Bug 489034 - let declaration getting lost in certain situations (r=mrbkap).
2009-05-15 15:32:57 -07:00
Jason Orendorff
cd986613f8
Bug 492714 - "Assertion failure: cg->staticLevel >= level, at ../jsemit.cpp" with genexp. r=brendan
2009-05-13 19:02:33 -05:00
Igor Bukanov
92f94e451c
bug 491126 - sharing object map for non-native objects. r=brendan
2009-05-14 12:35:23 +02:00
Brendan Eich
6ffa7ccf08
Bug 492914 - TM: trace aborts due to flat closure analysis bug (r=mrbkap).
2009-05-13 23:01:08 -07:00
Brendan Eich
c244179e84
Bug 492150 - Unexpected error occurred when japascript.options.strict is true (r=mrbkap).
2009-05-10 12:52:03 -07:00
Brendan Eich
9eb1ab4a95
Bug 471703 - Don't optimize group assignment given holey RHS (r=igor).
2009-05-07 21:50:32 -07:00
Brendan Eich
e05a9f255d
Bug 491806 - "Assertion failure: (uintN)i < ss->top, at ../jsopcode.cpp" with uneval, for, yield (r=mrbkap).
2009-05-07 21:31:42 -07:00
Jim Blandy
5f49bb8f1b
Bug 508637: Allow trailing commas in object initializers in strict mode. r=igor
2009-08-07 10:45:27 -07:00
Brendan Eich
24a0ac90ef
ug 490741 - Crash [@ js_GetUpvar] on datepick (r=mrbkap).
2009-05-01 18:55:26 -07:00
Brendan Eich
e9db6fcb64
Bug 375250 - Reject (JSON is fixed now) E4X masquerading as JS source (r=igor/mrbkap).
2009-04-29 16:46:43 -07:00
Brendan Eich
040f6baa77
Bug 490339 - Unexpected ReferenceError when using "new Function()" (r=mrbkap).
2009-04-27 14:43:49 -07:00
Brendan Eich
b554a4c785
Bug 489552 - Earth Day Recycling for Fun Kids - Assertion failure: RecycleFuncNameKids, at ../jsparse.cpp:444 (r=mrbkap).
2009-04-22 15:30:36 -07:00
Brendan Eich
b2edd9eb0c
Bug 489079 - Google Calendars disappear with latest trunk of Shredder [Error: Error parsing XML streamReferenceError: gCal is not defined] (r=mrbkap).
2009-04-21 18:20:21 -07:00
Brendan Eich
af27492080
Bug 488963 - "Assertion failure: cg->lexdeps.lookup(atom), at ../jsemit.cpp" (tachyonal r=mrbkap).
2009-04-20 18:46:46 -07:00
igor
48c3925a9a
js_SetPropertyHelper does not null *entryp for read-only properties (489171, r=gal,brendan).
2009-04-20 17:00:59 -07:00
Brendan Eich
be23b17c5d
Bug 488690 - "Assertion failure: dn->pn_defn, at ../jsemit.cpp" (r=mrbkap).
2009-04-20 15:51:27 -07:00
Brendan Eich
fc377191d1
Bug 488802 - Crash at [@js_Interpret] on YOMIURI ONLINE (r=mrbkap).
2009-04-16 23:35:58 -07:00
Brendan Eich
9d4a42aeba
Bug 488475 - "Assertion failure: \!(pn->pn_dflags & flag), at ../jsparse.h" (r=me).
2009-04-15 09:30:46 -07:00
Brendan Eich
7b9f2ffb1f
Bug 488015 - Crash [@ js_GetUpvar ] (also bogus JS errors, also probably Crash [@js_Interpret]) (future r=mrbkap, see bug).
2009-04-15 01:57:13 -07:00
Brendan Eich
8f9886f858
Bug 488272 - Crash [@ RebindLets] (r=mrbkap).
2009-04-14 17:52:13 -07:00
Brendan Eich
898204a579
Back out bad patch for 488272.
2009-04-14 17:20:12 -07:00
Brendan Eich
288ee8ccdd
Bug 488272 - Crash [@ RebindLets] (r=mrbkap).
2009-04-14 11:34:05 -07:00
Igor Bukanov
d738892163
Backed out changeset 595ebe7b82fa - it had wrong patch
2009-04-11 10:07:42 +02:00
Igor Bukanov
de22fe3e47
bug 462734 - fixing JSOP_BINDNAME caching issues. r=brendan
2009-04-11 10:04:24 +02:00
Igor Bukanov
fd755722cc
bug 486713 - fixing flag propagation to generator expression function. r=brendan
2009-04-10 20:50:47 +02:00
Brendan Eich
26a5b7f3fc
Bug 487563 - Crash [@ js_Interpret] (r=mrbkap).
2009-04-09 18:44:54 -07:00
Brendan Eich
b9323a1394
Bug 487209 - erroneous redeclaration of let ... with try {...} catch(e) {var e...} (r=mrbkap).
2009-04-08 18:42:20 -07:00
Brendan Eich
0b6ed95284
Bug 487538 - bug 487271 left three tests broken in its wake (r=mrbkap).
2009-04-08 18:27:44 -07:00
Brendan Eich
3f4a58e4f0
Bug 487271 - Crash [@ js_Invoke ], and missing google-maps background, at padmapper.com (r=mrbkap).
2009-04-08 13:14:02 -07:00
Brendan Eich
240c326a21
Bug 487320 - named function objects can escape without detection by the upvar analysis (r=mrbkap).
2009-04-07 17:10:33 -07:00
Blake Kaplan
d17152f491
Bug 487215 - A lambda expression that uses arguments might escape, so don't clear the funarg flag. r=brendan
2009-04-07 15:48:16 -07:00
Brendan Eich
962b187fe5
upvar2, aka the big one take 2 (452598, r=mrbkap).
2009-04-05 21:17:22 -07:00
Jeff Walden
a89f043904
Grammar fix to kick a rando-orange box to green
2009-04-04 19:41:50 -07:00
Andreas Gal
706120c0fb
Backed out changeset 972c44aa9d1f (bug 452598).
2009-04-04 10:14:52 -07:00
Brendan Eich
5f4d9ff474
upvar2, aka the big one (452598, r=mrbkap).
2009-04-04 10:05:49 +01:00
Igor Bukanov
a572accd66
bug 419662 - nested function definitions must come after destructuring argument initializer. r=mrbkap
2009-04-03 10:02:27 +02:00
Igor Bukanov
09ffabb7a1
bug 485164 - fixing sharp semantic regressions. r=mrbkap
2009-04-03 09:53:02 +02:00
Igor Bukanov
fdf059f766
bug 486139 - annotating destructuring JSOP_DUP for the decompiler. r=brendan
2009-04-02 16:31:54 +02:00
Igor Bukanov
7548565a13
bug 486124 - removal of unused TCF_HAS_DEFXMLNS. r=mrbkap
2009-04-01 10:33:43 +02:00
Robert Sayre
150b7d8a28
Merge tracemonkey to mozilla-central.
2009-03-24 13:49:05 -04:00