Commit Graph

3605 Commits

Author SHA1 Message Date
igor.bukanov%gmail.com
6e4070bafb Bug 349527: Fix for GCC warning introduced by the previous optimization. r=brendan 2006-08-28 05:57:16 +00:00
brendan%mozilla.org
96aca1e4cb Don't move empty statement up from if (1); or if (0)foo();else; to statement level, in case a label prefixes the if -- change the if to a {} instead (350263, r=mrbkap/shaver). 2006-08-27 21:15:44 +00:00
brendan%mozilla.org
f9878d1cec Fix delete property and method call operand decompilation cases (350242, r=mrbkap/shaver). 2006-08-27 21:08:41 +00:00
brendan%mozilla.org
ada298b4ec Always need two more slots in the model stack for finally clause codegen (350312, r=shaver). 2006-08-27 17:58:49 +00:00
brendan%mozilla.org
b8db26fafa Catch trailing token syntax errors in js_CompileFunctionBody (350268, r=mrbkap). 2006-08-27 17:53:48 +00:00
brendan%mozilla.org
014cef087d JSOP_ENDFILTER, not JSOP_FILTER, needs to have high precedence (350271, r=mrbkap). 2006-08-27 17:31:13 +00:00
brendan%mozilla.org
af66a4d87a Retract to left-most operand for JSOP_ARRAYPUSH (349648, r=mrbkap/sayrer). 2006-08-27 15:57:32 +00:00
igor.bukanov%gmail.com
29dc283052 Bug 349331: followup to the previous patch to remove GeneratorExit from jsproto.tbl 2006-08-27 15:47:17 +00:00
brendan%mozilla.org
bfd83ff474 Fix warning in last checkin. 2006-08-27 04:15:32 +00:00
jwalden%mit.edu
5346f81114 Bug 350206 - Assertion while generating namespace prefix during toXMLString(). r=brendan 2006-08-27 00:46:14 +00:00
igor.bukanov%gmail.com
747b5e9fff Bug 349331: Implementation of generator.close now uses asynchronous return instead of GeneratorExit exception. r=brendan 2006-08-26 20:24:45 +00:00
igor.bukanov%gmail.com
a7a5018f78 Bug 349320: generator cleanup, r=brendan 2006-08-26 09:18:57 +00:00
igor.bukanov%gmail.com
0a5b6d0a39 Bug 349527: Using a single malloc block for a full copy of JSErrorReport. r=brendan 2006-08-26 07:44:38 +00:00
brendan%mozilla.org
afcf0be7a9 Re-init cx->threadLinks to self-link in js_ClearContextThread (345365, r=feng). 2006-08-26 06:44:17 +00:00
brendan%mozilla.org
08472c75f4 Fix bogus assertion (350253, DEBUG-only fix). 2006-08-26 05:09:43 +00:00
brendan%mozilla.org
980230e5bb Consolidate early JSFUN_INTERPRETED setting for uniform useless expression elimination (346892, r=mrbkap). 2006-08-26 04:05:03 +00:00
brendan%mozilla.org
b0bb6c32b2 Fix @* decompilation (349956, r=shaver). 2006-08-25 18:04:03 +00:00
brendan%mozilla.org
90bed94936 Fold assign-ops harder, to uphold decompiler round-trip invariance (349663, r=shaver). 2006-08-25 18:01:35 +00:00
brendan%mozilla.org
85280bffd9 Fix decompilation of postfix ++ and -- on block-local names (349633, r=shaver). 2006-08-25 17:57:25 +00:00
brendan%mozilla.org
3fedcd6344 Don't try to bind label names to slots (349619, r=shaver). 2006-08-25 17:54:21 +00:00
bclary%bclary.com
f76b684d48 Revert patch which added CFLAGS, LDFLAGS to jscpucfg rule, bug 348735, a=brendan on irc 2006-08-24 00:16:46 +00:00
brendan%mozilla.org
1bd32a3160 Cleanup to match hand-merged 1.8 branch patch for 349507. 2006-08-23 20:32:44 +00:00
mrbkap%gmail.com
3ff11d4d65 Avoid extra parens inside XML lists. bug 349815, r=brendan 2006-08-23 20:00:26 +00:00
mrbkap%gmail.com
b90e8f245d Use the right error message. Patch from Mook <mook.moz+sites.org.mozilla.bugzilla@gmail.com>, bug 349824, r=mrbkap 2006-08-23 19:15:41 +00:00
brendan%mozilla.org
dc3833bf60 Fix computed vs. literal-identifier attribute name decompilation (349822, r=mrbkap). 2006-08-23 07:09:03 +00:00
brendan%mozilla.org
96bc42b5b9 Check in smontagu's patch for bug 349488 (r=me). 2006-08-23 04:49:11 +00:00
brendan%mozilla.org
3aec31b74a Fixed bogus assertion (349818). 2006-08-23 04:19:17 +00:00
brendan%mozilla.org
dda48368de Normalize empty statement to {} to decompile labeled empty statements round-trip-ably (349596, r=mrbkap). 2006-08-23 02:19:56 +00:00
brendan%mozilla.org
ee81be8501 Must set and clear TSF_OPERAND around js_MatchToken at let body/expr boundary (349602, r=mrbkap). 2006-08-23 02:16:38 +00:00
mrbkap%gmail.com
a144a89690 Fixing orange by not clobbering flags added during js_EmitTree. bug 349605, r=brendan 2006-08-23 01:56:33 +00:00
brendan%mozilla.org
ca9c6db460 Fix let expressions in bracketed forms within for loop head (349605, r=mrbkap). 2006-08-23 00:41:59 +00:00
brendan%mozilla.org
ea08a2d612 Add SRC_DECL offset printing (not part of build). 2006-08-22 22:42:56 +00:00
brendan%mozilla.org
42bccfd8f5 Fix op= code generation to cope with local consts (349491, r=mrbkap). 2006-08-22 00:36:34 +00:00
mrbkap%gmail.com
b18e0ce2f8 Add missing semicolons after import and export statements. bug 349484, r=brendan 2006-08-21 22:43:29 +00:00
mrbkap%gmail.com
e4dcb2ea05 Make let expressions have a good precedence and use it around 'new' expressions. bug 349499, r=brendan 2006-08-21 22:35:22 +00:00
mrbkap%gmail.com
eebc7e8962 Model the stack depth correctly during ternary expressions. bug 349493, r=brendan 2006-08-21 21:42:15 +00:00
brendan%mozilla.org
6ad814f14d Don't elide useless expression statements that are labeled (349489, r=mrbkap). 2006-08-21 20:25:59 +00:00
brendan%mozilla.org
42e6f711ed Catch let vs. const errors (349507, r=mrbkap). 2006-08-21 19:30:45 +00:00
mrbkap%gmail.com
bd86d8b207 Account for the block depth. bug 349482, r=brendan 2006-08-21 18:19:15 +00:00
mrbkap%gmail.com
78f1989edc tc->topStmt doesn't play into let declarations at all. bug 349298, r=brendan 2006-08-20 07:53:30 +00:00
igor.bukanov%gmail.com
d963b7f2bd Bug 349023: generator is not extended class. r=brendan 2006-08-19 12:56:24 +00:00
brendan%mozilla.org
3d566f7776 Checking in mrbkap's patch for 349283, r=me. 2006-08-19 06:44:46 +00:00
brendan%mozilla.org
11ca8fa43a Final patch for bug 349012 (r=igor/mrbkap). 2006-08-19 06:17:49 +00:00
mrbkap%gmail.com
faa99001a9 Generate the right opcode for this parse node. bug 349283, r=brendan 2006-08-19 06:12:29 +00:00
brendan%mozilla.org
2b1f86e669 Fix closing a generator to throw if the generator ignores GeneratorExit; also fix bug cloned from current Python 2.5c1, where yield from finally cancels pending exceptions and outer finallys; also fixed to throw on nested generator activations (349012, r=igor/mrbkap). 2006-08-18 23:42:02 +00:00
igor.bukanov%gmail.com
dcce910a62 Bug 348986: added missing checks for the recursion depth in the decompiler. r=brendan 2006-08-18 15:09:45 +00:00
brendan%mozilla.org
1713592536 Fix constant folder to parenthesize object initialiser if it could become left-most in expression (346902, r=mrbkap). 2006-08-17 23:51:51 +00:00
brendan%mozilla.org
f1b917e769 DEBUG-only change to initialize tracefp (348027, r=mrbkap). 2006-08-17 23:46:30 +00:00
brendan%mozilla.org
c0936d895c Fix gen.close to report generator-ignored-GeneratorExit properly according to current Python 2.5 (349012, r=igor/mrbkap). 2006-08-17 22:55:15 +00:00
brendan%mozilla.org
ac99625cec Fix '+ +x', '- --x', etc. decompilation (346904, r=mrbkap). 2006-08-17 20:24:38 +00:00
brendan%mozilla.org
df41627c20 Destructuring catch variables, plus TOK_LEXICALSCOPE cleanup (336379, r=mrbkap). 2006-08-17 08:13:18 +00:00
brendan%mozilla.org
7ea7fe892c Fixed to add block depth to pn_slot, thanks to mrbkap (336379, a=#developers). 2006-08-16 22:33:28 +00:00
igor.bukanov%gmail.com
bb99701c9c Bug 348810: Removal of a broken optimization in array_sort that was supposed to shrink the temporary array when there are holes in the array. VM games are off for now. r=mrbkap 2006-08-16 19:39:38 +00:00
benjamin%smedbergs.us
88ac1067bb Bug 347585 - xpctools needs to use external linkage, r=timeless 2006-08-16 19:10:44 +00:00
brendan%mozilla.org
02f6c7133c Change catch clauses to use lexical scope, etc. (336379, r=mrbkap). 2006-08-16 05:01:14 +00:00
brendan%mozilla.org
27e3eb7623 Use JSCLASS_GLOBAL_FLAGS for other global classes, and fix JS standard class init API to init the Block class (348786, r=mrbkap). 2006-08-15 23:56:08 +00:00
bclary%bclary.com
c5278b9759 JavaScript Shell - add CFLAGS, LDFLAGS to jscpucfg build rule, not part of the build. bug 348735, r=mrbkap 2006-08-15 16:59:00 +00:00
brendan%mozilla.org
dd9c9f10af Backing out yet again, another latent bug bites. 2006-08-15 07:39:01 +00:00
brendan%mozilla.org
33cfdbad7e Change catch clauses to use lexical scope, etc. (336379, r=mrbkap). 2006-08-15 07:03:14 +00:00
brendan%mozilla.org
8ea9c86502 Fix block_xdrObject to null outermost block's parent slot (348696, r=mrbkap). 2006-08-15 06:37:52 +00:00
brendan%mozilla.org
97c32ed593 Back out last change for now, it ran into a latent block XDR bug. 2006-08-15 03:51:23 +00:00
brendan%mozilla.org
044d51fe52 Change catch clauses to use lexical scope, etc. (336379, r=mrbkap). 2006-08-15 01:29:37 +00:00
mrbkap%gmail.com
a39233c772 Fix decompilation of let expressions and statements. bug 344601, r=brendan 2006-08-15 00:59:20 +00:00
igor.bukanov%gmail.com
a31e220d87 Bug 348532: Limit the length of errorInstance.stack. r=brendan 2006-08-14 20:01:30 +00:00
mrbkap%gmail.com
0c2173c26f Check the correct kid to figure out if the last catch block had a catch guard. bug 348630, r=brendan 2006-08-14 19:12:06 +00:00
igor.bukanov%gmail.com
a945b5c26e Bug 348532: taking out the previous commit. 2006-08-14 07:19:12 +00:00
igor.bukanov%gmail.com
5ade7ea322 Bug 348532: Limit the length of errorInstance.stack. r=brendan 2006-08-14 05:43:14 +00:00
igor.bukanov%gmail.com
76dc42d18d Bug 322135: Optimizing large index access for array elements to prevent out-of-memory when calling Array functions for huge sparse arrays. r=mrbkap sr=brendan 2006-08-12 08:41:54 +00:00
brendan%mozilla.org
72e2197d21 Revise try/catch/finally AST to pave way for block scope and destructuring (336379, r=mrbkap). 2006-08-11 23:26:18 +00:00
mrbkap%gmail.com
f985c90668 Fix silly copy/paste error that would cause us to exit the loop too early. bug 348375, r=brendan 2006-08-11 19:49:48 +00:00
brendan%mozilla.org
b1d2afd6b9 Patch paving way for catch lexical scope (336379, r=mrbkap). 2006-08-11 02:05:39 +00:00
brendan%mozilla.org
628e5408cc Fix catch-related code generation bugs (346494, r=mrbkap). 2006-08-10 23:18:07 +00:00
mrbkap%gmail.com
ae7bfc5a98 Maintain the stack depth by hand when we emit the JSOP_GOSUB because the code generator cannot see the JSOP_RETSUB that balances the GOSUB out. bug 348273, r=brendan 2006-08-10 23:10:27 +00:00
mrbkap%gmail.com
54f8069a14 Don't allow consumers to allocate this stack-based helper class on the heap. bug 347054, r+sr=jst 2006-08-09 18:13:56 +00:00
brendan%mozilla.org
c96d061d16 Destructuring formal parameter support, etc. (336379, r=mrbkap/igor). 2006-08-09 05:46:17 +00:00
dbaron%dbaron.org
cae84e9a22 Backing out Igor's checkin for bug 322135 to fix orange. 2006-08-08 23:52:08 +00:00
igor.bukanov%gmail.com
73dbbf8c4b Bug 322135: Optimizing large index access for array elements to prevent out-of-memory when calling Array functions for huge sparse arrays. r=mrbkap sr=brendan 2006-08-08 20:25:30 +00:00
igor.bukanov%gmail.com
82e0ac2658 Bug 347645: Arenas no longer cached and are always released as such caching was, in fact, harmful. r=brendan sr=mrbkap 2006-08-08 20:02:07 +00:00
mrbkap%gmail.com
6efb935813 Handle a let statement as the statement in a function. bug 347559, r=brendan 2006-08-08 19:59:14 +00:00
brendan%mozilla.org
80499bddc7 Followup fix to blunder in patch for 347739, r=igor. 2006-08-08 18:20:10 +00:00
mrbkap%gmail.com
3591b40c9c A TOK_LEXICALSCOPE is like a TOK_COLON when deciding whether it has a final return. bug 347559, r=brendan 2006-08-08 18:20:01 +00:00
brendan%mozilla.org
b658911ed5 Lock down generator.close (347739, r=igor). 2006-08-08 07:08:54 +00:00
bzbarsky%mit.edu
1a321870f1 If a string is passed as an nsIAtom arg from JS, atomize it. Bug 336684,
r=jst, sr=shaver.
2006-08-08 04:21:33 +00:00
brendan%mozilla.org
b667d3f74b Fix off-by-one in with object 'block depth' (347674, r=shaver). 2006-08-08 00:12:11 +00:00
brendan%mozilla.org
05cfa5375d Fix bogo-conversion of for-each-in to for-in when LHS of in is a destructuring expression (347593, r=igor). 2006-08-08 00:10:52 +00:00
igor.bukanov%gmail.com
3304fabe3e Bug 346968: The last ditch GC no longer run the branch callback as the callback can violate assumptions that callers of js_NewGCThing make. r=brendan 2006-08-06 09:38:41 +00:00
igor.bukanov%gmail.com
765d801e0e Bug 341821: Running close hooks of generator objects outside GC locks. r=brendan sr=mrbkap 2006-08-06 09:23:26 +00:00
mrbkap%gmail.com
88ad9f799a Pop the local root stack in all early-return cases. bug 347330, r=brendan 2006-08-04 21:55:00 +00:00
brendan%mozilla.org
026751aead Support all lvalue forms in array comprehensions (345736, r=mrbkap). 2006-08-03 23:41:42 +00:00
mrbkap%gmail.com
56c4b81f59 Fix GC hazards in the plugin code. Add a "close friend" API for JSTempValueRooters for use from C++. bug 347054, r=brendan sr=dbaron 2006-08-03 20:39:45 +00:00
timeless%mozdev.org
b93bf7dabb Bug 341728 Local reference leak in nsCLiveconnect::Call when Java call javascript
patch by mike.lei@sun.com r=brendan
2006-08-02 05:16:40 +00:00
mrbkap%gmail.com
42cc127d61 Check the correct variable. Patch from Feng Qian <feng.qian.moz@gmail.com>, bug 346363, r=mrbkap 2006-08-01 22:19:32 +00:00
igor.bukanov%gmail.com
43cdbb0ec5 Bug 346450: The support for close hooks for generators is implemented through internal API and JSExtendedClass.close is removed as a premature feature. r=brendan sr=mrbkap 2006-08-01 21:01:59 +00:00
brendan%mozilla.org
e0eceee7af Fix enumeration to store the current object along the prototype chain on the stack, a crucial missing store from the last revision\! (346801, r=mrbkap). 2006-08-01 20:20:43 +00:00
mrbkap%gmail.com
4a0ca1de4e Don't walk off the end of the input string. bug 346794, r=brendan 2006-08-01 20:00:03 +00:00
brendan%mozilla.org
9b38470bd3 DEBUG-only code to catch format arg count vs. arg specifier mismatch (346773, r=dbaron). 2006-08-01 07:00:26 +00:00
brendan%mozilla.org
2814ad89a3 Fix tw in vim modeline. 2006-08-01 04:55:58 +00:00
brendan%mozilla.org
228f74dd2d Warning fix, plus an XXX comment. 2006-08-01 01:52:37 +00:00
brendan%mozilla.org
c32281957a Warning abatement. 2006-08-01 01:49:22 +00:00
mrbkap%gmail.com
f431fe7ba6 Fix this copy-paste error: there are no parameters to this message. bug 346773, r=brendan 2006-08-01 01:36:51 +00:00
brendan%mozilla.org
9d7d5d6fa1 Fix type-unsafe union discrimination bug (346645, r=mrbkap). 2006-07-31 22:56:51 +00:00
mrbkap%gmail.com
26ab1065f4 XDR block objects so that when we try to XDR a let expression or array comprehension, we don't error out. bug 346019, r=brendan 2006-07-31 22:52:27 +00:00
brendan%mozilla.org
1cb5dd0336 Fix iteration protocol to enumerate only if the default iterator getter was used to return the iterator to the for-in loop logic (346021, r=mrbkap). 2006-07-31 20:53:22 +00:00
brendan%mozilla.org
3d057dd700 Fix yield nothing and yield yield parsing (345855, r=mrbkap). 2006-07-31 19:23:46 +00:00
igor.bukanov%gmail.com
4cfe4081f1 Bug 341821: Taking out the fix for the bug once again. The fix exposed the problem reported in bug 341815 and it better to address everything as single patch. 2006-07-31 08:40:44 +00:00
mrbkap%gmail.com
4a4679cf9c Ensure that we set gData->ok in OOM situations to avoid continuing on past an OOM and crashing later. bug 346237, r=brendan 2006-07-30 18:42:19 +00:00
martijn.martijn%gmail.com
584a33c71c Bug 323195 - XPCAutoUnlock messes with detection of potential deadlocks, patch by Matthew Gertner, r=brendan 2006-07-29 14:45:09 +00:00
igor.bukanov%gmail.com
13764b426d Bug 342854: Using JSContext callback to ensure that C stack limit is always set. r=brendan,mrbkap,sr=jst 2006-07-29 08:39:04 +00:00
igor.bukanov%gmail.com
f690075c95 Bug 341821: close hooks are run outside GC locks. r=brendan,sr=mrbkap 2006-07-29 07:26:40 +00:00
mrbkap%gmail.com
da84573ed8 Checking in Feng Qian's <feng.qian.moz@gmail.com> patch to make XPConnect eagerly attach its thread private data before the JS engine does, ensuring good ordering when the thread (and thus both XPConnect on that thread and the JS runtime) shuts down, thus preventing racing and use of deleted memory. bug 335018, r=brendan 2006-07-28 20:25:39 +00:00
igor.bukanov%gmail.com
63d75e09ea Bug 341821: removing the previous commit, the patch was broken. 2006-07-28 13:23:09 +00:00
igor.bukanov%gmail.com
0324194b39 Bug 341821: Close hooks are run outside GC locks. r=brendan,sr=mrbkap 2006-07-28 08:05:56 +00:00
brendan%mozilla.org
7c57ebc20f Fix thinko of pnprop for pnhit (346203, r=mrbkap). 2006-07-28 00:37:58 +00:00
brendan%mozilla.org
3e00dc9b3e Fix finally after try that throws, or catch-none finally in try-catch-finally, to save pending exception on stack, then rethrow after retsub (346029, r/sr=mrbkap/shaver). 2006-07-27 21:41:07 +00:00
bzbarsky%mit.edu
6d2c41cdbb Flag JS components as system scripts. Bug 345991, r=mrbkap, sr=brendan 2006-07-27 17:49:01 +00:00
mrbkap%gmail.com
bf57978e14 Checking in Feng Qian's <feng.qian.moz@gmail.com> patch to fix a typo. bug
346027, r=mrbkap
2006-07-27 17:11:36 +00:00
m_kato%ga2.so-net.ne.jp
2d193fbd68 bug 345866 - support OJI for Win64. r/sr=jst 2006-07-27 16:51:25 +00:00
mrbkap%gmail.com
2a02b41adb GCC isn't smart enough to see that list cannot be used uninitialized. Fallout from bug 336921, rs=brendan 2006-07-26 22:10:04 +00:00
igor.bukanov%gmail.com
bd81ffee8a Bug 345967: ensure proper id rooting in array_unshift. r=mrbkap,sr=brendan 2006-07-26 21:32:56 +00:00
mrbkap%gmail.com
5871e3cf79 Add a newline. 2006-07-26 20:54:01 +00:00
mrbkap%gmail.com
b8950a2eb1 Make XML.prototype.appendChild useful by fixing a bug in GetProperty that also exists in ECMA-357. bug 336921, r=brendan 2006-07-26 20:49:52 +00:00
mrbkap%gmail.com
626162160c Checking in a patch from Feng Qian <feng.qian.moz@gmail.com> to improve the performance of Date by caching the UTC time as well as the local time. bug 340992, r=mrbkap 2006-07-26 20:23:45 +00:00
mrbkap%gmail.com
3d9bf71497 Allow reserved keywords to be used as property identifiers after attribute selectors. bug 345922, r=brendan a=beltzner 2006-07-26 18:50:40 +00:00
bclary%bclary.com
35a7e72be4 Improve consistency of IEEE 754 floating point, shell only, not part of the build, r=mrbkap,sr=brendan, bug 343984 2006-07-26 03:56:41 +00:00
mrbkap%gmail.com
2584e1b8b6 Deal with a function in a generator passing too few arguments and with calling the result of 'yield'. Patch from brendan, r=mrbkap, bug 345879 2006-07-26 03:07:16 +00:00
mrbkap%gmail.com
ad013a907d Push catch and with statements onto tc->topScopeStmt so we don't optimize variable lookups inside of them. Also, protect against adding a stmt to the scope statement list twice. bug 345867, r=brendan 2006-07-26 03:03:18 +00:00
bclary%bclary.com
3f8bf3c65a Force JS_Assert to exit with code 3 on Windows, debug only, r=mrbkap,sr=brendan, bug 345118 2006-07-26 02:38:58 +00:00
mrbkap%gmail.com
2711b61c3c Protect each cloned block object from being GC'd. Patch from brendan, r=mrbkap, bug 345772 2006-07-25 23:21:03 +00:00
mrbkap%gmail.com
b631dfc76d Make jsfile.c compile in the new world. bug 345761, rs=brendan 2006-07-25 20:46:11 +00:00
mrbkap%gmail.com
c2c3247957 User a variable that's actually defined by default everywhere. bug 345787, r=brendan 2006-07-24 23:20:56 +00:00
brendan%mozilla.org
cd15d6c3b1 Mark the calle (argv[-2]) from generator_mark (343455, r=mrbkap). 2006-07-22 22:20:40 +00:00
mrbkap%gmail.com
202a6f3a0b Don't assert when the block chain has been captured. bug 345542, r=brendan 2006-07-22 02:16:12 +00:00
brendan%mozilla.org
152df1b227 Rest of fix for 343455 (r=mrbkap). 2006-07-21 21:59:21 +00:00
brendan%mozilla.org
154cd0d3ae Defend against null acx->thread in js_GC, in case JS_ClearContextThread is used for context-pooling (345365, r=feng). 2006-07-21 19:09:36 +00:00
brendan%mozilla.org
4d789580db Null defense needed in case of JS_DestroyRuntime with no script filenames tabled (345350, r=mrbkap). 2006-07-21 02:17:22 +00:00
brendan%mozilla.org
17eecc3107 Mark newborn generators' frames (343455, r=mrbkap). 2006-07-21 02:00:36 +00:00
mrbkap%gmail.com
1ae65e3838 Protect the newborn function object from being collected because of a GC callback displacing it from its newborn root. bug 344759, r=brendan 2006-07-19 18:37:53 +00:00
mrbkap%gmail.com
4f87c8b8db Remove the new wrapper from the map when postcreate fails so that we don't find
it the next time we try to wrap that object. bug 344873, r=jst sr=brendan
2006-07-18 21:26:36 +00:00
mrbkap%gmail.com
07a112a37e Set up let declarations properly by finding the correct JSStmtInfo (not missing try or catch
blocks). This required making the 'scope' statements have a bit instead of a statement type
since we can now morph e.g. try statements. This patch also fixes the numbering for let
blocks after the first let block. bug 344370, r=brendan
2006-07-18 21:23:30 +00:00
jst%mozilla.jstenback.com
d186098107 Fixing bug 344960. Cap the length of ActiveX contract id argument to prevent windows from crashing in bstr code due to OOM. r=mrbkap@gmail.com, sr=bugmail@sicking.cc 2006-07-18 19:45:08 +00:00
mrbkap%gmail.com
ca33b0e632 Handle js_ValueToPrintableSource failure without crashing. bug 344804, r=brendan 2006-07-18 18:20:49 +00:00
mrbkap%gmail.com
3227fb4d67 Don't peek over newlines, since we assume that ts->ungetpos refers to a point on our line. bug 344711, r=brendan 2006-07-18 00:35:15 +00:00
brendan%mozilla.org
606fbd540c Fix JSOP_SETSP to trim only the current frame's scope chain (344959, r=mrbkap). 2006-07-17 23:49:36 +00:00
brendan%mozilla.org
15e0f48461 Warning fix. 2006-07-13 19:18:01 +00:00
brendan%mozilla.org
92134eaf2b Improve mismatched tag name diagnostic (344455, r=mrbkap). 2006-07-13 19:14:21 +00:00
gavin%gavinsharp.com
74b982040d Bug 343998: copysign was not defined on WINCE, patch by dougt, r=brendan 2006-07-13 14:01:41 +00:00
brendan%mozilla.org
a41c1f3355 Trailing whitespace removal. 2006-07-13 01:31:44 +00:00
bent.mozilla%gmail.com
59c230656f Backing out changes from bug 280236. 2006-07-12 23:00:11 +00:00
bent.mozilla%gmail.com
151e9fcc71 Bug 280236 - "coercing an array containing an nsXPCConstructor to a string results in an uncatchable error". Patch by timeless. r=dbradley, sr=jst. 2006-07-12 22:18:45 +00:00
mrbkap%gmail.com
17e71cd968 Add some code that imitates split windows in the js shell. bug 337528, rs=brendan 2006-07-12 21:21:45 +00:00
brendan%mozilla.org
baed97a243 Fix js_PutBlockObject, write JSOP_LEAVEBLOCKEXPR decompiler logic (344262, r=mrbkap). 2006-07-11 23:29:41 +00:00
mrbkap%gmail.com
b12405c6a4 Fix dependencies for regenerating jsautokw.h. bug 344265, r=brendan sr=bsmedberg 2006-07-11 20:19:36 +00:00
brendan%mozilla.org
0aeae8a794 Comment update for last patch (344139, r=mrbkap). 2006-07-10 21:11:47 +00:00
mrbkap%gmail.com
3ed60e4aa8 Emit the correct bytecode when a let-declared variable is on the right side of a += or similar operator. bug 344139, r=brendan 2006-07-10 19:23:13 +00:00
brendan%mozilla.org
7ff75083df Forgot to switch to SRC_INITPROP (344120, r=mrbkap). 2006-07-10 19:13:55 +00:00
mrbkap%gmail.com
964994c006 Clear cached class objects when JS_ClearScope is called on the global object to avoid leaks. Also, add code to GC_MARK_DEBUG that pretty-prints slot names containing cached class objects. bug 343417, r=brendan 2006-07-07 22:28:05 +00:00
brendan%mozilla.org
102fc7b78d Fix another 1.8-branch API compat bit-hack bug. 2006-07-07 06:25:29 +00:00
brendan%mozilla.org
f722c8fbf6 Fix bit-magic brainfart, remove useless test and add assert that it's useless (js1.7 bug, r=mrbkap). 2006-07-07 01:52:07 +00:00
mrbkap%gmail.com
77bbbb4727 Don't stuff the stack slot that we were about to read. bug 343765, r=brendan 2006-07-06 22:46:26 +00:00
mrbkap%gmail.com
c9b8311dda Make sure that we clean up block objects that were cloned into the scope chain for environment capture, so they don't reference dead frame pointers or dead stack slots, and instead have property-based copies of their locals. bug 343765, r=brendan 2006-07-06 20:47:02 +00:00
mrbkap%gmail.com
dd69817f01 Nuke a warning introduced by widening JSFunctionSpec.extra. No bug, r=brendan 2006-07-06 20:18:46 +00:00
mrbkap%gmail.com
02d2912e62 Nuke GCC -pedantic warnings by using the GCC __extension__ keyword (along with a hack to allow us to use it on 'goto' expressions). bug 343680, r=brendan 2006-07-06 20:14:23 +00:00
mrbkap%gmail.com
30d15a673d Landing a patch from Feng Qian <feng.qian.moz@gmail.com> to avoid long-running regexps from hanging the browser forever by calling the branch callback at regular intervals. bug 307456, r=brendan/mrbkap 2006-07-06 20:13:04 +00:00
brendan%mozilla.org
82c8a485f2 Followup to match (modulo comment and whitespace) 1.8 branch for script flags functions. 2006-07-06 19:35:33 +00:00
brendan%mozilla.org
b2072bf1a1 MOZILLA_1_8_BRAN CH API compatibility restoration. 2006-07-06 18:40:03 +00:00
mrbkap%gmail.com
e064fc9e40 Remove this assertion since with objects will botch it. bug 343713, r=brendan 2006-07-06 06:25:31 +00:00
brendan%mozilla.org
9d0e553b2f Fix function body code generation to happen within the TCF_IN_FUNCTION flag's scope (343708, tachyonal r=mrbkap). 2006-07-06 05:28:15 +00:00
brendan%mozilla.org
59bb712b6f JS_1_7_ALPHA_BRANCH landing, mainly destructuring optimizations and let completion (336373, r=mrbkap). 2006-07-06 01:25:44 +00:00
mrbkap%gmail.com
a91848d680 Add missing rooting around a call out JS_Enumerate. bug 343290, r=brendan 2006-07-02 03:30:46 +00:00
mrbkap%gmail.com
21bc46e129 Protect against overly-large reallocations. bug 342960, r=brendan a=dveditz 2006-07-02 03:05:06 +00:00
igor.bukanov%gmail.com
dc6cc6e7b2 Bug 322135: the length setter for array tries to detect a sparse array and enumerate over properties to remove elements beyond the array length. r=mrbkap,sr=brendan 2006-07-01 19:58:44 +00:00
igor.bukanov%gmail.com
beb746b6aa Bug 343228: Fixing array_sort to always free the temporary array. r=mrbkap 2006-07-01 19:52:32 +00:00
igor.bukanov%gmail.com
19908a421e Bug 341956: Reorder id allocation to avoid delays with their access. r=mrbkap,sr=brendan 2006-07-01 19:29:34 +00:00
igor.bukanov%gmail.com
98919b21b5 Bug 342625: Fix js_GC to return false only for branch callback cancelations restoring WAY_TOO_MUCH_GC. r=mrbkap,sr=brendan 2006-06-29 19:13:51 +00:00
bclary%bclary.com
69d4233d70 Bug 330237 - revert patch due to mac os x bustage, not part of the build. r=shaver 2006-06-29 12:51:42 +00:00
igor.bukanov%gmail.com
9ebf7bc3ae Bug 341896: GC finalizes the states of native iterators before finalizing the rest of object. It avoids using expensive close hooks. r=brendan 2006-06-29 06:51:33 +00:00
bzbarsky%mit.edu
2092c2f893 Move around some debug defines to make life better. No reviews, yay! 2006-06-29 05:33:39 +00:00
mrbkap%gmail.com
f2c3659778 Checking in Sebastien Marinier <mozilla@smarinier.net>'s patch (along with a
couple of other bugs that need fixing) to avoid file handle leaks when using
directory[path] syntax. bug 342148, NPOTB
2006-06-28 19:49:39 +00:00
igor.bukanov%gmail.com
d115537fbf Bug 342737: New API to register JS_NewContext/JS_DestroyContext* callback. In this way an embedding can do a common customization of JSContext instances in a single place. r=brendan 2006-06-27 12:09:09 +00:00
mrbkap%gmail.com
80bbd167fe Resolve standard classes even when assigning to give them a chance to initialize
themselves to avoid them overriding the assigned value when they're used internally
the first time. bug 342359, r=brendan sr=jst
2006-06-26 21:22:12 +00:00
timeless%mozdev.org
b33404c812 Bug 330237 editline.c:1038: warning: implicit declaration of function `getpid'
r=shaver
2006-06-25 07:20:40 +00:00
igor.bukanov%gmail.com
07441484f4 Bug 342180: Check for unitialized scriptFilenameTable in js_SweepScriptFilenames as js_GC can run before js_InitRuntimeScriptState is invoked. r=mrbkap 2006-06-24 10:48:56 +00:00
mrbkap%gmail.com
7b1e11248b Keep a strong reference to the context that we're operating on. This involves
giving the sandbox context an nsISupports private data that controls its
lifetime. bug 337462, r+sr=jst
2006-06-24 04:33:24 +00:00
mrbkap%gmail.com
afbc7f20c9 Some style cleanups, and add some paranoia checking. bug 342267, r=dveditz sr=jst 2006-06-23 18:18:09 +00:00
mrbkap%gmail.com
c51c5cdee9 Exception classes need to set their constructors on the global object themselves since they don't use JS_InitClass. bug 342359, r=brendan 2006-06-21 23:54:04 +00:00
mrbkap%gmail.com
b2988348b3 Fix whitespace and style nits from brendan (bug 336409) 2006-06-21 18:16:52 +00:00
brendan%mozilla.org
9041c05ece Fix warning in str_split. 2006-06-21 16:54:40 +00:00
igor.bukanov%gmail.com
9f9ab7cc1e Bug 341877: Infrastructure to root properly native iterator states. r=brendan 2006-06-21 09:13:24 +00:00
mrbkap%gmail.com
87295eaca7 Be safer in doing these additions. bug 336409, r=igor 2006-06-21 00:42:04 +00:00
brendan%mozilla.org
cd71953372 Null defense in case of early failure under js_NewContext (342180, r=mrbkap). 2006-06-20 18:36:34 +00:00
igor.bukanov%gmail.com
8d743fde46 Bug 341877: Reverting the previous commit, the patch was broken. 2006-06-20 00:50:17 +00:00
brendan%mozilla.org
a422d9cec7 White space police state attack. 2006-06-19 23:38:02 +00:00
igor.bukanov%gmail.com
2d2124eb15 Bug 341877: Infrastructure to properly mark native iterator state during GC without changing public API. r=brendan 2006-06-19 22:53:51 +00:00
igor.bukanov%gmail.com
e03eb62472 Bug 341896: Call the branch callback outside GC lock. r=brendan 2006-06-19 22:46:39 +00:00
timeless%mozdev.org
27eaab5dcd Bug 337917 Make consumers stop using cids from other modules 2006-06-18 21:18:22 +00:00
brendan%mozilla.org
574558f96c Home ToString results before concatenating (341896, r=igor). 2006-06-18 16:27:10 +00:00
brendan%mozilla.org
3b45f3b63c Fix iterator to mark opaque state (341877, r=igor). 2006-06-18 02:04:40 +00:00
mrbkap%gmail.com
0ccee130e1 Hacky patch to allow XPConnect's global objects to participate in the JS engine's new JSCLASS_GLOBAL_FLAGS class flags. bug 339041, r=shaver, sr=sicking 2006-06-17 01:03:10 +00:00
igor.bukanov%gmail.com
1b632c00b3 Bug 341675: Prevent an infinite loop in GC when a close hook create more objects with close hooks. r=mrbkap 2006-06-16 19:21:38 +00:00
igor.bukanov%gmail.com
b170611b96 Bug 341510: GC executes close hooks after the sweeping phase as a bulletproof way to prevent finalization of new live things created by the hooks. r=mrbkap 2006-06-16 19:18:50 +00:00
igor.bukanov%gmail.com
4ebdd1094a Bug 340526: make sure during GC that all unreachable objects with close hooks are closed. r=mrbkap 2006-06-16 09:51:11 +00:00
bclary%bclary.com
84b26ca512 Bug 340036: Script tag should support version 1.7, r=mrbkap, r=peterv, sr=brendan 2006-06-15 21:47:59 +00:00
igor.bukanov%gmail.com
5c77935888 Bug 341499: The assert in js_NewGCThing about not running GC now takes into account that we allow allocation from close hooks. r=mrbkap 2006-06-15 10:42:57 +00:00
igor.bukanov%gmail.com
e43c76eb9d Bug 341496: Iterator class now tells the engine about extra slots it uses as its instances are exposed to scripts. r=mrbkap 2006-06-15 10:35:11 +00:00
igor.bukanov%gmail.com
16c92706ee Bug 340751: js_NewGCThing now contains missed checks for delayed GC after too many allocation. r=mrbkap 2006-06-15 10:28:39 +00:00
igor.bukanov%gmail.com
640729a776 Bug 340129: Bulletproof rooting of objects during sharp graph construction/usage. r=mrbkap 2006-06-15 10:14:42 +00:00
gavin%gavinsharp.com
db10e826e9 Fix bustage (forgot to check in these files for bug 337095) 2006-06-15 04:17:43 +00:00
gavin%gavinsharp.com
5c16889651 When calling from C++ out to JS, decide whether to wrap in XPCNativeWrapper based on the callee, not based on what's on the JS stack. The latter is not relevant in this case. Bug 337095, patch by bzbarsky, r=jst/mrbkap, sr=brendan 2006-06-15 03:45:18 +00:00
mrbkap%gmail.com
a9b2667c51 Add some sanity checks. bug 336410, r=igor 2006-06-15 03:26:21 +00:00
mrbkap%gmail.com
1c3b387bd2 Don't fold attribute values whose keys weren't folded since it produces invalid output. bug 340042, r=brendan 2006-06-15 03:17:34 +00:00
mrbkap%gmail.com
6cebff1c46 Distinguish between void (VTYPE_VOID) and null (VTYPE_EMPTY). bug 341364, r=bzbarsky sr=shaver 2006-06-14 16:41:29 +00:00
igor.bukanov%gmail.com
99ed8ebc2a Bug 340129: Reverting all the commits as the tree IS CLOSED. 2006-06-13 23:06:17 +00:00
igor.bukanov%gmail.com
0a42ade42c Bug 340129: Bulletproof rooting of objects during sharp graph construction/usage. r=mrbkap 2006-06-13 22:29:31 +00:00
igor.bukanov%gmail.com
719b0db492 Bug 340129: Reverting the commit, it was the wrong patch! 2006-06-13 22:21:56 +00:00
igor.bukanov%gmail.com
59017eb846 Bug 340129: Bulletproof rooting of objects during sharp graph construction/usage. r=mrbkap 2006-06-13 22:19:55 +00:00
mrbkap%gmail.com
98997f8669 Checking in Ben Turner <bent.mozilla@gmail.com> and timeless's patch to make Gecko use the JS engine's request model to help multithreaded embedders avoid GC races and crashes. bug 176182, r=mrbkap assumed-rs=brendan 2006-06-12 22:39:55 +00:00
bzbarsky%mit.edu
024441ca86 Use a non-bogus error reporter for the subscript loader. Bug 340019, r=mrbkap,
sr=brendan
2006-06-10 00:47:40 +00:00
mrbkap%gmail.com
0e79e0fd16 Use a less complicated function to create the parent object. bug 340727, r=igor 2006-06-09 18:40:56 +00:00
mrbkap%gmail.com
fd559e119f Protect against leaked objects that have close hooks by not attempting another GC if we didn't actually call any close hooks. bug 340889, r=igor 2006-06-09 00:00:19 +00:00
igor.bukanov%gmail.com
bb6fe16e07 Bug 324533: Added missed checks for bad string buffer. 2006-06-08 18:16:10 +00:00
mrbkap%gmail.com
26f873f113 Add some additional evalInSandbox functionality for PAC and use it there. bug 337389, r=shaver sr=darin 2006-06-07 20:21:40 +00:00
mrbkap%gmail.com
1c8b596b49 Use a shiny new API for propagating uncaught exceptions. bug 328161, r=brendan sr=shaver 2006-06-07 00:19:29 +00:00
mrbkap%gmail.com
aedf133593 Protect more properties on catch variables. bug 338709, r=brendan 2006-06-05 21:07:22 +00:00
brendan%mozilla.org
8c19983a2d DEBUG_NOT_THROWING addition for new auto-rethrow-if-exception-pending code. 2006-06-05 20:54:24 +00:00
brendan%mozilla.org
fa309dd75b Eliminate warnings, clean up assertion translation. 2006-06-05 20:35:07 +00:00
brendan%mozilla.org
7380498eab Missing error check/early return for TOK_RETURN refactoring (340369, r=mrbkap). 2006-06-05 18:38:14 +00:00
brendan%mozilla.org
928b5dc750 Fix orange balsa by landing mrbkap's patch for 326497, plus other fixes (340340, r=mrbkap). 2006-06-05 07:18:02 +00:00
brendan%mozilla.org
ba5b32f242 Coroutine generators, a la Python 2.5 (326466, r=igor). 2006-06-04 02:19:09 +00:00
dbaron%dbaron.org
5d00219a4f Add a comment, rs=brendan. 2006-06-03 02:40:02 +00:00
brendan%mozilla.org
9f083bbd2b Better failover to js_DefaultIterator if __iterator__ comes back primitive (340199, r=mrkbap). 2006-06-03 02:30:39 +00:00
brendan%mozilla.org
ff7cbca64a Get value from original object when enumerating prototype objects via for-each-in (339169, r=mrbkap). 2006-06-02 06:30:05 +00:00
mrbkap%gmail.com
8bbb081e9b Fixing some failures that were not being properly propagated. no bug, r=brendan 2006-06-02 00:51:56 +00:00
igor.bukanov%gmail.com
22783e41c9 Bug 338653: Check for JSRuntime.gcMaxMallocLimit on each allocation in js_NewGCThing to trigger GC sooner to prevent accumulation of garbage with large allocations. r=brendan 2006-06-01 22:13:56 +00:00
bryner%brianryner.com
996fc94731 Write out an inline version of isdigit() for ASCII characters - it seems to be a performance win for MSVC, and gcc is already inlining it (bug 339868) r+a=brendan 2006-06-01 20:04:29 +00:00
pedemont%us.ibm.com
3565ee7081 Bug 339871 - Scriptable nsIXPCFunctionThisTranslator uses non-scriptable nsIInterfaceInfo. r/sr=jst. 2006-06-01 19:31:39 +00:00
brendan%mozilla.org
b390867301 Fix to cope with null __proto__ (339685, r=mrbkap). 2006-05-31 21:41:54 +00:00
igor.bukanov%gmail.com
997bc7e12b Bug 339785: When reporting errors about unknown entities in XML literals, do not include append an extra ';' to token buffer as it would not be included in the error message in any case. 2006-05-31 19:11:52 +00:00
brendan%mozilla.org
7aab66ac5a Oops, s/NULL/JS_FALSE/. 2006-05-26 18:01:41 +00:00
brendan%mozilla.org
39933ad5a8 Avoid bad old valueOf call attempt for object-to-object conversion (339256, r=mrbkap). 2006-05-26 17:34:08 +00:00
brendan%mozilla.org
337e318004 Fix off-by-one and logic bugs conspiring against catch blocks (339262, r=mrbkap). 2006-05-25 22:23:37 +00:00
gavin%gavinsharp.com
b581167b49 Bug 265871: rename JavaScript console to Error console, patch by Kurt <supernova_00@yahoo.com>, r=mconnor, ui-r=beltzner, sr=neil/bzbarsky 2006-05-25 21:22:32 +00:00
mrbkap%gmail.com
19bfba4f52 Fix MSVC warnings about assigning a wider variable into a narrower one resulting from the checkin for bug 338678. r=brendan 2006-05-24 21:07:55 +00:00
mrbkap%gmail.com
a42278ba05 Use the correct scope chains when creating iterator objects and StopIteration exceptions to prevent weird object from breaking iteration. bug 338307, r=brendan 2006-05-24 20:26:54 +00:00
benjamin%smedbergs.us
4b0b5e50d7 Bug 339008 - Static string in xpconnect makes libxul builds crash, r=mrbkap with a nit by timeless 2006-05-24 13:35:37 +00:00
bclary%bclary.com
e6c2bf9b97 Bug 336686 - js shell - add pdb files for debugging on windows, r=mrbkap 2006-05-24 05:51:22 +00:00
igor%mir2.org
3df7a16da3 Bug 338804: Making rooting bulletproof. r=mrbkap,sr=brendan 2006-05-23 07:54:17 +00:00
brendan%mozilla.org
267d7d8156 Make anonymous classes really anonymous given self-identified global objects (326466, r=mrbkap). 2006-05-22 23:36:32 +00:00
mrbkap%gmail.com
44ffcbf617 Instead of having a source note per variable type, use a single source note with an immediate operand. bug 336378, r=brendan 2006-05-22 23:33:57 +00:00
igor%mir2.org
65028a8035 Bug 338678: For source compatibility fields "uint16 extra,spare" in JSFunctionSpec are replaced by singe "uint32 extra". In this way we do need to update the current sources that list just 5 fields to include the additional ",0" corresponding to "spare" field. To quell GCC warnings all sources that list less then 5 fields of JSFunctionSpec are updated to explicitly list all 5 fields. r=mrbkap, s=brendan 2006-05-22 22:58:31 +00:00
mrbkap%gmail.com
5b7def9e09 fp->thisp can point to a primitive tagged jsval now, so test that before treating it as a GC thing. bug 336804, r=brendan 2006-05-22 22:46:07 +00:00