Commit Graph

224 Commits

Author SHA1 Message Date
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