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