Commit Graph

157 Commits

Author SHA1 Message Date
Robert Sayre
8dac81dafc Merge 2009-12-01 15:51:22 -05:00
Robert Sayre
4ea539c658 Relanding: Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). Backed out changeset ee7bfc1923ad 2009-12-01 15:49:15 -05:00
Robert Sayre
8be5b171b9 Backed out changeset c03ebf340688. Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). 2009-12-01 09:56:16 -05:00
Robert Sayre
5d34830070 Backout bug 473228 and its follow-up, temporarily, to attempt a clean merge of other stuff. 2009-12-01 09:57:20 -05:00
Igor Bukanov
13fbc6f2c6 Backed out changeset b774250f04d3 - the landed patch for bug 424558 has regressed. 2009-11-30 15:33:04 +03:00
Igor Bukanov
a09a76650d bug 424558, r=brendan 2009-11-29 20:33:57 +03:00
Leon Sha
1e26add917 Bug 530018 - js_DecompileToString Undefined symbol. r=jim 2009-11-27 09:22:24 +08:00
Brendan Eich
c731045c51 Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). 2009-11-20 16:14:42 -08:00
timeless@mozdev.org
97876953bd Bug 506699 js_printf doesn't always use va_end after va_start. rs=brendan 2009-11-23 16:20:55 -08:00
Blake Kaplan
b93b80eb94 Bug 530537 - Don't over-parenthesize JSOP_CONCATN. r=brendan over IRC 2009-11-23 18:08:05 -05:00
Jim Blandy
34a27f0c88 Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
Jim Blandy
ae0ff5874f Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor
These macros were intended to help avoid passing unused parameters
when JS_ARENAMETER is not defined, but they're not worth the trouble.
The unused parameter doesn't elicit warnings, and the performance
impact of passing the unneeded argument is negligible.

This also removes support for JS_ARENA_CONST_ALIGN_MASK, which is not
used.
2009-11-18 13:33:53 -08:00
Jim Blandy
b76416cc57 Bug 514585: Move 'grouped' to explicit param of JS_NEW_PRINTER. r=igor
Make all the JSPrinter status bits explicit flags to JS_NEW_PRINTER.
Only in public-facing functions like JS_DecompileFunction should we be
peeling bits out of indent values and turning them into flags;
internally, we can change interfaces to make more sense.

This is preparation for adding another flag to JS_NEW_PRINTER.
2009-11-05 14:34:39 -08:00
Jason Orendorff
8c514f795a Bug 524564 - "Assertion failure: 0, at ../jsopcode.cpp" with uneval, yield, do...while. r=dvander. 2009-10-30 14:56:10 -05:00
David Mandelin
6378284cae Backed out changeset 723a2622ad4a: tracemonkey tinderbox build failures 2009-10-27 17:46:09 -07:00
Jim Blandy
48cec69361 Bug 514585: Move 'grouped' to explicit param of JS_NEW_PRINTER. r=igor
Make all the JSPrinter status bits explicit flags to JS_NEW_PRINTER.
Only in public-facing functions like JS_DecompileFunction should we be
peeling bits out of indent values and turning them into flags;
internally, we can change interfaces to make more sense.

This is preparation for adding another flag to JS_NEW_PRINTER.
2009-10-27 16:38:09 -07:00
David Anderson
e40deebae7 Fixed decompiler assertion related to JSOP_TRACE (bug 522624, r=brendan). 2009-10-23 14:28:35 -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
David Anderson
9593aceb3c Skip JSOP_TRACE after JSOP_CALL when the decompiler expects it (bug 520003, r=brendan). 2009-10-02 12:36:27 -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
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
b53824855d Bug 513119 - Change JSScript macros to methods. r=Waldo. 2009-09-09 18:52:55 -05:00
Brendan Eich
fd61e1b61a Fix imacro vs. script code disassembly/decompilation confusion (510644, r=jorendorff). 2009-09-04 16:27:17 -07: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
Luke Wagner
5c14309cd1 Bug 511750 - factor template utilities into js::tl (r=brendan)
--HG--
extra : rebase_source : a5a396811268e71af8e56c66dab491f3081bc20a
2009-09-01 18:46:19 -07:00
Luke Wagner
a5b9103165 Bug 419743 - Add JSOP_CONCATN (r=waldo) 2009-08-18 15:43:17 -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
Jason Orendorff
8384b1e239 Bug 509098 - Remove JS_HAS_LVALUE_RETURN support. r=brendan. 2009-08-13 16:18:33 -05:00
timeless@mozdev.org
bc35a8740a Bug 504395 SimulateImacroCFG leaks tmp_pcstack when LOCAL_ASSERT fails
r=graydon
2009-08-12 11:49:52 +02: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
Andreas Gal
69b9d107c2 Remove unnecessary cast to unsigned (introduced by bug 502241, r=graydon). 2009-07-10 17:18:25 -07:00
Andreas Gal
1406080795 Consistently use signed ints for pcdepth (502241, r=brendan). 2009-07-03 17:03:24 -07:00
Jason Orendorff
52fe5a97ba Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05: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
Igor Bukanov
ffa8b1615c bug 495216 - proper accounting of args and vars for Call object. r=brendan 2009-05-29 14:23:58 +02:00
Graydon Hoare
3471a48ea3 Bug 470964 - Simulate CFG in imacro assembler and decompiler, r=brendan. 2009-04-24 09:07:49 -07:00
Jeff Walden
61aee1746d Bug 473096 - js1_5/Regress/regress-366601.js - Internal Error: script too large. r=brendan 2009-04-10 17:41:13 -07:00
Brendan Eich
962b187fe5 upvar2, aka the big one take 2 (452598, r=mrbkap). 2009-04-05 21:17:22 -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
fdf059f766 bug 486139 - annotating destructuring JSOP_DUP for the decompiler. r=brendan 2009-04-02 16:31:54 +02:00
Blake Kaplan
3b132823ae Bug 486029 - Use C++ style casts in more places. r=brendan 2009-03-30 16:33:54 -07:00
Igor Bukanov
0604ee2935 bug 453492 - hiding JSCodeSpec.(nuses|ndefs) behind inlines to properly deal with variable stack bytecodes. r=brendan 2009-03-30 16:19:50 +02:00
Robert Sayre
d3ae3d827d Merge mozilla-central to tracemonkey. 2009-03-29 10:42:32 -07:00
Andrew Paprocki
24b97dd380 Bug 485576 - Fix a few minor gcc warnings. r=igor 2009-03-27 15:45:48 -07:00
Jim Blandy
875aee5e88 Bug 479258: Include "jsstdint.h" for <stdint.h> type use within SpiderMonkey. r=brendan 2009-03-18 11:38:16 -07:00
Igor Bukanov
4ccdead266 bug 480700 - no more static asserts in headers. r=brendan 2009-03-05 12:12:50 +01:00