Commit Graph

11697 Commits

Author SHA1 Message Date
igor@mir2.org
20e1e61bfd Bug 387229: now DUMP_SCOPE_STATS includes js_scope_stats into the log. r=brendan 2007-07-07 14:55:29 -07:00
dbaron@dbaron.org
85bc16700d Fix bogus trace names. b=387223 r=brendan 2007-07-07 00:30:58 -07:00
mrbkap@gmail.com
978a357c6f Allow chrome files to touch implicit XPCNativeWrappers. bug 387084, r+sr=jst 2007-07-06 17:52:44 -07:00
jwatt@jwatt.org
b661213963 Fixing bug 317304. Implement weak references for JavaScript. Patch by Alex Fritze <alex@croczilla.com>. r+sr=shaver@mozilla.org 2007-07-06 13:13:12 -07:00
brendan@mozilla.org
d3ce030899 Fix degenerate unsigned (enum) comparisons (357016, r=igor). 2007-07-05 16:25:27 -07:00
crowder@fiverocks.com
1bd6dc84a7 Bug 357016: changing this back to (void *) for now to fix burning tree 2007-07-05 13:54:44 -07:00
crowder@fiverocks.com
b5153b0a7c Bug 357016: fixing brendan's nit from comment 23 2007-07-05 13:41:59 -07:00
crowder@fiverocks.com
daa4556abc Bug 357016: spidermonkey should be buildable by a C++ compiler, patch by
crowder/Jason Orendorff, r=brendan
2007-07-05 13:37:47 -07:00
mrbkap@gmail.com
774b9ea95f Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-05 13:13:43 -07:00
mrbkap@gmail.com
a3f0810cc1 Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-05 13:01:12 -07:00
dbaron@dbaron.org
b55a2cb262 Put comment in the right place. b=180380 2007-07-03 14:31:02 -07:00
mrbkap@gmail.com
1605bc2452 Backing out these changes to fix tinderbox orange. 2007-07-02 18:12:41 -07:00
mrbkap@gmail.com
ba27e0932a Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-02 16:39:41 -07:00
brendan@mozilla.org
046a5b5536 Fix redundant statement and out-of-date comment. 2007-07-02 14:06:52 -07:00
igor@mir2.org
9137bfaf4e Bug 349326: for-in loop now always closes iterator objects. r=brendan 2007-07-02 05:13:23 -07:00
sayrer@gmail.com
523df9c569 Bug 180380. nsXPCComponents object and its wrapper leaked at shutdown. Patch by David Baron, David Bradley, and Robert Sayre. r=jst/bzbarsky, sr=dbaron 2007-06-30 16:00:09 -07:00
dbaron@dbaron.org
ab765e1d21 Suspect all native wrappers during cycle collection (last part, rest already done by Graydon). b=368869 r=graydon sr=jst 2007-06-29 20:03:30 -07:00
dbaron@dbaron.org
1f58020b96 Make wrapped native debug dump log the native that is wrapped. b=385549 r+sr=jst 2007-06-29 20:02:15 -07:00
jst@mozilla.org
92a4c5b092 Fixing bug 380474. Use the inner object when looking up methods and adding event listeners. r=mrbkap@mozilla.org, sr=brendan@mozilla.org 2007-06-27 17:28:02 -07:00
mrbkap@gmail.com
2b63ef8316 Skip initial holes when computing the start value of reduce(Right). bug 386030, r=brendan 2007-06-27 17:04:49 -07:00
brendan@mozilla.org
397ecf464e Re-land fix for cloned function object prototyping (300079, r=igor/mrbkap). 2007-06-26 11:19:54 -07:00
enndeakin@sympatico.ca
d165145397 Bug 382034, support optional args in idl, try again with fix for crash calling toString, r+sr=shaver 2007-06-25 07:23:26 -07:00
enndeakin@sympatico.ca
2364c01e63 Bug 382034, back out due to test content/base/test/test_bug352728.html failing 2007-06-22 08:21:13 -07:00
enndeakin@sympatico.ca
23b79c6763 Bug 382034, support optional arguments in idl, r+sr=shaver 2007-06-22 07:22:20 -07:00
dbaron@dbaron.org
4f57c6e110 Back out again. 2007-06-21 20:11:41 -07:00
mrbkap@gmail.com
813d418204 Actually populate the string cache so we don't leak all deflated strings. bug 385378, r=brendan 2007-06-21 17:31:50 -07:00
dbaron@dbaron.org
3416985295 Bug 368869, suspect all native wrappers for cycle collection. Relanding. Patch by graydon@mozilla.com. r=brendan, sr=jst 2007-06-21 15:25:51 -07:00
mrbkap@gmail.com
599875400f Remove useless variable. bug 385368, patch from Gabriel Sjoberg <gabrielsjoberg@gmail.com>, r=mrbkap 2007-06-21 13:38:45 -07:00
sayrer@gmail.com
8e7abbc126 Bug 381651. Tweak XPCOMUtils. Patch by Nickolay_Ponomarev <asqueella@gmail.com>. r=sayrer, sr=bsmedberg 2007-06-20 21:53:35 -07:00
mrbkap@gmail.com
5154e96e3e Implement a full nsIScriptSecurityManager in xpcshell. bug 239969, r+sr=jst 2007-06-20 17:10:48 -07:00
mrbkap@gmail.com
c2900f1bf8 Use the latest version of JS, so the shell always has the newest features. bug 385159, r=brendan 2007-06-20 16:53:55 -07:00
sayrer@gmail.com
d01819ffd5 back out patch for bug 300079 due to leak regressions, as the new textframe code needs to land 2007-06-20 11:53:28 -07:00
brendan@mozilla.org
b028f6e4c2 Test a hypothesis about the shutdown leak that's biting 300079's patch (a=sayrer). 2007-06-20 10:03:15 -07:00
brendan@mozilla.org
32af93813b Fix violation of function prototyping due to cloned function object implementation (300079, r=mrbkap; expecting r=igor after the fact, want to get this in for widespread testing tomorrow). 2007-06-19 23:37:15 -07:00
sayrer@gmail.com
7dae407d8c Bug 384168. C.u.import doesn't prevent recursion in the presence of circular dependencies. r=brendan, sr=bsmedberg 2007-06-19 23:29:49 -07:00
brendan@mozilla.org
1d08c89997 Function atom if non-null must be string-keyed (385134, r=mrbkap). 2007-06-19 22:11:38 -07:00
gavin@gavinsharp.com
72a9b9d6c0 Back out previous patch for bug 239969 (bustage, and tree is closed) 2007-06-19 19:30:54 -07:00
mrbkap@gmail.com
ed3cb9fd25 Implement an nsIScriptSecurityManager for the xpcshell. bug 239969, r+sr=jst 2007-06-19 19:13:22 -07:00
mrbkap@gmail.com
dee0d7449d Backing this patch out again to fix sessionstore. See bug 300079 and 385085 2007-06-19 19:06:00 -07:00
brendan@mozilla.org
1310ca8ca2 Fix violation of function prototyping due to cloned function object implementation (300079, r=igor). 2007-06-19 11:49:53 -07:00
crowder@fiverocks.com
a8f2207ba1 Bug 384809 : Various JS engine crashes/leaks in OOM conditions, r=brendan, patch by Gavin Reaney, gavin@picsel.com 2007-06-18 21:10:03 -07:00
brendan@mozilla.org
b048a14b1d Clean up property attributes (384846, r=mrbkap). 2007-06-18 19:52:50 -07:00
crowder@fiverocks.com
8cb800285d Bug 384901: leak in jsfile.c, patch by Robin Ehrlich, rehrlich@ubiqinc.com, r=mrbkap 2007-06-18 14:40:30 -07:00
mrbkap@gmail.com
890edf6388 Protect js_GetStringBytes from callers that happen during the last GC. Patch from brendan, bug 336907, r=daumling sr=shaver 2007-06-18 14:38:31 -07:00
crowder@fiverocks.com
d1f64c8dba Bug 383607: add ARM pure endian double support to JS engine, r=crowder, patch by Gavin Reaney gavin@picsel.com 2007-06-18 14:31:48 -07:00
crowder@fiverocks.com
c1aa44fdaa bug 379056: quieting the assertions here for all but myself and mrbkap, r=mrbkap 2007-06-18 13:24:00 -07:00
igor@mir2.org
64f1c8053d Bug 384478: Patch from Mike Moening to fix warning when compiling with VC. r=me 2007-06-18 12:33:21 -07:00
jwatt@jwatt.org
bc9300967d Fixing bug 383917. The new Components.utils.import code shouldn't spam the console. r=sayrer@gmail.com, sr=brendan@mozilla.com 2007-06-18 08:36:16 -07:00
bzbarsky@mit.edu
4c4d3394be Backing out bug 300079 to see whether that fixes tinderbox orange. 2007-06-18 07:32:35 -07:00
brendan@mozilla.org
98945d72c4 Fix violation of function prototyping due to cloned function object implementation (300079, r=igor). 2007-06-17 22:33:36 -07:00
brendan@mozilla.org
1f18b43300 Remove __callee__ property of Call prototypes (384642, r=igor). 2007-06-17 22:10:19 -07:00
brendan@mozilla.org
1040011453 Emit JSOP_GROUP when optimizing away delete (382981, r=mrbkap). 2007-06-17 11:05:37 -07:00
brendan@mozilla.org
f1c02f9635 Fix recent regression in CheckSideEffects for paren-expr case (384680, r=mrbkap). 2007-06-16 12:48:44 -07:00
brendan@mozilla.org
32fbc12486 Better entrainment avoidance for Call.arguments (383269, r=igor). 2007-06-15 17:29:21 -07:00
mrbkap@gmail.com
56aed6adf0 Restrict who can claim to implement nsISecurityCheckedComponent. bug 352882, r=jst sr=bzbarsky 2007-06-15 14:44:51 -07:00
mrbkap@gmail.com
aa1ee1385b Use a better filename when eval is used across scopes. bug 369211, r=brendan 2007-06-15 14:00:26 -07:00
igor@mir2.org
bc0a21a243 Bug 378793: Patch from Mike Moening and me to implement per-context debug hooks. r=brendan 2007-06-14 23:44:18 -07:00
mrbkap@gmail.com
781e986b4b Allow C.u.Sandbox to take a principal or an nsIScriptObjectPrincipal. bug 353732, r+sr=jst 2007-06-14 16:50:28 -07:00
graydon@mozilla.com
ebd1fa3764 Amazingly, backing out 368869 again. 2007-06-14 13:40:17 -07:00
igor@mir2.org
ac5551e88a Bug 378793: removal of the previous commit. 2007-06-14 13:20:37 -07:00
igor@mir2.org
758bc9b1cf Bug 378793: Patch from Mike Moening to implement per-context debug hooks. r=me,brendan 2007-06-14 13:04:09 -07:00
graydon@mozilla.com
7e6c0bf09e Bug 368869, suspect all native wrappers for cycle collection. Nth attempt, slightly safer.r=brendan, sr=jst 2007-06-14 12:42:58 -07:00
brendan@mozilla.org
240b795fc5 Avoid entraining arguments in a Call prototype (383269, r=igor). 2007-06-14 00:26:19 -07:00
igor@mir2.org
1aa40de49d Bug 384151: refactoring boxing of primitive values, r=brendan 2007-06-14 00:07:01 -07:00
mrbkap@gmail.com
1e270ee66f Make Object.prototype.toSource deal with even more __proto__ hacking. bug 383965, r=crowder 2007-06-12 15:07:20 -07:00
crowder@fiverocks.com
55c1df9820 Bug 375801: Using (void 0) instead of "undefined" in toSource and uneval(), r=mrbkap 2007-06-12 12:33:40 -07:00
crowder@fiverocks.com
40c1aa5660 Bug 383721: escape tabs on platforms with unusual isprint() routines, r=mrbkap 2007-06-12 12:30:57 -07:00
brendan@mozilla.org
3036f29b1f Fix CheckSideEffects over-aggressiveness (383674, r=mrbkap). 2007-06-12 01:26:26 -07:00
igor@mir2.org
b60c014c39 Bug 384104: Fixing ALE macros to quell GCC strict-aliasing warnings. r=brendan 2007-06-12 00:27:23 -07:00
jwalden@mit.edu
f51d74d1a6 Typo fixes 2007-06-10 15:08:17 -07:00
bzbarsky@mit.edu
33a8653e15 Change the URI argument to Components.utils.import to be a resource: URI. Bug380970, patch by Alex Vincent <ajvincent@gmail.com>, r=sayrer, sr=bsmedberg 2007-06-10 14:13:18 -07:00
graydon@mozilla.com
65eb1c1bf4 Backing out patch in bug 368869, again. Still randomly crashing (as in bug 383763). 2007-06-08 12:08:26 -07:00
gavin@gavinsharp.com
218738d375 Bug 381031: make JS1.8 the default for <xul:script>, and add a JSVERSION_LATEST #define to simplify future changes, patch by Nickolay Ponomarev <asqueella@gmail.com>, r+sr=brendan 2007-06-07 15:50:12 -07:00
asqueella@gmail.com
7cbb96fa68 Bug 381499 - Components.utils.import reports NS_ERROR_FAILURE when the file not existsswitch to NS_ERROR_FILE_NOT_FOUND and update testsr=sayrer, sr=brendan 2007-06-07 15:34:06 -07:00
jwalden@mit.edu
3ac5afd0f6 Bug 369032 - "Assertion failure: kid2->parent == xml || !kid2->parent" with E4X after appendChild; avoid incorrectly reparenting XML by deeply copying instead of mutating. r=mrbkap 2007-06-06 15:06:16 -07:00
crowder@fiverocks.com
0fe28fccb5 Bug 374681: 260 GC roots remain after destroying JSRuntime (not the complete fix, I think), r=brendan 2007-06-06 08:59:45 -07:00
graydon@mozilla.com
ad2d5719f0 Bug #368869, suspect all native wrappers as cycle roots (yet again, after Igor's change to js gc).r=brendan, sr=jst 2007-06-05 16:50:22 -07:00
mrbkap@gmail.com
c95c9cfd67 Remove vestigial initialization 2007-06-05 16:44:21 -07:00
mrbkap@gmail.com
69c8756e8a Be less strict about how you can call eval. In particular, allow callers to call it through other names, as long as the this object is a global object. bug 383381, r=brendan 2007-06-05 16:42:00 -07:00
crowder@fiverocks.com
c82cd955ac Bug 380831: incorrect uneval trying to output a getter function that is a sharp definition, r=igor 2007-06-05 13:20:07 -07:00
mattwillis@gmail.com
6f6f76486f bug 382744 - Correct backwards assertion check in XPCNativeScriptableInfo. Patch by Manish Singh <manish@flock.com>, r=dbaron, sr=shaver 2007-06-05 08:59:44 -07:00
brendan@mozilla.org
d3056296e5 Fix JOF_TMPSLOT accounting (383255, r=igor). 2007-06-04 22:23:29 -07:00
igor@mir2.org
e606f64813 Bug 383188: using code spec flag to declare extra slot used for post ++/--. r=brndan 2007-06-04 20:07:38 -07:00
mrbkap@gmail.com
451fb0609a Fix overflow potential. bug 373931, r=crowder rs=brendan 2007-06-04 17:05:32 -07:00
mrbkap@gmail.com
93e990bf21 Remove indirect eval. bug 382509, r=brendan 2007-06-04 16:03:03 -07:00
mrbkap@gmail.com
bd829af388 Handle error returns from ftell. bug 373934, r=brendan 2007-06-04 16:01:41 -07:00
mrbkap@gmail.com
2a44a73281 Backing out to fix orange 2007-06-04 15:18:25 -07:00
mrbkap@gmail.com
1be4627a47 Fixing bustage, bug 382509 2007-06-04 14:47:13 -07:00
mrbkap@gmail.com
0f3c9fea93 Create XPCNativeWrapper function wrappers with the right parent. bug 370127, r=bzbarsky sr=brendan 2007-06-04 14:43:57 -07:00
mrbkap@gmail.com
3d9131d85e Remove indirect eval. bug 382509, r=brendan 2007-06-04 14:40:55 -07:00
mrbkap@gmail.com
7b221890b4 Whitespace police 2007-06-04 14:38:40 -07:00
igor@mir2.org
38a0fbd114 Bug 381973: new opcode flag top declare an extra temporary slot used by interpreter. r=brendan 2007-06-04 13:01:41 -07:00
brendan@mozilla.org
3d1e7f3d01 Fix fun_resolve to avoid resolving hidden properties (locals/params; 382532, r=mrbkap). 2007-06-04 12:50:30 -07:00
crowder@fiverocks.com
f88d5115d6 Bug 366355: perlconnect removal continues, r=mrbkap, patch by Patrick Welche <pw-fb@newn.cam.ac.uk> 2007-06-04 12:33:42 -07:00
peterv@propagandism.org
0aec607ac4 Fix for bug 382133 ("(function(){}).apply.ee = <foo/>;" causes shutdown crash [@ nsXPConnect::Unlink] during nsCycleCollector::CollectWhite). r/sr=jst. 2007-06-04 03:01:34 -07:00
igor@mir2.org
7d41735dbf Bug 379220: replacing JS_AddRoot calls via doubly-linked lists. r=jst sr=brendan 2007-06-02 08:11:52 -07:00
igor@mir2.org
c030410f7b Bug 382253: consistent termination of inline functions. r=brendan 2007-06-01 20:46:39 -07:00
crowder@fiverocks.com
f27ecbd250 backing out checkin on closed tree 2007-06-01 11:31:02 -07:00
crowder@fiverocks.com
d0c155d1f7 Bug 366355: more perlconnect removal goodness 2007-06-01 11:29:49 -07:00
timeless@mozdev.org
6506c492ee Bug 380886 Possible crashes/leaks in regexp handling in OOM conditionspatch by gavin@picsel.com r=crowder 2007-05-30 23:31:05 -07:00
brendan@mozilla.org
12de539ec7 Fix let-induced anti-bracing logic to cope with group assignment expression statements (356247, r=mrbkap). 2007-05-30 15:39:21 -07:00
crowder@fiverocks.com
237d01a1e4 Bug 381205: object uneval gets confused by special "getter functions", r=mrbkap 2007-05-30 13:05:31 -07:00
bclary@bclary.com
7798f66122 Bug 382182 - script tag should support version 1.8, r=jonas,sr=brendan 2007-05-29 22:55:55 -07:00
igor@mir2.org
612731321f Bug 382335: proper cleanup after generator.close(). r=brendan 2007-05-29 19:29:09 -07:00
brendan@mozilla.org
e7de6b332a Implement ES4/JS2 expression closures (381113, r=mrbkap). 2007-05-29 18:49:42 -07:00
mrbkap@gmail.com
ec71466985 Add a space here for consistency. bug 381108, r=brendan 2007-05-29 18:23:24 -07:00
brendan@mozilla.org
5dee41a384 Fix delete parser to fold constants in its operand to discern genexp error case (382355, r=mrbkap). 2007-05-29 17:49:53 -07:00
crowder@fiverocks.com
9adeac1889 Recent code checkin regressed testcase from 356085 2007-05-29 17:06:21 -07:00
brendan@mozilla.org
d1599626d7 Fix warning from last checkin (r=igor). 2007-05-29 16:17:37 -07:00
crowder@fiverocks.com
e2b7d7dba7 Bug 381301: chomp closing ')' in obj_toSource more correctly, r=mrbkap 2007-05-29 14:05:09 -07:00
mvl@exedo.nl
21821eaf0b bug 382237: make xpctools profiler work, and make it record time spend in the function itself. r=shaver 2007-05-28 08:00:50 -07:00
neil@parkwaycc.co.uk
17aa0501f7 Bug 351007 Crash @ XPCWrappedNative::CallMethod passing null to out A*String parameters r+sr=jst 2007-05-25 13:45:50 -07:00
igor@mir2.org
aa18c72e81 Bug 381779: patch from Gavin Reaney to improve memeory allocation for the sprint stack. r=myself 2007-05-25 04:35:27 -07:00
peterv@propagandism.org
7e189d8549 Fix for bug 377884 (Switch nsXPConnect::Traverse to use tracing). r=jst/igor, sr=dbaron. 2007-05-25 01:42:08 -07:00
peterv@propagandism.org
98955fbcad Fix for bug 368774 (Make cycle collector work with refcounted non-XPCOM objects). r=dbaron, sr=sicking. 2007-05-24 07:10:02 -07:00
igor@mir2.org
e8eeb4f10c Bug 379758: SETSP is removed 2007-05-24 00:51:46 -07:00
igor@mir2.org
30d40408c5 Bug 381236: static assert that does not depend on __LINE__ 2007-05-24 00:27:45 -07:00
mrbkap@gmail.com
7985ba2c50 Back this out for now to sort out what happens when we're called from C++, not from Javascript. 2007-05-23 17:50:50 -07:00
mrbkap@gmail.com
2409391b2a Use the currently executing function as the nominal parent for our function so that we pull the correct prototype for our function. bug 370127, r+sr=jst 2007-05-23 17:18:00 -07:00
crowder@fiverocks.com
1e5cb0be51 Bug 381402: Compilation error with HAS_XDR_FREEZE_THAW and old Script object, r=mrbkap 2007-05-23 15:09:52 -07:00
crowder@fiverocks.com
6a75f80fed Bug 381402: Compilation error with HAS_SCRIPT_OBJECT, r=mrbkap 2007-05-23 14:50:43 -07:00
crowder@fiverocks.com
f21c94cb6c Bug 375715: "Assertion failure: (c2 <= cs->length) && (c1 <= c2)" with /[\Wb-G]/, patch by mrbkap, r=crowder 2007-05-23 14:13:13 -07:00
brendan@mozilla.org
a6b6b99a67 Fix JOF_XMLNAME, etc., interrogation to mask the mode bits and compare (381504, r=mrbkap). 2007-05-22 23:04:18 -07:00
brendan@mozilla.org
02bf41c8a3 More generator expression decompilation love (381372, r=mrbkap). 2007-05-22 23:00:40 -07:00
asqueella@gmail.com
5919a26047 bug 381369 - improve Components.utils.import-related commentsr=sayrer 2007-05-22 14:57:42 -07:00
mrbkap@gmail.com
2d5947e7ae Mark the overwritten scope property in the space between where we remove it and re-add it in its changed form. bug 381374, r=igor 2007-05-21 17:55:04 -07:00
mrbkap@gmail.com
ed953e9af2 Protect the number from GC, even if it was originally a number. bug 375976, r=crowder 2007-05-21 16:45:42 -07:00
crowder@fiverocks.com
1fdf29bf46 Bug 380998: StackGrowthDirection is not reliable with Sun Studio 11, patch by Ginn Chen <ginn.chen@sun.com>, r=brendan 2007-05-21 15:55:48 -07:00
crowder@fiverocks.com
41450ddc97 Bug 379482: Crash [@ js_IsIdentifier] decompiling float setter, r=mrbkap 2007-05-21 12:33:33 -07:00
mrbkap@gmail.com
fae1dec6be Count both the getter and setter for a given property. bug 381303, r=crowder 2007-05-21 11:02:33 -07:00
mrbkap@gmail.com
9c08aa4311 Handle Function.prototype.toString not returning what we expect it to return (a function expression). bug 380933, r=crowder 2007-05-21 11:01:08 -07:00
sayrer@gmail.com
c1cab1cba0 Bug 238324. Tweak generateFactory to call new, and add unit tests for module loading. Patch by Alex Vincent <ajvincent@gmail.com>. r=sayrer, sr=bsmedberg 2007-05-20 15:45:14 -07:00
mrbkap@gmail.com
9d84deb323 If the scanner returned TOK_ERROR, it already reported an error. bug 380371, r=brendan 2007-05-18 19:09:23 -07:00
crowder@fiverocks.com
72e24acedb Bug 381211: fixing off-by-one caused by patch from bug 367629, r=mrbkap 2007-05-18 17:04:41 -07:00
crowder@fiverocks.com
6d4cb224c0 Bug 367629: better obj_toSource for native functions and a few other cases, r=mrbkap 2007-05-18 16:12:56 -07:00
brendan@mozilla.org
6c15c9194a Restrict for([k,v] in o) special case to JS1.7 (366941, r=mrbkap). 2007-05-18 13:55:06 -07:00
brendan@mozilla.org
31ef926445 Support generator expressions for JS1.8 (380237, r=mrbkap). 2007-05-17 18:41:17 -07:00
brendan@mozilla.org
4b4d408b14 Fix getter/setter decompilation to depend on generating op, not prefix string (381101, r=mrbkap). 2007-05-17 17:48:18 -07:00
mrbkap@gmail.com
ee83dcb164 Skip over exception cookies, since we require JSOP_POP to pop them. bug 380016, r=brendan 2007-05-17 16:56:17 -07:00
igor@mir2.org
832ef9cf07 Bug 380833: AllocSlot now insists on the new slot being already set to void. r=brendan 2007-05-16 15:41:50 -07:00
igor@mir2.org
57a947de4b Bug 380889: fixing the disassembler, r=brendan 2007-05-16 12:00:47 -07:00
igor@mir2.org
39051a9389 Bug 379885: JS_GetGCMarkingTracer is removed. r=brendan 2007-05-15 18:13:28 -07:00
sayrer@gmail.com
90faa81713 JS code-sharing module system. Patch by Alex Fritze <alex@croczilla.com> and Robert Sayre <sayrer@gmail.com>. r=shaver/brendan, sr=brendan 2007-05-15 16:27:40 -07:00
crowder@fiverocks.com
c66619c8af Bug 308429: make tooMuchGC dynamic (runtime gczeal option), r=brendan 2007-05-15 16:27:20 -07:00
crowder@fiverocks.com
2d005fe23d Bug 358594: sharp variables should deserialize using old getter/setter syntax. 2007-05-15 15:41:24 -07:00
igor@mir2.org
3a73a27eb4 Bug 379566: keywords are no special with get/set getters. r=brendan 2007-05-15 08:17:14 -07:00
igor@mir2.org
0b07474b6a Bug 340212: All XPC GC tracing now happens in the runtime trace callback. 2007-05-15 02:01:34 -07:00
igor@mir2.org
8d62745af4 Bug 380197: fixing regression from bug 380197. r=brendan 2007-05-09 14:40:36 -07:00
brendan@mozilla.org
c7afea2db0 Fiddle cosmetics. 2007-05-09 13:19:26 -07:00
crowder@fiverocks.com
eaadb88c3f Bug 379482: Crash decompiling float setter, r=brendan, r=igor 2007-05-09 08:21:32 -07:00
igor@mir2.org
369accf1bd Bug 379727: Using tracing instead of explicit root management. r=alfred.peng sr=brendan 2007-05-09 04:11:53 -07:00
crowder@fiverocks.com
3c0f6e2457 woops, backing out due to closed tree 2007-05-08 22:45:57 -07:00
crowder@fiverocks.com
e7bf5857dd Bug 379482: Crash decompiling float setter, r=brendan, r=igor 2007-05-08 22:45:09 -07:00
brendan@mozilla.org
fe0d6dba47 Fixes left in wake of JSOP_POPN (379925, r=igor). 2007-05-08 12:04:13 -07:00
brendan@mozilla.org
a5b846723e Stop overloading JSOP_SETSP for both exception handling and group assignment bulk popping (375695, r=igor). 2007-05-06 23:40:10 -07:00
igor@mir2.org
f8aa56f76d Bug 379855: js_CodeSpec.name/token are moved to separated arrays to shrink the code. r=brendan 2007-05-06 03:50:07 -07:00
brendan@mozilla.org
cc0e1192b6 Unhide a crucial pop from the decompiler (379860, r=igor). 2007-05-06 02:29:21 -07:00
igor@mir2.org
0cb1ac9ea5 Bug 379851: branch callback is accessed via cx->branchCallback for smaller code. r=brendan 2007-05-06 02:08:52 -07:00
graydon@mozilla.com
df0899706b Back out patch for bug 368869, yet again. Seems to cause some obscure crashesin nightlies. 2007-05-05 20:46:06 -07:00
bzbarsky@mit.edu
5a7814a82a When pushing on top of a JSContext on the XPConnect JSContext stack, save offthe JSStackFrame chain on that JSContext. When popping, restore the stackframe chain. Bug 371858, r=jst, sr=brendan 2007-05-04 22:55:47 -07:00
brendan@mozilla.org
8a85c90946 Fix some assertions to avoid re-evaluating macro args; tweak comments. 2007-05-04 11:34:56 -07:00
igor@mir2.org
6dca224ba8 Bug 379455: tracing API now let the tracer to know about the GC lock count. 2007-05-04 08:43:19 -07:00
peterv@propagandism.org
5415bac556 Fix for bug 379593 (Only create one XPCCallContext per cycle collection). r=jst, sr=brendan. 2007-05-04 01:55:08 -07:00
graydon@mozilla.com
5336c6731e Bug #368869, suspect all native wrappers as cycle roots (again).r=brendan, sr=jst 2007-05-03 15:53:00 -07:00
brendan@mozilla.org
56299f547f Balance the stack for destructuring catch heads (379483, r=igor). 2007-05-02 23:39:44 -07:00
igor@mir2.org
e5defb0763 Bug 377751: Switching JSClass.mark in XPConnect to the tracing semantics. r=jst, sr=brendan 2007-05-02 13:20:21 -07:00
crowder@fiverocks.com
a8da5788c4 fixing a compiler warning introduced by patch in bug 365083, r=brendan 2007-05-02 12:55:07 -07:00
brendan@mozilla.org
ad7d71a5c9 Followup fix to dumb bug in last checkin (379442, r=me). 2007-05-02 01:12:38 -07:00
brendan@mozilla.org
5262f72772 Skip #n= at front of initialiser on right of destructuring assignment forms (368224, r=igor). 2007-05-02 00:24:20 -07:00
brendan@mozilla.org
8a89a97cc4 Fix model stack management for catch guards in the decompiler; eliminate related SRC_HIDDEN abusage (375794, r=igor). 2007-05-02 00:09:27 -07:00
igor@mir2.org
1160f3bc2d Bug 377751: removal of the commit. 2007-05-01 14:54:29 -07:00
igor@mir2.org
4626b2a66f Bug 377751: More build fixes. 2007-05-01 14:44:15 -07:00
igor@mir2.org
1b2ef20671 Bug 377751: Fixing windows compilation problem. 2007-05-01 14:33:00 -07:00
igor@mir2.org
1ce0c4d485 Bug 377751: JSClass instances in xpconnect use the tracing API. r=brendan, sr=jst 2007-05-01 14:06:07 -07:00
crowder@fiverocks.com
3f29c14a5a Bug 356083: incorrect decompilation for ({this setter: function () {} }) and others, r=igor, r=brendan 2007-05-01 11:07:44 -07:00
crowder@fiverocks.com
13b4b6a1e1 Bug 375715: assertion on bogus character ranges in regexps, r=mrbkap 2007-05-01 10:51:34 -07:00
peterv@propagandism.org
378d89744e Part of bug 377606 (Switch cycle collector to more efficient hashtables - only keep hashtable around while collecting). r=graydon, sr=dbaron. 2007-05-01 05:51:39 -07:00
igor@mir2.org
7f6e92e7d2 Bug 379146: New API to register application-specific GC roots. r=brendan 2007-05-01 03:09:46 -07:00
igor@mir2.org
d69de1f698 Bug 379165: Simplifing JS_DimpHeap while fixing BeOS build problems. r=brendan 2007-04-29 14:49:00 -07:00
jwalden@mit.edu
1e523548f2 Bug 378738 - \d pattern matches characters other than the decimal digits 0-9. r=mrbkap 2007-04-27 18:27:38 -07:00
igor@mir2.org
bd2f8f4e1f Bug 378255: DEBUG build of xpc now dumps JS heap on shutdown to a file defined by XPC_SHUTDOWN_HEAP_DUMP environment variable. r=brendan sr=jst 2007-04-26 23:12:39 -07:00
bzbarsky@mit.edu
36656a88fa Allow getting the lineNumber of XPConnect expceptions. Bug 291377, r=sicking,sr=jst. r=mrbkap, sr=jst for the test. 2007-04-26 21:19:11 -07:00
igor@mir2.org
6ba05ff79d Bug 378789: js_PutEscapedStringImpl can now cope with \0 in JSString. r=brendan 2007-04-25 15:30:35 -07:00
igor@mir2.org
0f6d3e4521 Bug 378255: Information about JS_DumpDebug to replace GC_MARK_DEBUG info. 2007-04-25 12:39:15 -07:00
peterv@propagandism.org
f61971e016 Fix for bug 378595 (Improve cycle collection QI performance). r/sr=sicking. 2007-04-25 09:35:27 -07:00
igor@mir2.org
68d7b74a96 Bug 378261: Replacing GC_MARK_DEBUG by DumpHeap. r=brendan 2007-04-25 06:43:18 -07:00
igor@mir2.org
d194d1ad7f Bug 378492: proper checks for null and jsval type when tracing, r=brendan 2007-04-24 16:11:02 -07:00
timeless@mozdev.org
4a5890e58f Bug 375270] GC: separating traversal and markingAdding help() for dumpHeap [fixing crash on solaris x86]r=igor 2007-04-24 09:42:25 -07:00
dbaron@dbaron.org
436a51a9c7 Followup fixes to making cycle collector use more efficient hashtables: shrink size of table and fix warnings on 64-bit machines. b=377606 sr=peterv r=graydon 2007-04-23 16:34:33 -07:00
benjamin@smedbergs.us
2e25a321f8 Bug 376636 - Building with gcc 4.3 and -pendatic fails due to extra semicolons, patch by Art Haas <ahaas@airmail.net>, rs=me 2007-04-23 07:21:53 -07:00
peterv@propagandism.org
fa1d45ea66 Fix for bug 372110 (Make cycle-collection debugging features optional at compile time). r=graydon, sr=jst. 2007-04-21 10:43:19 -07:00
igor@mir2.org
72283683ea Bug 375270: fixing frprintf args in DumpHeap 2007-04-21 07:06:43 -07:00
peterv@propagandism.org
01dc49f9b9 Fix for bug 377606 (Switch cycle collector to more efficient hashtables). Patch by graydon, r=peterv, sr=dbaron. 2007-04-20 01:01:01 -07:00
crowder@fiverocks.com
ce320a5e5d Fixing a trivial warning in an assertion, r=crowder 2007-04-19 17:36:52 -07:00
jst@mozilla.org
e6a180e75b One more fix for bug 368945. Make sure to find the right this object when calling functions through a wrapper. r+sr=brendan@mozilla.org 2007-04-19 13:27:57 -07:00
igor@mir2.org
aa96671af9 Bug 377896: fixing compilation warning about return JS_FALSE in a function returning JSXML*. r=brendan 2007-04-18 19:09:40 -07:00
peterv@propagandism.org
d114bf0dbe Fix for bug 374872 (freeze/pause after clicking on a link). Patch by sspitzer, r/sr=peterv. 2007-04-18 03:14:38 -07:00
igor@mir2.org
937c74018d Bug 377831: patch from Martijn Wargers <martijn.martijn@gmail.com> to fix JS_TraceChildren declarataion. r=myself 2007-04-17 22:59:10 -07:00
igor@mir2.org
aaf374c87c Bug 377754: fixing JS_CLASS_TRACE macro and misspellings. r=brendan 2007-04-17 14:14:18 -07:00
igor@mir2.org
86aa582846 Fixing misspelling in comments. 2007-04-17 14:10:22 -07:00
mrbkap@gmail.com
1adf2d2eda Add an assertion. bug 377090, r=brendan 2007-04-17 14:07:31 -07:00
igor@mir2.org
904650319a Bug 375270: API to trace GC things graph without running the GC. r=brendan 2007-04-16 23:53:37 -07:00
crowder@fiverocks.com
8b7b6c8a79 Bug 375642: another regexp that makes JS allocate > 1GB and hand, r=mrbkap 2007-04-13 17:27:12 -07:00
crowder@fiverocks.com
3989847a83 Bug 356248: incorrect decompilation for object literal with named getter function; property and function names are mashed together, r=brendan 2007-04-13 17:13:02 -07:00
mrbkap@gmail.com
59a7b76f52 Add an API to set aside and restore cx->fp. bug 377090, r=brendan 2007-04-13 12:20:22 -07:00
mrbkap@gmail.com
eb8514f0f0 Protect against someone calling XPCSafeJSObjectWrapper.prototype(). bug 375164, r+sr=brendan 2007-04-10 09:04:43 -07:00
igor@mir2.org
9585daa79d Bug 373175: hiding code to set arena names behind JS_ARENAMETER. r=brendan 2007-04-10 06:29:10 -07:00
igor@mir2.org
91eadf6295 Bug 373082: fixing bad English in comments for xml_lookupProperty. 2007-04-07 08:19:23 -07:00
brendan@mozilla.org
2b9e57f541 Add -o <option> to shell; add JSOPTION_ANONFUNFIX and test it for ECMA conformance (376052, r=igor). 2007-04-06 18:20:28 -07:00
igor@mir2.org
8aaee9e668 Bug 366725: Fixing compilation problems with JS_C_STRINGS_ARE_UTF8 defined. 2007-04-05 03:52:35 -07:00
jruderman@hmc.edu
6974638dca Bug 376564, Incorrect decompilation for "new (eval())". r=brendan. 2007-04-04 20:24:41 -07:00
brendan@mozilla.org
63509987bf Fix decompilation of for(a[b,c] in d) and the like (355786, r=mrbkap). 2007-04-04 16:35:30 -07:00
brendan@mozilla.org
15f29265b1 Fix special case of new (f()()) and the like (352013 part deux, r=mrbkap). 2007-04-04 16:32:33 -07:00
igor@mir2.org
9b20282ff6 Bug 375183: simpler noSuchMethod implementation, r=brendan. 2007-04-04 15:18:57 -07:00
brendan@mozilla.org
28a940b79f Allow case yield: in JS1.7 (352441, r=mrbkap). 2007-04-04 11:02:50 -07:00
bclary@bclary.com
5d9429e0d0 Bug 374877 - Update JS_GetImplementationVersion() for JS1.7rc, r=brendan 2007-04-02 21:48:09 -07:00
brendan@mozilla.org
802d01541d Fix parser to allow eval(i)++ to compile (352453, r=mrbkap). 2007-04-02 20:26:50 -07:00
brendan@mozilla.org
e05b489a45 Fix js_LineNumberToPC based on MikeM@RetekSolutions.com's input (313922, r=mrbkap). 2007-04-02 11:13:22 -07:00
brendan@mozilla.org
626c7692d8 Unify double sprinting to handle non-finite and negative zero cases (375882, r=mrbkap). 2007-04-01 19:01:50 -07:00
igor@mir2.org
dac58ab9ec Taking out the patches for bug 375999 and bug 375808 until the reason for ref counting leak would be clear. 2007-03-31 23:48:21 -07:00
igor@mir2.org
97e0e66db7 Bug 375999: fixing regression from bug 375808. r=brendan 2007-03-31 17:00:36 -07:00
gavin@gavinsharp.com
d78ebdbd55 Revert patch from bug 375715 because it broke Gmail (bug 375931) 2007-03-30 09:21:05 -07:00
igor@mir2.org
7ccbbd605a Bug 375808 - GCX_PRIVATE is replaced by GCX_FUNCTION. r=brendan 2007-03-29 23:23:00 -07:00
igor@mir2.org
a17b73fece Removal of broken patch for bug 375808 2007-03-29 18:19:50 -07:00
igor@mir2.org
704b226d81 Bug 375808 - GCX_PRIVATE is replaced by GCX_FUNCTION. r=brendan 2007-03-29 17:56:14 -07:00
igor@mir2.org
90683afcb3 Bug 374160: Uniform applications of GetXMLObject. r=brendan 2007-03-29 13:39:46 -07:00
mrbkap@gmail.com
9f45bc7d58 Ignore let declarations when process variable declarations to ensure proper hoisting behavior. bug 350387, r=brendan 2007-03-29 11:25:22 -07:00
mrbkap@gmail.com
48a242c07f Deal with the /i option before calculating the start (and localMax) for ranges. bug 375711, r=crowder 2007-03-29 11:19:15 -07:00
mrbkap@gmail.com
4099fa2694 Continue processing the character set even though we found our max. bug 375715, r=crowder 2007-03-29 11:14:20 -07:00
crowder@fiverocks.com
c645698af1 Bug 368152, more compiler warnings fixage, r=igor@mir2.org 2007-03-29 11:04:10 -07:00
jwalden@mit.edu
4fed5ac1f3 Bug 375793 - Constant folder treats NaN coerced to boolean as true. r=mrbkap 2007-03-29 00:37:15 -07:00
brendan@mozilla.org
07cc7ebd9b Fix bug 351219 and related (r=mrbkap). 2007-03-29 00:24:14 -07:00
bzbarsky@mit.edu
f16f948579 Fix JS strict warning in the wrapper code. Bug 371948, r+sr=brendan 2007-03-28 13:29:00 -07:00
igor@mir2.org
50ca7945ba Bug 374589: fixing generator/decompiler after bug 351102. r=brendan 2007-03-27 23:49:49 -07:00
crowder@fiverocks.com
8d1fcab062 Bug 368152: Fixing warnings and one build error from jsregexp "debugger" patch, r=mrbkap 2007-03-27 17:31:25 -07:00
dbaron@dbaron.org
a7d9802f77 Remove GetKeyPointer method from nsTHashtable key types. b=374906 r=bsmedberg 2007-03-27 08:34:59 -07:00
dbaron@dbaron.org
85eb65ced4 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg 2007-03-27 08:33:38 -07:00
dbaron@dbaron.org
f24f1c6523 Consolidate duplicated code into the beginning of the double-hashing loop. b=374906 r=brendan 2007-03-27 08:32:38 -07:00
bclary@bclary.com
5e3bf21303 Bug 370490 - Build SpiderMonkey with JS_C_STRINGS_ARE_UTF8, not part of the build, patch by Tom Insam, r=brendan 2007-03-26 14:13:57 -07:00
igor@mir2.org
8428f66dcd Bug 373082: Changine XML method lookup to never alter "this". r=brendan,jwalden 2007-03-26 02:07:24 -07:00
igor@mir2.org
7322d84e50 Bug 355736: no quotas arround name matching keywords in keywordless context. r=brendan,mrbkap 2007-03-24 00:34:47 -07:00
dbaron@dbaron.org
d5b8384219 Avoid the need for a getKey callback in jsdhash/pldhash. b=374906 r=brendan 2007-03-23 16:32:40 -07:00
crowder@fiverocks.com
4f123ed322 Bug 339652: Maximum recursion value is too low, r=brendan 2007-03-23 11:11:40 -07:00
crowder@fiverocks.com
21950530c7 Bug 330352: very non-greedy regexp causes crash in jsregexp.c, r=mrbkap 2007-03-23 09:13:06 -07:00
peterv@propagandism.org
a21e9fae83 Relanding part of the fix for bug 372960 (Make XPConnect traverse more JS edges). r=brendan, sr=jst. 2007-03-23 06:21:22 -07:00
crowder@fiverocks.com
4bb3006c84 Bug 368152: jsregexp preprocessor-enabled "debugging" mode 2007-03-22 20:35:42 -07:00
hg@mozilla.com
465265d0d4 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00