Commit Graph

299 Commits

Author SHA1 Message Date
igor%mir2.org
26faf19493 Bug 394673: avoid recursion with long chains of "||" or "&&" in JS code. r=brendan
git-svn-id: svn://10.0.0.236/trunk@236322 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 21:53:17 +00:00
igor%mir2.org
a6d0dcb96f Bug 393368: new API to limit heap consumption by stack-like data structures used by compiler, decompiler and interpreter.
git-svn-id: svn://10.0.0.236/trunk@233163 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-27 22:21:55 +00:00
igor%mir2.org
fed9f64bb2 Bug 391290: mutability flag for strings is stored inside strings. r=brendan
git-svn-id: svn://10.0.0.236/trunk@232204 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-16 06:23:06 +00:00
brendan%mozilla.org
1625a24bdd Fast (frame-less) native call optimizations (385393, r=igor).
git-svn-id: svn://10.0.0.236/trunk@231255 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 04:33:52 +00:00
brendan%mozilla.org
7050bb0c78 Backing out, see bug 389122 and orange or red tinderboxes.
git-svn-id: svn://10.0.0.236/trunk@230578 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 23:21:20 +00:00
brendan%mozilla.org
18ee45583c Fast natives and related optimizations (385393, r=igor).
git-svn-id: svn://10.0.0.236/trunk@230576 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 21:39:42 +00:00
igor%mir2.org
3482078f3d Bug 386885: JSAtom.number is removed in favour of using atoms itself for hashing. r=brendan
git-svn-id: svn://10.0.0.236/trunk@229690 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 09:25:45 +00:00
igor%mir2.org
0ec23405cf Bug 385729: objects and regexps are stored in separated tables in JSScript. r=brendan,mrbkap
git-svn-id: svn://10.0.0.236/trunk@229506 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 09:03:37 +00:00
crowder%fiverocks.com
2e9c5abf21 Bug 357016: spidermonkey should be buildable by a C++ compiler, patch by
crowder/Jason Orendorff, r=brendan


git-svn-id: svn://10.0.0.236/trunk@229375 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:37:48 +00:00
igor%mir2.org
2283248466 Bug 349326: for-in loop now always closes iterator objects. r=brendan
git-svn-id: svn://10.0.0.236/trunk@229141 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 12:13:27 +00:00
crowder%fiverocks.com
47a0bd86c4 Bug 384809 : Various JS engine crashes/leaks in OOM conditions, r=brendan, patch by Gavin Reaney, gavin@picsel.com
git-svn-id: svn://10.0.0.236/trunk@228294 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-19 04:10:03 +00:00
mrbkap%gmail.com
3056e2fa00 Remove indirect eval. bug 382509, r=brendan
git-svn-id: svn://10.0.0.236/trunk@227498 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-04 23:03:04 +00:00
mrbkap%gmail.com
b70e41b287 Backing out to fix orange
git-svn-id: svn://10.0.0.236/trunk@227493 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-04 22:18:25 +00:00
mrbkap%gmail.com
2b6c77f00b Remove indirect eval. bug 382509, r=brendan
git-svn-id: svn://10.0.0.236/trunk@227487 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-04 21:40:55 +00:00
brendan%mozilla.org
f5ffbda264 Implement ES4/JS2 expression closures (381113, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@227205 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-30 01:49:43 +00:00
brendan%mozilla.org
b78f5fd4c6 Fix delete parser to fold constants in its operand to discern genexp error case (382355, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@227200 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-30 00:49:53 +00:00
mrbkap%gmail.com
7c1accd1f1 If the scanner returned TOK_ERROR, it already reported an error. bug 380371, r=brendan
git-svn-id: svn://10.0.0.236/trunk@226634 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-19 02:09:23 +00:00
brendan%mozilla.org
69ddc3aa41 Restrict for([k,v] in o) special case to JS1.7 (366941, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@226622 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-18 20:55:06 +00:00
brendan%mozilla.org
9c307e16dc Support generator expressions for JS1.8 (380237, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@226595 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-18 01:41:17 +00:00
igor%mir2.org
36e7db18bc Bug 379566: keywords are no special with get/set getters. r=brendan
git-svn-id: svn://10.0.0.236/trunk@226462 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 15:17:14 +00:00
brendan%mozilla.org
61a4844d55 Followup fix to dumb bug in last checkin (379442, r=me).
git-svn-id: svn://10.0.0.236/trunk@225439 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-02 08:12:38 +00:00
brendan%mozilla.org
0ecb7ff75f Skip #n= at front of initialiser on right of destructuring assignment forms (368224, r=igor).
git-svn-id: svn://10.0.0.236/trunk@225435 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-02 07:24:20 +00:00
igor%mir2.org
be8566dadc Bug 373175: hiding code to set arena names behind JS_ARENAMETER. r=brendan
git-svn-id: svn://10.0.0.236/trunk@224346 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-10 13:29:10 +00:00
brendan%mozilla.org
a9dc8e4a74 Add -o <option> to shell; add JSOPTION_ANONFUNFIX and test it for ECMA conformance (376052, r=igor).
git-svn-id: svn://10.0.0.236/trunk@224290 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-07 01:20:28 +00:00
brendan%mozilla.org
1ec2e53aee Allow case yield: in JS1.7 (352441, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@224153 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-04 18:02:50 +00:00
brendan%mozilla.org
bb67595be3 Fix parser to allow eval(i)++ to compile (352453, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@224048 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-03 03:26:50 +00:00
mrbkap%gmail.com
4fe06b5110 Ignore let declarations when process variable declarations to ensure proper hoisting behavior. bug 350387, r=brendan
git-svn-id: svn://10.0.0.236/trunk@222597 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-29 18:25:22 +00:00
jwalden%mit.edu
5a5f51ee51 Bug 375793 - Constant folder treats NaN coerced to boolean as true. r=mrbkap
git-svn-id: svn://10.0.0.236/trunk@222582 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-29 07:37:15 +00:00
dbaron%dbaron.org
30f83072c5 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@222462 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-27 15:33:45 +00:00
igor.bukanov%gmail.com
ee65483439 Bug 366725: JS_GetString(Bytes|Chars) are no longer used in SpiderMonkey.
git-svn-id: svn://10.0.0.236/trunk@221525 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-08 06:25:23 +00:00
igor.bukanov%gmail.com
0a3731ace6 Bug 369740: function::name extension is now implemented through a generic xml code. r=brendan
git-svn-id: svn://10.0.0.236/trunk@220663 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-21 20:30:50 +00:00
brendan%mozilla.org
dce34655c5 Trailing whitespace police raid.
git-svn-id: svn://10.0.0.236/trunk@219769 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-08 21:21:06 +00:00
brendan%mozilla.org
3630262087 Add macrology for presetting double hashtable capacity to avoid growth given a known initial population (356116, r=dbaron).
git-svn-id: svn://10.0.0.236/trunk@218164 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-10 22:11:34 +00:00
crowder%fiverocks.com
0c197efd33 Bug 374155: fix for too much recursion in E4X literal. Patch by Seno.Aiko@gmail.com. r=crowder
git-svn-id: svn://10.0.0.236/trunk@218026 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-08 23:04:28 +00:00
igor.bukanov%gmail.com
617bf0b194 Bug 313967: function body parser use the shared recycle list. r=brendan
git-svn-id: svn://10.0.0.236/trunk@217013 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-15 10:50:20 +00:00
igor.bukanov%gmail.com
b8fe134378 Bug 362668: JSObject.slot is no longer accessed directly. Instead code uses STOBJ_macros. r=brendan
git-svn-id: svn://10.0.0.236/trunk@216798 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-09 15:02:37 +00:00
brendan%mozilla.org
5ce206c2a5 Back out last checkin.
git-svn-id: svn://10.0.0.236/trunk@216480 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-05 15:46:19 +00:00
brendan%mozilla.org
985f53dfd3 Add JS_DHASH_{,DEFAULT_}CAPACITY macros for realloc-free init (356116, r/sr=mrbkap+shaver/dbaron).
git-svn-id: svn://10.0.0.236/trunk@216470 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-05 00:52:05 +00:00
mrbkap%gmail.com
de6160d7ee Munge call ops for delete in the code generator instead of the parser because the parser doesn't have enough information to always munge correctly. bug 356693, r=brendan
git-svn-id: svn://10.0.0.236/trunk@214841 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-07 01:32:02 +00:00
brendan%mozilla.org
5488f97fe5 Fix body block scope capture by local functions (357754, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@214290 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-28 05:55:06 +00:00
brendan%mozilla.org
6e4bba91e5 Check in fix from Brian Crowder <crowder@fiverocks.com> to raise apply arg array length limit (350256, r=me).
git-svn-id: svn://10.0.0.236/trunk@213954 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-21 19:03:53 +00:00
brendan%mozilla.org
e62931ea86 Fix 356250, r=mrbkap.
git-svn-id: svn://10.0.0.236/trunk@213632 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-14 04:39:26 +00:00
brendan%mozilla.org
3ba25b5581 Fix 356402, r=mrbkap.
git-svn-id: svn://10.0.0.236/trunk@213553 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-12 18:05:59 +00:00
igor.bukanov%gmail.com
c8e48e138a Function code generation is in a separated function. bug=355834 r=brendan
git-svn-id: svn://10.0.0.236/trunk@213297 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-07 19:50:02 +00:00
gavin%gavinsharp.com
a2dafc39b8 Un-back out the patch from bug 354392, since it didn't help with the mac orange (original patch by Brian Crowder <crowder@fiverocks.com>, r=brendan)
git-svn-id: svn://10.0.0.236/trunk@213099 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-04 04:40:18 +00:00
gavin%gavinsharp.com
407d940fd8 Back out the patch from bug 354392 to rule it out as a cause of the Mac tinderbox bustage
git-svn-id: svn://10.0.0.236/trunk@213090 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-03 23:59:55 +00:00
brendan%mozilla.org
b5fb848c67 Fix 355101, r=self.
git-svn-id: svn://10.0.0.236/trunk@212986 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 07:08:11 +00:00
brendan%mozilla.org
72d976ae5f Fix 355052, r=igor.
git-svn-id: svn://10.0.0.236/trunk@212975 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 01:06:44 +00:00
brendan%mozilla.org
e771ce98fe Fix 355002.
git-svn-id: svn://10.0.0.236/trunk@212944 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-01 05:29:05 +00:00
brendan%mozilla.org
a37b0cb961 Don't enforce [k,v] pattern restriction if destructuring for-each (346642).
git-svn-id: svn://10.0.0.236/trunk@212939 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-30 23:53:20 +00:00