Commit Graph

8138 Commits

Author SHA1 Message Date
igor@mir2.org
16849a505a Bug 398219: avoid storing references to the global scope in the compiled scripts. r,a=brendan 2007-12-19 05:20:45 -08:00
crowder@fiverocks.com
3e531b2372 Bug 407600 - Compile Spidermonkey with -Os on Mac, r=bsmedberg, no approval needed, NPOTB 2007-12-18 17:05:48 -08:00
mrbkap@gmail.com
3cffe924e5 missing last character when using readline() on files. bug 407844, r=crowder a=brendan 2007-12-18 16:44:21 -08:00
mrbkap@gmail.com
62ccffd6aa Sync XPCSafeJSObjectWrapper with similar fixes that we took for XPCNativeWrapper. bug 399299, r+sr=jst 2007-12-18 15:33:14 -08:00
mrbkap@gmail.com
972347941c Make |foo instanceof XOW| work as expected. bug 396849, r+sr=jst 2007-12-18 13:06:44 -08:00
mrbkap@gmail.com
a4484eddc8 Work around weird behavior from JS_NewObject when we pass it a parent. bug 407289, r=jst sr=brendan 2007-12-18 11:40:46 -08:00
jst@mozilla.org
4cba3701b2 Fixing orange. 2007-12-17 17:57:19 -08:00
jst@mozilla.org
72e01bc642 Fixing bustage. 2007-12-17 16:49:21 -08:00
jst@mozilla.org
e00cf25458 Fixing bug 408139. Make XPConnect string argument handling code use stack space for string wrappers rather than to heap allocate them for each string argument. r+sr=bzbarsky@mit.edu 2007-12-17 16:39:28 -08:00
brendan@mozilla.org
7d8fcab4dc Remove DUMP_CALL_TABLE (preliminary patch for 365851, r=igor). 2007-12-14 13:36:02 -08:00
crowder@fiverocks.com
b3acc391de Bug 408368 - Suboptimal code in array_sort implementation, code by Igor Bukanov, r=crowder 2007-12-14 09:30:20 -08:00
reed@reedloden.com
214e4dc0fc Bug 408065 - "JSAPI should assert if embedding omits JS_ClearContextThread" [p=jorendorff@mozilla.com (Jason Orendorff) r+a1.9=brendan] 2007-12-13 23:43:54 -08:00
sayrer@gmail.com
545da3b51c Bug 407794. Nightlies should not override module-specific build settings. r=ted.mielczarek. 2007-12-13 19:22:52 -08:00
jst@mozilla.org
2a57cdbdb4 Fixing bug 408143. Make the JSObject for XPConnect wrappers that have classinfo share maps with their prototypes. r+sr+a=brendan@mozilla.org 2007-12-13 17:39:28 -08:00
brendan@mozilla.org
7abd8bb595 Fix warning introduced by patch for bug 408009, r=jst. 2007-12-13 12:59:44 -08:00
crowder@fiverocks.com
5eb9b0b0b3 Bug 403977 - Huge Speed Drop in Array.prototype.sort, patch by Igor Bukanov <igor@mir2.org>, r=crowder, approval1.9 by beltzner 2007-12-13 11:55:21 -08:00
jorendorff@mozilla.com
f8a816c8cf Merge from cvs-trunk-mirror to mozilla-central.
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsbool.c => js/src/jsbool.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfile.c => js/src/jsfile.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jsmath.c => js/src/jsmath.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsprf.c => js/src/jsprf.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
rename : js/src/jsxdrapi.c => js/src/jsxdrapi.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
2007-12-13 13:15:17 -06:00
brendan@mozilla.org
8cdadd238e Back out last rev due to orange tboxen. 2007-12-12 22:40:27 -08:00
jst@mozilla.org
aaffeb614c Fixing bug 408143. Make JSObjects share their prototypes scope (map) even if their ops differ, as long as their newObjectMap hooks are the same. r+a=brendan@mozilla.org 2007-12-12 21:42:04 -08:00
pavlov@pavlov.net
6e91b7c1fb bug 408124. increase size of regexp arena to avoid unnecessary additional allocations. r=crowder 2007-12-12 16:12:30 -08:00
jst@mozilla.org
17c85fe694 Fixing bug 408009. Make doGetObjectPrincipal() faster. r+sr=bzbarsky@mit.edu, r+a=brendan@mozilla.org 2007-12-12 15:02:25 -08:00
igor@mir2.org
076f69ec85 Bug 398219: backing out the check in due to regression failures. 2007-12-12 12:08:24 -08:00
igor@mir2.org
1e5b233ff0 Bug 398219: avoid storing references to the global scope in the compiled scripts. r,a=brendan 2007-12-12 10:47:56 -08:00
brendan@mozilla.org
bb37e6a7fe Reflecting arguments in Call must happen irrespective of JSRESOLVE_ASSIGNING (396584, r=igor). 2007-12-11 13:40:51 -08:00
brendan@mozilla.org
fe766425b6 Don't give Iterator a fixed global binding (407957, r=jwalden). 2007-12-11 13:37:04 -08:00
crowder@fiverocks.com
0966ae9622 Bug 403977 -- Backed out due to mochitest failures -- crowder 2007-12-11 13:07:47 -08:00
crowder@fiverocks.com
bc4cd9a1e3 Bug 403977 - Huge Speed Drop in Array.prototype.sort, patch by Igor Bukanoc <igor@mir2.org, r=crowder 2007-12-11 12:17:41 -08:00
crowder@fiverocks.com
d78a00de7c Bug 375876 - "Assertion failure: (c2 <= cs->length) && (c1 <= c2)" with /[\[-h]/i, r=mrbkap, a=blocking1.9 2007-12-11 12:13:42 -08:00
igor@mir2.org
33dfb48ca3 Bug 406477: eval with function statements adds the function to the proper var object. r,a=brendan 2007-12-11 02:43:56 -08:00
reed@reedloden.com
72d65ef27e Bug 407000 - "Tearing down rt->unitStrings too early leads to incorrect free later" [p=jorendorff@mozilla.com (Jason Orendorff) r=igor a1.9=brendan a=blocking1.9+] 2007-12-11 02:40:29 -08:00
igor@mir2.org
93e67f0a7c Bug 397215: Runtime option to switch to UTF-8 encoding in byte <-> jschar conversiions. Patch from Sam Ruby with some changes by me. r,a=brendan 2007-12-11 02:09:58 -08:00
pavlov@pavlov.net
1cd88420f7 bug 407824. XPCJSContextStack::Push doesn't need to allocate as much as it does. use an nsAutoTArray<> instead. r/sr=jst 2007-12-11 00:40:57 -08:00
pavlov@pavlov.net
b49762112f bug 407428. stack allocate small strings in js_XDRStringAtom instead of instead of using the tempPool arena to allocate them. r=brendan,igor 2007-12-11 00:36:29 -08:00
reed@reedloden.com
33158fbeeb Bug 407815 - Speed up GetSecurityManager() in our XOW code [p=jst@mozilla.org (Johnny Stenback [jst]) r+sr=sicking a=blocking1.9+] 2007-12-11 00:27:41 -08:00
reed@reedloden.com
12e0fa1a55 Bug 407819 - Speed up GetScopeOfObject() [p=jst@mozilla.org (Johnny Stenback [jst]) r+sr=sicking a=blocking1.9+] 2007-12-11 00:24:17 -08:00
sayrer@gmail.com
5cd33817cc backout bug 407815 due to test failures 2007-12-10 21:11:30 -08:00
reed@reedloden.com
f09f67bea1 Back out jst's patch from bug 407819 to see if it fixes qm-centos5-01's mochitest failures. 2007-12-10 19:48:02 -08:00
jst@mozilla.org
e1ffacc0eb Fixing bug 407819. Speed up GetScopeOfObject(). r+sr=jonas@sicking.cc 2007-12-10 18:00:40 -08:00
jst@mozilla.org
c0792b2946 Fixing bug 407819. Speed up GetScopeOfObject(). r+sr=jonas@sicking.cc 2007-12-10 17:42:19 -08:00
jst@mozilla.org
6306fba65f Fixing bug 407815. Speed up GetSecurityManager() in our XOW code. r+sr=jonas@sicking.cc 2007-12-10 17:21:37 -08:00
gavin@gavinsharp.com
67f25d17c8 Bug 376957 followup fix: make Error readonly/permanent, patch by Brendan Eich <brendan@mozilla.org>, r=jwalden, a=schrep for M10 landing 2007-12-10 08:15:01 -08:00
gavin@gavinsharp.com
5308ee78ac Bug 406769: simple code now causes a slow script warning dialog to appear when it didn't before (fix bad regression in the global variable optimizer), patch by Igor Bukanov <igor@mir2.org>, r=brendan, a=schrep for M10 landing 2007-12-09 14:37:27 -08:00
reed@reedloden.com
f1fcf37818 Bug 407501 - "JSOP_NEWINIT lacks SAVE_SP_AND_PC" [p=igor@mir2.org (Igor Bukanov) r+a1.9=brendan aM10=damons] 2007-12-08 23:14:06 -08:00
brendan@mozilla.org
a902a948d0 JSCLASS_FIXED_BINDING only on Namespace, for better backward and forward compat (407323, r=jwalden). 2007-12-08 22:14:26 -08:00
crowder@fiverocks.com
eade185112 Bug 407024 - Fatal JS_Assert "JSVAL_IS_NUMBER(pn3->pn_val) || JSVAL_IS_STRING(pn3->pn_val) || JSVAL_IS_BOOLEAN(pn3->pn_val)", patch by Igor Bukanov <igor@mir2.org>, r=brendan, approvalM10=schrep 2007-12-07 13:36:58 -08:00
igor@mir2.org
37a451667c Bug 406079: dtrace can compile again. Patch from Alfred Peng, r=myself, a1.9,aM10=beltzner. 2007-12-06 12:17:43 -08:00
igor@mir2.org
4ea52a97d6 Bug 406765: quelling GCC unitialized overwarning. r,a=brendan aM10=dsicore 2007-12-06 00:52:03 -08:00
crowder@fiverocks.com
921e592aee Bug 368516: UTF-8 encoded scripts that contain a BOM result in an "illegal character" error, r=mrbkap, r=brendan, a=schrep 2007-12-05 21:09:38 -08:00
mrbkap@gmail.com
33c1a8132b Backing this out to fix mochitest failures. 2007-12-04 16:52:02 -08:00
mrbkap@gmail.com
85a5d646af Preserve more important attributes. bug 393269, r+sr=jst a=beltzner 2007-12-04 16:17:06 -08:00
mrbkap@gmail.com
1eab27a903 Complete the checkin for bug 399298. r+sr=jst 2007-12-04 16:13:49 -08:00
mrbkap@gmail.com
58b7f4efda Set XOWs' prototypes to null to avoid confusion. bug 405726, r+sr=jst a=beltzner 2007-12-04 11:07:08 -08:00
igor@mir2.org
e5af2095c0 Bug 406555: The decompiler output no longer depend on JS_C_STRINGS_ARE_UTF8 for uniformity. a,r=brendan 2007-12-04 01:30:23 -08:00
igor@mir2.org
1c10d71daf Bug 405962: extra patch to move the switch case for CALL_PROP to a beter place in the source. r,a=brendan 2007-12-04 01:26:23 -08:00
igor@mir2.org
0ea5b6f14c Bug 405962: making sure that we can compile with !JS_HAS_XML_SUPPORT. a,r=brendan 2007-12-04 01:08:13 -08:00
jwalden@mit.edu
908d04a379 Kick the stupid Windows test box. 2007-12-03 19:40:06 -08:00
jwalden@mit.edu
d3b11a2cbf Bug 376957 - Prevent data leaks from cross-site JSON loads (JavaScript literals), by making the global name bindings ReadOnly/DontDelete and making [] and {} use the global bindings. Still more that can be done here, but this covers a lot of the fix. r+a=brendan 2007-12-03 19:05:24 -08:00
jorendorff@mozilla.com
c51bec2cbf Merge from cvs-trunk-mirror to mozilla-central.
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
2007-12-03 17:50:14 -06:00
reed@reedloden.com
63456c86a2 Bug 406608 - "Cast needed in jsfun.c (C++ compatibility)" [p=jorendorff@mozilla.com (Jason Orendorff) r=igor a1.9=damons] 2007-12-03 14:21:17 -08:00
jag@tty.nl
aa639ffd66 Bug 382034: support optional arguments in idl; follow-up patch to address reading absent optional arguments from argv. r=enndeakin, sr=jst, a=mtschrep 2007-12-02 20:20:13 -08:00
reed@reedloden.com
58880b2278 Bug 398579 - "Allow using chrome:// URLs in Components.utils.import()" [p=ajvincent@gmail.com (Alex Vincent) r=sayrer sr=bsmedberg a1.9=damons] 2007-11-30 22:45:04 -08:00
reed@reedloden.com
3c4ac4c8f4 Back out WeirdAl's patch from bug 398579 to see if it caused the perf regression on Linux. 2007-11-30 17:23:10 -08:00
reed@reedloden.com
892f2e7f36 Bug 398579 - "Allow using chrome:// URLs in Components.utils.import()" [p=ajvincent@gmail.com (Alex Vincent) r=sayrer sr=bsmedberg a1.9=damons] 2007-11-30 12:03:37 -08:00
igor@mir2.org
22c2a33a75 Bug 403878: No compiler pseudo-frames when compiling functions. r,a=brendan 2007-11-29 06:49:42 -08:00
reed@reedloden.com
450727effa Bug 371636 - "IE Array sort on numbers using default string comparator is 5x faster" [p=igor@mir2.org (Igor Bukanov) r+a1.9=brendan a=blocking1.9+] 2007-11-28 23:09:21 -08:00
reed@reedloden.com
4633e7861a Bug 404755 - fixing memory leak resulted from bug 363603 [p=igor@mir2.org (Igor Bukanov) r+a1.9=brendan] 2007-11-28 22:00:10 -08:00
reed@reedloden.com
a5ab5751ec Back out Igor's patch from bug 404755 to see if it fixes the orange. 2007-11-28 20:12:08 -08:00
crowder@fiverocks.com
7abb68db68 Bug 405882 - js.c has an unmatched fopen() resource leak, r=igor (not part of the build) 2007-11-28 17:00:33 -08:00
igor@mir2.org
44d7db2341 Bug 404755: fixing memory leak resulted from bug 363603. a,r=brendan 2007-11-28 14:22:40 -08:00
mrbkap@gmail.com
81e35c902c Make XOW's toString consistent over all cases. bug 398109, r=jst sr=bzbarsky a=beltzner 2007-11-27 17:09:31 -08:00
mrbkap@gmail.com
9faca3d85d Don't use a prototype to do any work, just do it ourselves. bug 399298, r=jst sr=brendan a=blocking-1.9 2007-11-27 17:03:41 -08:00
mrbkap@gmail.com
b00023d855 Actually throw if the thrown thing was not an nsresult. bug 401735, r+sr+a=jst 2007-11-27 16:49:08 -08:00
jst@mozilla.org
a668c9bc61 Landing fix for bug 393267. Fixing problem with setting __proto__ on objects with XOW's on its prototype chain. Patch by mrbkap@gmail.com, r=jst@mozilla.org, sr=brendan@mozilla.org 2007-11-27 15:45:20 -08:00
igor@mir2.org
a0d8d9194e Bug 399544: using custom storage for function argument and variable names. r,a=brendan 2007-11-27 00:38:47 -08:00
jorendorff@mozilla.com
9c8f51584b Merge from cvs-trunk-mirror to mozilla-central.
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfile.c => js/src/jsfile.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsxdrapi.c => js/src/jsxdrapi.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
rename : js/src/prmjtime.c => js/src/prmjtime.cpp
2007-11-26 13:55:13 -06:00
jwalden@mit.edu
300d5d5c21 Bug 405372 - jsshell tracing() appears to work in JS_THREADED_INTERP builds but doesn't. r+a=brendan 2007-11-26 10:06:53 -08:00
igor@mir2.org
3a067462ef Bug 404803: patch from Jason Orendorff to restore C++ compatibility. r=myself a=brendan 2007-11-26 09:41:45 -08:00
igor@mir2.org
140ee1cf49 Bug 347927: consistently using JS_ARRAY_LENGTH macro. r,a=brendan 2007-11-26 07:18:43 -08:00
igor@mir2.org
e46dc99233 Bug 394941: report exhausting of the script memory quota as ordinary runtime exceptions. r=brendan, a1.9=beltzner 2007-11-22 14:21:18 -08:00
igor@mir2.org
792e095787 Bug 404499: fixing the regression in the decompiler from landing of bug 398609. r,a=brendan 2007-11-22 00:06:00 -08:00
reed@reedloden.com
4272f519dd Bug 403878 - Replacing js_InternalCall with js_Invoke in Array.sort for arrays with scripted compator functions (save alloc/free on each compare) [p=crowder@fiverocks.com (Brian Crowder) r=igor a=blocking1.9+] 2007-11-20 21:51:46 -08:00
crowder@fiverocks.com
f31d7fa41e Bug 403878 - Backing out, potentially caused orange on test tinderbox 2007-11-20 12:52:14 -08:00
crowder@fiverocks.com
e46cad284d Bug 399199: jsfile.c fails to compile, patch by Jeff Watkins <jeff.watkins.spam@gmail.com> r=crowder, a=not part of the build 2007-11-20 10:23:49 -08:00
crowder@fiverocks.com
880f250289 Bug 403878 - Replacing js_InternalCall with js_Invoke in Array.sort for arrays with scripted compator functions -- save alloc/free on each compare r=ibukanov, a=blocking1.9+ 2007-11-20 10:07:13 -08:00
jorendorff@mozilla.com
05bca47596 Merging from cvs-trunk-mirror to mozilla-central.
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
rename : js/src/prmjtime.c => js/src/prmjtime.cpp
2007-11-19 15:25:08 -06:00
igor@mir2.org
a4162380a8 Bug 398609: simpler handling of hidden properties, r,a=brendan 2007-11-19 09:15:45 -08:00
peterv@propagandism.org
473a62cd5f Sync declaration of js_TraceFunction with definition. 2007-11-19 03:38:08 -08:00
igor@mir2.org
1831710dfa Bug 403678: GC thing callback is removed. r,a=brendan 2007-11-19 02:57:04 -08:00
igor@mir2.org
7d6e57125d Bug 398609: backing out due to test failures. 2007-11-18 16:58:46 -08:00
igor@mir2.org
64dc5b1984 Bug 398609: cleanup of hidden properties support. r,a=brendan 2007-11-18 16:36:49 -08:00
peterv@propagandism.org
9989fb489f Fix for bug 375808 (Replacing GCX_PRIVATE by GCX_FUNCTION). r=igor, sr=jst, a=schrep. 2007-11-18 06:10:28 -08:00
reed@reedloden.com
f941fdc959 Bug 395836 - "(new Date).toLocaleFormat("%D") crashes Minefield" [p=mats.palmgren@bredband.net (Mats Palmgren) r=crowder a=blocking1.9+] 2007-11-17 00:25:23 -08:00
reed@reedloden.com
3f9e133d9c Bug 400393 - "mozilla-central: jsatom.cpp has bad casts in 64-bit OS" [p=benjamin@smedbergs.us (Benjamin Smedberg) r=igor a1.9=schrep] 2007-11-16 20:20:37 -08:00
reed@reedloden.com
dff4bb8d6e Bug 402653 - "xpcshell core dump when shutdown" [p=solar@netease.com (Solar) r=igor a=blocking1.9+] 2007-11-15 01:01:17 -08:00
reed@reedloden.com
4c5746dc93 relanding bug 400687 since it doesn't look to be the source of the Ts regression 2007-11-14 20:16:35 -08:00
gavin@gavinsharp.com
939757e2f4 Back out the patch for bug 400687 to see whether it caused the Ts regression, a=sicking 2007-11-14 16:17:28 -08:00
brendan@mozilla.org
3cbee734d4 Propagate end position in all cases parsing a parenthesized expression (402386, r=mrbkap/a=schrep). 2007-11-13 18:07:28 -08:00
igor@mir2.org
0f544e4c18 Bug 396487: objects can be marked as system only during creation. r,a=brendan 2007-11-13 16:50:17 -08:00
igor@mir2.org
8b7011f509 bug 397289: removing JSParseNode.pn_ts. r,a=brendan 2007-11-13 14:18:17 -08:00
igor@mir2.org
ca808e133e Bug 400687: removal of dependency of xpconnect on internal JS GC thing types. r,a=brendan 2007-11-13 13:23:07 -08:00
igor@mir2.org
837c046912 Bug 398609: Backing out due to mochi test failure. 2007-11-13 07:47:28 -08:00
igor@mir2.org
6c43fd5702 Bug 398609: cleanup of hidden properties. r,a=brendan 2007-11-13 06:56:18 -08:00
reed@reedloden.com
f79a9b57ed Bug 401188 - "Thread-unsafe updates to sub-atomic rt->gc{Poke,Zeal}" [p=crowder r=igor a1.9=brendan] 2007-11-13 02:44:08 -08:00
reed@reedloden.com
b391eb319e Bug 327869 - "new Date (1899, 0).toLocaleString() causes abnormal program termination if compiled with VC 8" [p=mats.palmgren@bredband.net (Mats Palmgren) r=crowder a=blocking1.9+] 2007-11-13 00:35:42 -08:00
reed@reedloden.com
0352b51ca8 Bug 400793 - "Need JS_AlreadyHasOwnProperty (UCProperty, Element)" [p=crowder r+a1.9=brendan] 2007-11-13 00:28:47 -08:00
reed@reedloden.com
6af24f946e Bug 398177 - "ISO 8601 dates helper" [p=erwan@flock.com (Erwan Loisant) r=sayrer sr=mscott a1.9=damons] 2007-11-13 00:12:56 -08:00
reed@reedloden.com
8a96e0e5c6 Bug 398485 - "Date toLocaleString() clamps the year to -32767 .. 32767" [p=mats.palmgren@bredband.net (Mats Palmgren) r=crowder a1.9=schrep] 2007-11-12 22:39:16 -08:00
reed@reedloden.com
b4a5976379 Bug 353116 - ""has no properties" is misleading and should be replaced with "is null or undefined"" [p=rich@rd.gen.nz (Rich Dougherty) r=brendan r=crowder a1.9=damons] 2007-11-12 21:23:22 -08:00
peterv@propagandism.org
bd7abdc552 Undoing accidental backout of the fix for bug 401254. 2007-11-12 06:45:08 -08:00
reed@reedloden.com
e356453930 Bug 401298 - "Including jsapi.h generates many warnings with certain compiler configurations (e.g. gcc 3.4 -Wstrict-prototypes)" [p=wes@page.ca (Wesley W. Garland) r=mrbkap a1.9=brendan] 2007-11-07 01:17:35 -08:00
igor@mir2.org
8b7c86c157 Bug 398085: better handling of long jumps in the bytecode. r,a=brendan,aM9=beltzner 2007-11-06 11:41:04 -08:00
igor@mir2.org
9bd984356d Bug 402087: fixing iteraction between gczeal mode and scripts. r,a=brendan, aM9=beltzner 2007-11-06 03:05:00 -08:00
shaver@mozilla.org
73e1405020 copy WINNT5.2 config for vista, npotb, r=crowder 2007-11-05 12:08:23 -08:00
peterv@propagandism.org
db82918acf Fix for bug 402535 (Cycle collection crashes with Leak Monitor extension installed). Pending-r=sicking, sr=jst, a=dsicore. 2007-11-05 11:43:08 -08:00
peterv@propagandism.org
93565d5348 Fix for bug 402379 (Crash with Venkman profiling [@ JS_IsSystemObject]). r=igor, pending-sr=jst. 2007-11-05 01:12:16 -08:00
jonas@sicking.cc
6c25f1dfd7 Bug 404402: Don't remove an XPCTraceableVariant from root set in dtor if it has already been done during unlinking. Patch by peterv. r/sr=sicking 2007-11-04 18:07:09 -08:00
peterv@propagandism.org
03c2ddbbf8 Fix crash from patch for bug 401687 (Stop refcounting JS objects in the cycle collector). r/sr=jst, a=dsicore@mozilla.com. 2007-11-02 08:48:00 -07:00
reed@reedloden.com
3b58bb05e5 Bug 401806 - "support building with dtrace enabled on Mac OS X" [p=Ryan r=luser aM9=schrep] 2007-11-01 23:36:49 -07:00
jst@mozilla.org
b82c1c86f3 Fixing solaris bustage from bug 401687. r+sr=jonas@sicking.cc 2007-11-01 18:09:53 -07:00
jst@mozilla.org
858f753261 Landing patch for bug 401687. Stop reference counting JS objects in the cycle collector. Patch by peterv@propagandism.org, r+sr=dbaron@mozilla.com,igor@mir2.org, a=dsicore@mozilla.com 2007-11-01 15:51:57 -07:00
jorendorff@mozilla.com
8244121745 Merge from cvs-trunk-mirror to mozilla-central.
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
2007-10-31 10:40:29 -05:00
peterv@propagandism.org
0614d590fc Part 1 of fix for bug 379718 (using trace API for reference counts) and bug 386912 (cycle collector faults after tracing "JS object but unknown to the JS GC"). r=igor/jst, sr=jst, a=blocking1.9+/M9 (for bug 386912). 2007-10-29 06:45:07 -07:00
peterv@propagandism.org
26b136edfe Backing out once more to fix orange. 2007-10-28 05:49:30 -07:00
peterv@propagandism.org
eae43da5fc Part 1 of fix for bug 379718 (using trace API for reference counts) and bug 386912 (cycle collector faults after tracing "JS object but unknown to the JS GC"). r=igor/jst, sr=jst, a=blocking1.9+/M9 (for bug 386912). 2007-10-28 04:14:40 -07:00
igor@mir2.org
22632f27dc Bug 401254: new shell function gcparam as a wrapper for JS_SetGCParameter. r=brendan. Browser builds do not use the file. 2007-10-27 16:04:13 -07:00
jonas@sicking.cc
903acf3ee6 bug 394390: Don't report bogus warnings to the error console when using cross-site xmlhttprequest. Patch by Surya Ismail <suryaismail@gmail.com>, r/sr=sicking 2007-10-26 18:46:09 -07:00
peterv@propagandism.org
89c081734f Backing out to fix orange. 2007-10-26 07:15:28 -07:00
peterv@propagandism.org
7496875bfa Part 1 of fix for bug 379718 (using trace API for reference counts) and bug 386912 (cycle collector faults after tracing "JS object but unknown to the JS GC"). r=igor/jst, sr=jst, a=blocking1.9+/M9 (for bug 386912). 2007-10-26 06:25:32 -07:00
reed@reedloden.com
8d268b59fb Bug 393627 - "JS XPCOM component exception handled by native code shows up in error console" (don't report nsresult exceptions thrown from JS) [p=mrbkap r+sr=jst aM9=beltzner] 2007-10-24 22:59:37 -07:00
igor@mir2.org
7432749720 Bug 399090: proper check for duplicated parameter names in xdr decoder. r=brendan,mrbkap a=brendan aM9=beltzner 2007-10-24 14:50:22 -07:00
jst@mozilla.org
d1cdc96ae3 Landing fix for bug 388564. Adding Dtrace probes to the JS engine. Patch by padraig.obriain@sun.com and brendan@sun.com, and some intergration work done by jst@mozilla.org. r=brendan@mozilla.org, igor@mir2.org, sayrer@gmail.com, and r+a=ted.mielczarek@gmail.com. 2007-10-19 15:24:32 -07:00
benjamin@smedbergs.us
c3393d4ddd Bug 400393 - Can't build mozilla-central on 64-bit OS because of pointer-to-int32 casts which are ok in C but not in C++, r=igor 2007-10-19 15:33:13 -04:00
benjamin@smedbergs.us
0553a0887d Merge cvs-trunk-mirror -> mozilla-central
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsbool.c => js/src/jsbool.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jsmath.c => js/src/jsmath.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
rename : js/src/prmjtime.c => js/src/prmjtime.cpp
2007-10-13 21:05:56 -04:00
timeless@mozdev.org
d12c3005eb Bug 397239 ActionMonkey: Remove "extra" parameter to JS_FN patch by Jason Orendorff <jorendorff@mozilla.com> r=igor a=brendan 2007-10-13 13:09:48 -07:00
jst@mozilla.org
73d06385cd Fixing bug 399406. Make sure to initialize LiveConnect (if needed) when loading applets. r+sr+a=jonas@sicking.cc 2007-10-13 09:42:44 -07:00
mrbkap@gmail.com
ea3c9194f2 Restore dynamic indirect eval code. bug 383682, r=brendan/igor a=brendan 2007-10-09 15:42:42 -07:00
crowder@fiverocks.com
2866608cbf Bug 395836 - backed out "patch with nits fixed" due to perf regressions 2007-10-09 15:34:04 -07:00
bent.mozilla@gmail.com
fca40ef963 Oops, removing windows line endings I accidentally checked in when fixing bug 399094. 2007-10-09 13:18:44 -07:00
jorendorff@mozilla.com
1895f3da4f Merge from cvs-trunk-mirror to mozilla-central.
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
rename : js/src/prmjtime.c => js/src/prmjtime.cpp
2007-10-09 13:00:59 -05:00
bent.mozilla@gmail.com
dcf0aa1c00 Bug 399094 - "Wrappers don't deal with non-native objects". Patch by Blake Kaplan <mrbkap@gmail.com>, r+sr+a=jst. 2007-10-08 23:16:55 -07:00
bzbarsky@mit.edu
cb240a8164 Wrap the strftime() call with an empty "invalid parameter handler" on Windows. b=395836, patch by Mats Palmgren <mats.palmgren@bredband.net>, r=crowder a=brendan 2007-10-08 21:24:57 -07:00
mrbkap@gmail.com
ec86169c52 Don't call setters if there is no setter to call. bug 398040, r=brendan sr=jst a=blocking1.9+ 2007-10-06 10:14:34 -07:00
benjamin@smedbergs.us
ef77e06887 Bug 397773 - mozilla-central has pedantic errors because of extra commas, r=mrbkap+brendan a=brendan 2007-10-05 06:58:51 -07:00
bclary@bclary.com
fe8084d1ef Update JS_GetImplementationVersion to 1.8.0 on trunk, bug 380901, ra=brendan 2007-10-03 06:48:01 -07:00
igor@mir2.org
fa98070cd2 Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan 2007-10-02 16:10:09 -07:00
igor@mir2.org
91ee82b969 Backing out the patch 397210. 2007-10-01 13:46:10 -07:00
igor@mir2.org
9ffab6a112 Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan 2007-10-01 13:25:25 -07:00
igor@mir2.org
6360c6c769 Bug 396758: the system flag is moved from GC flags to JSObject itself. r=brendan 2007-10-01 12:11:41 -07:00
mrbkap@gmail.com
054ff675b4 Propagate exceptions from the evalcx context to the outer context so they can be caught. bug 353737, r+a=brendan 2007-09-30 17:43:30 -07:00
mrbkap@gmail.com
3b183e4e87 Implement an iterator hook for cross origin wrappers to avoid wrongly walking up the prototype chain during enumeration. bug 390947, r+a=brendan sr=jst 2007-09-30 17:31:22 -07:00
igor@mir2.org
6e02e43f6d evalcx uses JS_BeginRequest/JS_EndRequest. bug 398045, r=mrbkap, not a part of the build. 2007-09-30 09:12:15 -07:00
reed@reedloden.com
c4a5cce285 Bug 397536 - "performance improvements for JSON.jsm" (optimize string serialization) [p=zeniko@gmail.com (Simon Bünzli) r=sspitzer sr=brendan a1.9=mconnor] 2007-09-27 09:50:29 -07:00
igor@mir2.org
a27e01321b Bug 396758: taking the patch out as it broke the test cases. 2007-09-25 10:30:55 -07:00
igor@mir2.org
c43bd3e5f1 Bug 396758: the system flag is moved from GC flags to JSObject itself. r=brendan 2007-09-25 10:08:41 -07:00
bent.mozilla@gmail.com
d621642b2b Bug 397311 - Need a JSAutoRequest in xpcJSWeakReference::Init. r=brendan, sr+a=jst. 2007-09-23 23:09:56 -07:00
mrbkap@gmail.com
40d1182d3f Fix obsolete test and add a new test to fix orange. 2007-09-22 14:42:36 -07:00
mrbkap@gmail.com
e2aef6cdbe Only allow XOW wrapped prototypes to go to null, not other objects. bug 394815, r+sr+a=brendan 2007-09-22 14:12:32 -07:00
mrbkap@gmail.com
dbdd20c732 Fix Convert to work for JSTYPE_VOID and make sure it reports an error. bug 394436, r=jst sr=brendan 2007-09-22 14:09:51 -07:00
mrbkap@gmail.com
f52c2fdd71 Fix old bug where we wouldn't close ts after a compilation error. bug 397136, r+a=brendan 2007-09-22 13:13:35 -07:00
jorendorff@mozilla.com
7274b79fe3 Merge cvs-trunk-mirror to mozilla-central.
--HG--
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
2007-09-21 09:55:35 -04:00
brendan@mozilla.org
a6dd2d83f6 Fix order of evaluation bug in bitwise and shift ops (396969, r=igor). 2007-09-20 14:49:26 -07:00
benjamin@smedbergs.us
b4a8d79ecb Bug 396936 - FLAGP_TO_THING bustage from C++, r+a=brendan 2007-09-20 12:49:59 -07:00
benjamin@smedbergs.us
138a327eb5 Bug 395678 - Fix const issues with strchr in C++ (when used in mozilla-central), r=mrbkap, a=brendan 2007-09-20 11:58:01 -07:00
benjamin@smedbergs.us
ee455757de Merge cvs-trunk-mirror to mozilla-central
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
2007-09-20 13:33:44 -04:00
igor@mir2.org
1dd9e7fca8 Bug 333236: merge sweep and free phases in GC. r=brendan 2007-09-19 15:04:47 -07:00
igor@mir2.org
fe1659e34d Bug 394673: avoid recursion with long chains of "||" or "&&" in JS code. r=brendan 2007-09-19 14:53:17 -07:00
igor@mir2.org
13edbd1801 Bug 396684: fixing regression from bug 394551 in js_Invoke. r=brendan 2007-09-19 14:10:58 -07:00
sayrer@gmail.com
a7d449ed50 Bug 396651. Fix JS Request assert in nsXPCComponents_Utils::LookupMethod. r/sr/a=brendan 2007-09-19 13:47:38 -07:00
sayrer@gmail.com
8bcd5fb9f2 Bug 396452. Enforce SpiderMonkey request model with assertions. r=mrbkap, sr/a=brendan 2007-09-18 17:26:39 -07:00
mattwillis@gmail.com
cd1237608a bug 396119 - Fix minor errors in XPCOMUtils.jsm. Patch by Manish Singh <manish@flock.com>, r1=gavin, r2=sayrer 2007-09-18 15:11:31 -07:00
mrbkap@gmail.com
d1dbe2cfa8 Give scx a global object so that we can always calculate a "this" object. bug 394967, r+a=brendan 2007-09-18 09:37:13 -07:00
igor@mir2.org
cc6784b030 Bug 394551: no JS frames for fast native calls. r=brendan 2007-09-18 00:34:54 -07:00
igor@mir2.org
cd16ec9fa2 Bug 396049: the last ditch GC gcPoke checks are moved to js_NewGCThing. r=brendan 2007-09-18 00:22:07 -07:00
brendan@mozilla.org
19b6fcc0f0 Back-out due to test failure. 2007-09-17 18:22:20 -07:00
brendan@mozilla.org
2260fcfe2e Make GCF_SYSTEM immutable per object (396487, r=igor). 2007-09-17 17:47:42 -07:00
igor@mir2.org
ac496da11c Bug 394802: mark the property only when tracing from GC. r=brendan 2007-09-17 13:16:07 -07:00
igor@mir2.org
aacdc13f0f Bug 394551: taking out the last patch as broke Windows build. 2007-09-17 12:28:14 -07:00
mrbkap@gmail.com
a6d66e6830 Actually use an escape for the nul character. bug 375639, r+a=brendan 2007-09-17 12:11:52 -07:00
igor@mir2.org
065a93dd1c Bug 394551: no JS frames for fast native calls. r=brendan 2007-09-17 12:08:46 -07:00
jorendorff@mozilla.com
214bcd9d84 Merge from CVS trunk to mozilla-central.
--HG--
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
2007-09-17 10:17:44 -04:00
igor@mir2.org
d82abae099 Bug 396326: patch from Seno Aiko to use thr proper bytecode flags. r=mrbkap 2007-09-16 11:23:39 -07:00
igor@mir2.org
f058abee03 Bug 392263: using mmap/VirtualAlloc for GC arenas. r=brendan 2007-09-16 06:03:17 -07:00
igor@mir2.org
f3d30850c6 Bug 392263: taking out the patch due to bug 396299. 2007-09-16 05:02:56 -07:00
reed@reedloden.com
b121ae0350 Backing out patch by Mook from bug 390328 due to compile errors. 2007-09-15 11:15:01 -07:00
reed@reedloden.com
3f0587a64a Bug 390328 - "Let nsIXPConnect::debugDumpJSStack take a file" [p=Mook r=bsmedberg sr=bzbarsky a1.9=jst] 2007-09-15 11:03:33 -07:00
igor@mir2.org
5855f137e7 Bug 392263: using mmap/VirualAlloc for GC arenas. r=brendan 2007-09-15 10:19:32 -07:00
mrbkap@gmail.com
6426c64ef1 Create a JSClass hook to allow object classes to easily support custom iteration without having to override __iterator__ in a resolve hook. bug 393306, r+a=brendan 2007-09-15 09:58:45 -07:00
mrbkap@gmail.com
13182b9325 Treat the pseudo frame even more like a real frame. bug 390597, r+a=brendan 2007-09-15 09:46:42 -07:00
igor@mir2.org
9343ce4a2c Bug 392263: taking out the patch due to Mac build problems. 2007-09-15 08:26:30 -07:00
igor@mir2.org
43e3bb8cc3 Bug 392263: using mmap/VirualAlloc for GC arenas. r=brendan 2007-09-15 08:11:41 -07:00
brendan@mozilla.org
ecc84d4fb5 Fix old bug involving eval of a local function named by an existing local var (395907, r=mrbkap). 2007-09-14 17:13:37 -07:00
sayrer@gmail.com
4f76121753 Bug 395849. XPCVariant::VariantDataToJS leaks strings with sizes. r/sr=jst 2007-09-14 15:48:47 -07:00
brendan@mozilla.org
12403e7546 Fix dumb signed comparison bug (395828, r=mrbkap). 2007-09-14 11:00:38 -07:00
jorendorff@mozilla.com
ad6782b7ce Merge from cvs-trunk-mirror
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
2007-09-12 15:23:10 -04:00
benjamin@smedbergs.us
66d4e82f55 Bug 395444 - Fast-path QueryInterface in XPCWrappedNative::CallMethod, r=mrbkap sr=jst a=damons 2007-09-10 11:16:05 -07:00
gavin@gavinsharp.com
b239b12db5 Back out patch for bug 395256 because it caused bug 395467 (a=schrep/bsmedberg) 2007-09-07 18:43:13 -07:00
igor@mir2.org
4606e8ce2b Bug 394709: fixing memory leak with watch handlers. r+a=brendan 2007-09-07 14:02:20 -07:00
igor@mir2.org
88c81d41b4 Bug 394853: countHeap function for js shell and help() cleanup. r=brendan 2007-09-07 11:25:19 -07:00
benjamin@smedbergs.us
a79f1f491e Bug 395256 - Make nsJSID/IID/CID objects .equals method slightly faster, r=mrbkap sr=jst a=damons 2007-09-07 11:06:15 -07:00
crowder@fiverocks.com
ab2a822c30 Bug 375651 - "Assertion failure: nbytes != 0" with regexp quantifiers, r=mrbkap, a=brendan 2007-09-05 21:26:11 -07:00
benjamin@smedbergs.us
7df112dc1c Bug 394329 - Ship the JS import library in the SDK, and stop linking it from browsercomps which doesn't use it, r=luser a=NPDB 2007-09-05 08:56:56 -07:00
igor@mir2.org
342724e085 Bug 394975: properly initializing JSContext for evalx. r=mrbkap. No 1.9 aproval as the file is outside browser's build tree. 2007-09-05 02:45:31 -07:00
jag@tty.nl
d535057a5e Bug 271824: do_GetFastLoadService should use nsGetServiceByCID. r=/sr=/a=bsmedberg 2007-09-05 02:13:57 -07:00
jwalden@mit.edu
f57320c98b Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change 2007-09-04 23:41:35 -07:00
jorendorff@mozilla.com
9590db16db Merge from cvs-trunk-mirror
--HG--
rename : js/src/jsdtoa.c => js/src/jsdtoa.cpp
2007-09-04 15:53:36 -04:00
igor@mir2.org
33a991de00 Bug 362641: patch from Edward Lee to fix wrong precision warning. r=myself,brendan 2007-09-02 15:20:41 -07:00
jorendorff@mozilla.com
15f49640e5 Merge from cvs-trunk-mirror.
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarena.c => js/src/jsarena.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
2007-08-31 17:27:11 -04:00
bent.mozilla@gmail.com
fd28607fdf Bug 304048 - Backing out patch due to TXUL regression. 2007-08-30 17:52:58 -07:00
bent.mozilla@gmail.com
dea35a2d77 Bug 304048 - "xpconnect getters/setters don't have principals until after they pass or fail their security check." Patch by jst, sr=bzbarsky, a=jst. 2007-08-28 17:16:21 -07:00
igor@mir2.org
8f31883e5a Bug 393368: new API to limit heap consumption by stack-like data structures used by compiler, decompiler and interpreter. 2007-08-27 15:21:55 -07:00
igor@mir2.org
4b02240bde Bug 393537: arena handling cleanup. r=brendan 2007-08-25 00:18:35 -07:00
jorendorff@mozilla.com
5311d53de1 Merge from cvs-trunk-mirror. This fixes bug 393364, a C++ compatibility bug. js/src now builds ok.
--HG--
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsxdrapi.c => js/src/jsxdrapi.cpp
2007-08-23 21:03:00 -04:00
rflint@ryanflint.com
c3a749a333 Bug 386536 - Add category manager helpers to XPCOMUtils. Patch by Nickolay Ponomarev <asqueella@gmail.com>, r=sayrer/mark.finkle a=jst 2007-08-23 17:21:10 -07:00
igor@mir2.org
6e792cb76a Bug 393364: Patch from Jason Orendorff to restore ability to compile SpiderMonkey with C++ compiler. r=me 2007-08-23 12:02:42 -07:00
dbaron@dbaron.org
1a55872e93 When doing ExplainLiveExpectedGarbage, suspect all nsXPCWrappedJS so that we get more objects in the graph. b=387224 r=graydon a=brendan 2007-08-22 17:47:24 -07:00
dbaron@dbaron.org
456ce4796e Make ExplainLiveExpectedGarbage print *all* references to JS objects with refcount imbalances. b=387224 r=graydon a=brendan 2007-08-22 17:46:43 -07:00
igor@mir2.org
153df36a83 Bug 393184: js_NewGCThing no longer zeros the allocated thing. r=brendan 2007-08-22 13:56:08 -07:00
gavin@gavinsharp.com
c17bc2363b Bug 393206: fix JSON tests, patch by Simon Bünzli <zeniko@gmail.com>, r=me 2007-08-22 11:16:01 -07:00
gavin@gavinsharp.com
6572f6cf4b disable failing tests for the moment (bug 393206) 2007-08-22 08:34:15 -07:00
gavin@gavinsharp.com
0b758ec54e Bug 386789: create JSON utilities module and use it for search suggest/sessionstore/Places, patch by Simon Bünzli <zeniko@gmail.com>, r=sspitzer, sr+a=brendan 2007-08-22 07:47:56 -07:00
brendan@mozilla.org
47d32601de Remove MAX_INLINE_CALL_COUNT policing, plus old MAX_INTERP_LEVEL deadwood (392973, r=crowder). 2007-08-21 17:04:24 -07:00
igor@mir2.org
7a9bf4d227 Bug 325202: XDR uses lossless encoding for all string. r=brendan 2007-08-21 14:22:26 -07:00
jorendorff@mozilla.com
b083b44b51 Merge from cvs-trunk-mirror
--HG--
rename : js/src/jsobj.c => js/src/jsobj.cpp
2007-08-21 14:08:45 -04:00
brendan@mozilla.org
a53341e7fc One-char fix to recent regression (392944, r=mrbkap). 2007-08-20 18:24:51 -07:00
mrbkap@gmail.com
ac93da416a Get the right class -- off of obj2, not obj and ensure that we propagate failure from outerObject. bug 375344, r=brendan a=sicking 2007-08-17 18:24:51 -07:00
jwalden@mit.edu
4ff6f987ed Bug 296653 - mkdepend takes more than 10 hours on Solaris for nsIconChannel.cpp. Patch by Ginn Chen <ginn.chen@sun.com>, r=cls, a=bz 2007-08-17 16:07:39 -07:00
mrbkap@gmail.com
86520181f1 Get the right property attributes and actually look up the prototype chain. bug 390948, r+sr+a=jst 2007-08-16 13:32:27 -07:00
edward.lee@engineering.uiuc.edu
6b941d6dd3 merging from cvs-trunk-mirror
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jslock.c => js/src/jslock.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
rename : js/src/jsxdrapi.c => js/src/jsxdrapi.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
2007-08-16 12:06:15 -07:00
igor@mir2.org
4773ca1cae Bug 391290: mutability flag for strings is stored inside strings. r=brendan 2007-08-15 23:23:06 -07:00
mrbkap@gmail.com
776963dff3 Allow 'this' to not be a wrapped object. bug 390560, r+sr+a=jst 2007-08-15 14:20:45 -07:00
mrbkap@gmail.com
1f8de346fe Make XPCSafeJSObjectWrapper usage in PAC actually work correctly for the common case. bug 391515, r=jst sr+a=brendan 2007-08-15 14:16:52 -07:00
mrbkap@gmail.com
193df57c3c Don't assume that all XOWs are equal. bug 391497, r+sr=jst 2007-08-15 14:13:49 -07:00
mrbkap@gmail.com
ca45b33a3e Don't wrap everything that comes out of a wrapped function, if that function is same-origin. bug 390946, r+sr+a=jst 2007-08-15 14:09:27 -07:00
igor@mir2.org
b9bdaf6628 Bug 392305: restoring pinning of the lazy atoms to fix various regressions. r=brendan 2007-08-15 11:57:44 -07:00
mrbkap@gmail.com
c3073ee423 Fix compile warning. No bug, r+a=brendan 2007-08-13 15:44:37 -07:00
mrbkap@gmail.com
4cac4a905d Date.UTC returns incorrect value if date is less than or equal to 0. bug 363578, patch from jag, r=mrbkap a=brendan 2007-08-13 13:45:32 -07:00
igor@mir2.org
f710f08e47 Bug 392074: JS_IS_VALID_TRACE_KIND no longer refers to the removed JSTRACE_ATOM. r=brendan 2007-08-13 13:23:34 -07:00
igor@mir2.org
ef454e18c0 Bug 392041: js_PutEscapedStringImpl gets JS_FRIEND to permit usage outside js lib. r=brendan 2007-08-13 12:35:07 -07:00
igor@mir2.org
202af28de4 Bug 391851: JS_ResolveStandardClass now does nothing on shutdown. r=brendan 2007-08-12 15:11:38 -07:00
brendan@mozilla.org
7193a26b68 Update #if 0'd code to work (helpful for debugging; r/a=self). 2007-08-11 22:10:02 -07:00
igor@mir2.org
14e3457a58 Bug 386265: using double kashing for atoms. r=brendan 2007-08-11 13:25:16 -07:00
igor@mir2.org
dec81ea13e Bug 391033: no frame manipulation when reporting errors. r=brendan 2007-08-10 23:12:00 -07:00
dbaron@dbaron.org
3d937ce26b Fix leak in DEBUG-only code. b=391769 r+sr+a=jst 2007-08-10 17:53:53 -07:00
edward.lee@engineering.uiuc.edu
7f586f7041 merging from cvs-trunk-mirror 2007-08-10 17:24:51 -07:00
jwalden@mit.edu
6857311bfd Bug 391145 - failed to build Spidermonkey: inresolved symbol ( prmjtime.c PRMJ_Now _SetCriticalSectionSpinCount _InitializeCriticalSectionAndSpinCount ). Patch by Rob Arnold <robarnold@mozilla.com>, r=brendan, r=bsmedberg 2007-08-10 16:23:38 -07:00
edward.lee@engineering.uiuc.edu
46e98d7750 merging from cvs-trunk-mirror
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jsbool.c => js/src/jsbool.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
2007-08-10 15:25:15 -07:00
dbaron@dbaron.org
8e42a71665 Finish the deflated string cache after uninterning atoms, so we don't leak their associated strings. b=391587 r+a=brendan 2007-08-10 14:30:13 -07:00
jwalden@mit.edu
e8ad7f0e3d Bug 391423 - Reposition JS_(BEGIN|END)_EXTERN_C to avoid nesting #includes. Patch by Edward Lee <edilee@mozilla.com>, r=jorendorff, r=bsmedberg 2007-08-10 14:27:08 -07:00
jst@mozilla.org
64193de21c Fixing bug 390275. Make setTimeout() always register the timeout on the right inner window, and add a new JS_GetGlobalForObject() JS API to eliminate some code duplication. r=mrbkap@gmail.com/brendan@mozilla.org, sr=bzbarsky@mit.edu 2007-08-09 15:19:59 -07:00
igor@mir2.org
1b67c3135b Bug 387286: patch from Rich Dougherty to name constitently JOF_* flags. r=me 2007-08-08 06:35:05 -07:00
mrbkap@gmail.com
191a54c63d Try harder to find a scope chain so that we can report exceptions when there is no code running currently. bug 390160, r=brendan sr=jst a=brendan 2007-08-07 19:24:52 -07:00
mrbkap@gmail.com
e255840140 Add a mochitest for __parent__ wrapping. 2007-08-07 19:18:05 -07:00
mrbkap@gmail.com
0292761798 Add a mochitest for bug 390001. r=sayrer sr=bzbarsky 2007-08-07 19:12:31 -07:00
mrbkap@gmail.com
b1458c56ab De-confuse GetWrappedNativeOfJSObject about wrappers around the outer object. bug 391055, r+sr=jst 2007-08-07 18:54:48 -07:00
mrbkap@gmail.com
0197403515 Allow UniversalXPConnect scripts to touch XPCNativeWrappers. bug 390788, r+sr=bzbarsky a=jst 2007-08-07 18:51:43 -07:00
mrbkap@gmail.com
10a72405d4 Make XPCSafeJSObjectWrapper easier to use by not throwing for primitive values passed to the constructor. Use it in more places in PAC. bug 388450, r=crowder sr=brendan a=bzbarsky 2007-08-07 18:49:49 -07:00
crowder@fiverocks.com
c0fe57eea8 Bug 121183 - error for {return;} isn't helpful, patch by Rich Dougherty <rich@rd.gen.nz>, r=brendan 2007-08-07 08:51:46 -07:00
igor@mir2.org
4d68066c7e Bug 387481, bug 389063: multithreading atom fixes and cleanups. r=brendan 2007-08-07 00:29:32 -07:00
sayrer@gmail.com
304d723cfe Bug 390958. XPCWrappedNativeScope leaks a WrappedNative2WrapperMap. r=brendan/mrbkap, sr=brendan, a=jst 2007-08-06 20:57:15 -07:00
bzbarsky@mit.edu
0ae3ce0662 Don't set aside the JS stack when pushing a JSContext which is already on top of the JSContext stack on top of itself. Bug 390488, r=jst, sr=brendan, a=jst 2007-08-06 19:05:24 -07:00
edward.lee@engineering.uiuc.edu
2258d276ab merging from cvs-trunk-mirror
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jsbool.c => js/src/jsbool.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jsmath.c => js/src/jsmath.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
2007-08-06 16:03:20 -07:00
edward.lee@engineering.uiuc.edu
fcf85197b3 rename js/src/*.c back to .cpp to restore hg's knowledge of the rename
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarena.c => js/src/jsarena.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jsbool.c => js/src/jsbool.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jscpucfg.c => js/src/jscpucfg.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsdhash.c => js/src/jsdhash.cpp
rename : js/src/jsdtoa.c => js/src/jsdtoa.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfile.c => js/src/jsfile.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jshash.c => js/src/jshash.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jskwgen.c => js/src/jskwgen.cpp
rename : js/src/jslock.c => js/src/jslock.cpp
rename : js/src/jslog2.c => js/src/jslog2.cpp
rename : js/src/jslong.c => js/src/jslong.cpp
rename : js/src/jsmath.c => js/src/jsmath.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsprf.c => js/src/jsprf.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
rename : js/src/jsutil.c => js/src/jsutil.cpp
rename : js/src/jsxdrapi.c => js/src/jsxdrapi.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
rename : js/src/prmjtime.c => js/src/prmjtime.cpp
2007-08-06 15:56:37 -07:00
edward.lee@engineering.uiuc.edu
be474fd791 temporarily rename js/src/*.cpp to .c
--HG--
rename : js/src/js.cpp => js/src/js.c
rename : js/src/jsapi.cpp => js/src/jsapi.c
rename : js/src/jsarena.cpp => js/src/jsarena.c
rename : js/src/jsarray.cpp => js/src/jsarray.c
rename : js/src/jsatom.cpp => js/src/jsatom.c
rename : js/src/jsbool.cpp => js/src/jsbool.c
rename : js/src/jscntxt.cpp => js/src/jscntxt.c
rename : js/src/jscpucfg.cpp => js/src/jscpucfg.c
rename : js/src/jsdate.cpp => js/src/jsdate.c
rename : js/src/jsdbgapi.cpp => js/src/jsdbgapi.c
rename : js/src/jsdhash.cpp => js/src/jsdhash.c
rename : js/src/jsdtoa.cpp => js/src/jsdtoa.c
rename : js/src/jsemit.cpp => js/src/jsemit.c
rename : js/src/jsexn.cpp => js/src/jsexn.c
rename : js/src/jsfile.cpp => js/src/jsfile.c
rename : js/src/jsfun.cpp => js/src/jsfun.c
rename : js/src/jsgc.cpp => js/src/jsgc.c
rename : js/src/jshash.cpp => js/src/jshash.c
rename : js/src/jsinterp.cpp => js/src/jsinterp.c
rename : js/src/jsiter.cpp => js/src/jsiter.c
rename : js/src/jskwgen.cpp => js/src/jskwgen.c
rename : js/src/jslock.cpp => js/src/jslock.c
rename : js/src/jslog2.cpp => js/src/jslog2.c
rename : js/src/jslong.cpp => js/src/jslong.c
rename : js/src/jsmath.cpp => js/src/jsmath.c
rename : js/src/jsnum.cpp => js/src/jsnum.c
rename : js/src/jsobj.cpp => js/src/jsobj.c
rename : js/src/jsopcode.cpp => js/src/jsopcode.c
rename : js/src/jsparse.cpp => js/src/jsparse.c
rename : js/src/jsprf.cpp => js/src/jsprf.c
rename : js/src/jsregexp.cpp => js/src/jsregexp.c
rename : js/src/jsscan.cpp => js/src/jsscan.c
rename : js/src/jsscope.cpp => js/src/jsscope.c
rename : js/src/jsscript.cpp => js/src/jsscript.c
rename : js/src/jsstr.cpp => js/src/jsstr.c
rename : js/src/jsutil.cpp => js/src/jsutil.c
rename : js/src/jsxdrapi.cpp => js/src/jsxdrapi.c
rename : js/src/jsxml.cpp => js/src/jsxml.c
rename : js/src/prmjtime.cpp => js/src/prmjtime.c
2007-08-06 15:54:14 -07:00
benjamin@smedbergs.us
0e047142a4 Bug 386025 - Expose cycle-collection symbols, r=graydon 2007-08-06 07:34:02 -07:00
igor@mir2.org
471ac4ae2c Bug 390918: fixing gen_trace assert. r=brendan 2007-08-04 21:54:34 -07:00
igor@mir2.org
db07fa7de8 Bug 106495: js_strtod and js_strtointeger no longer require \0-terminated js chars. r=brendan 2007-08-04 12:05:16 -07:00
igor@mir2.org
7eb2034218 Bug 390348: pinning of JSAtomState.emptyAtom is restored. r=brendan 2007-08-04 11:59:21 -07:00
brendan@mozilla.org
30ec8e2596 Cope with stillborn funobj tracing via newborn root (390743, r=igor). 2007-08-04 00:31:19 -07:00
dbaron@dbaron.org
b8ec995348 Fix leak of JSScript when a JSFunction is collected in a later GC than its function object. This changes GCX_PRIVATE to GCX_FUNCTION, and is essentially the same as the finalization part of the changes from bug 375808 (by igor). b=389757 r=igor a1.9=brendan 2007-08-04 00:00:43 -07:00
igor@mir2.org
ec402ee7a9 Bug 390078: Avoiding unnecessary GC-tracing of JSStackFrame members. r=brendan 2007-08-03 12:56:35 -07:00
martijn.martijn@gmail.com
8ff4e4f1a5 Bug 390042 - mingw build error - error: no matching function for call to nsAutoString::nsAutoString(jschar*), r=mrbkap, sr=jst, a=jst 2007-08-03 03:15:36 -07:00
dbaron@dbaron.org
8f2ee90bcb Fix leak of xptiInterfaceInfo in DebugDump. b=389765 r+sr=jst a=DEBUG-only 2007-08-02 17:08:28 -07:00
mrbkap@gmail.com
9e31657307 Remove an unused variable. no bug, r=sparky sr=lumpy 2007-08-02 16:42:33 -07:00
mrbkap@gmail.com
cc9667a9a4 Detect cyclic __proto__ values ourselves because the JS engine gets confused by the wrappers. bug 390626, r=brendan sr=jst 2007-08-02 16:38:11 -07:00
brendan@mozilla.org
37164c6b8c Remove deadlock hazard when reparenting, single-threaded DOM so don't worry (390551, r+sr=jst). 2007-08-02 13:56:02 -07:00
brendan@mozilla.org
a5b934bb87 Restore lost ECMA compatibility for length delegating/shadowing (390598, r=igor). 2007-08-02 13:36:53 -07:00
brendan@mozilla.org
920458529b Fix array_pop default return value (390684, r=igor). 2007-08-02 11:40:47 -07:00
igor@mir2.org
fd20317182 Bug 387481: baking out again accidental re-commit of the patch. 2007-08-02 04:34:41 -07:00
igor@mir2.org
9074c93ce0 Bug 390348: Baking out the last commit as the tree is closed. 2007-08-02 04:32:40 -07:00
igor@mir2.org
4498e5d0f7 Bug 106495: baking out the last commit as the tree is closed. 2007-08-02 04:27:04 -07:00
igor@mir2.org
acf45b989a Bug 106495: js_strtod and js_strtointeger no longer require \0-terminated js chars. r=brendan 2007-08-02 02:34:31 -07:00
igor@mir2.org
072eb51edf Bug 390348: pinning of JSAtomState.emptyAtom is restored. r=brendan 2007-08-02 02:28:25 -07:00
igor@mir2.org
d7c8d33f9f Bug 385393: Changing the return value of js_BoyerMooreHorspool to be jsint to fix mingw compilation. 2007-08-02 02:14:06 -07:00
brendan@mozilla.org
a12dfaf037 Fix bogus assertion in last patch (for 385393). 2007-08-02 01:21:55 -07:00
brendan@mozilla.org
40101f57b0 Fixing uninitialized v bug in InitExnPrivate (385393 followup, r=waldo). 2007-08-01 23:32:41 -07:00
brendan@mozilla.org
f9ab1bb197 No good, un-reverting. 2007-08-01 23:05:44 -07:00
brendan@mozilla.org
a5bb4b6493 Attempt to fix orange. 2007-08-01 22:46:19 -07:00
brendan@mozilla.org
ba3ad2ce7a Fast (frame-less) native call optimizations (385393, r=igor). 2007-08-01 21:33:52 -07:00
mrbkap@gmail.com
f429921c80 Make enumeration over XOWs work. bug 390001, r=jst/brendan sr=jst 2007-08-01 15:25:47 -07:00
mrbkap@gmail.com
7713385300 Let "window.eval" work again by always wrapping eval when it comes out of a cross origin wrapper. bug 389878, r+sr=jst 2007-07-31 13:15:21 -07:00
mrbkap@gmail.com
4b4cd4b8f1 Protect vp from garbage collection, since GC could nest under several of the calls here. bug 390222, r+sr=jst 2007-07-31 12:17:31 -07:00
mrbkap@gmail.com
d20c9c9b30 Don't call FindInJSObjectScope on an object that's being finalized because its parent might have been finalized already. bug 389985, r+sr=jst 2007-07-30 15:39:53 -07:00
mrbkap@gmail.com
053410f558 Deal with XPCCallContexts that aren't able to initialize themselves. This also fixes bugs related to finalizing objects on dead contexts. bug 390083, r+sr=jst 2007-07-30 14:50:10 -07:00
igor@mir2.org
1499d581c1 Bug 389880: removal of redundant gcflags argument from string-allocation functions. r=brendan 2007-07-28 09:57:30 -07:00
mrbkap@gmail.com
2ccd5c8afc Implement cross-origin wrappers to gate accesses between sites that are cross origin. This will prevent sites from monkeying with each other by doing bad things to allAccess properties, and pave the way for more security work. bug 367911, r=jst rs=brendan 2007-07-26 12:18:06 -07:00
benjamin@smedbergs.us
2694ad77f8 Fix MSVC7 build bustage from bug 389401, a=gavin for checkin to closed tree 2007-07-26 07:09:46 -07:00
brendan@mozilla.org
18e7692117 Backing out, see bug 389122 and orange or red tinderboxes. 2007-07-21 16:21:20 -07:00
brendan@mozilla.org
5f038f69ae Fast natives and related optimizations (385393, r=igor). 2007-07-21 14:39:42 -07:00
mrbkap@gmail.com
32e5403680 Don't double-wrap objects when getting them out of an XPCVariant. bug 384632, r=peterv sr=jst 2007-07-20 18:03:55 -07:00
jst@mozilla.com
c00957a8fc merging from cvs-trunk-mirror 2007-07-20 14:18:36 -07:00
dbaron@dbaron.org
e2de611d66 Add more useful assertion for debugging cycle collector faults. b=386912 r+sr=peterv 2007-07-18 21:58:39 -07:00
edward.lee@engineering.uiuc.edu
3f0a31e32c merging from actionmonkey 2007/07/16 (Bug 387935, Always build JS as C++)
--HG--
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/prmjtime.c => js/src/prmjtime.cpp
2007-07-18 14:21:30 -07:00
dmose@mozilla.org
b67b115f9b Fix comment to say 'createInstance' when it really means that, since this is pointed to by devmo as API documentation; no bug; rs=shaver 2007-07-18 13:19:05 -07:00
bclary@bclary.com
f4c691ea89 add winmm.lib to JavaScript Shell build configuration on Windows, bug 363258, not part of the build. r=mrbkap 2007-07-18 12:55:15 -07:00
jwalden@mit.edu
aed9b5ce09 Bug 388276 - Build failed on solaris x86 due to checkin for 372428. Patch by Leon Sha <leon.sha@sun.com>, r=cls 2007-07-17 14:23:24 -07:00
mrbkap@gmail.com
243fcf04c8 Move where we convert things into strings into a more centralized place. bug 372075, r=bzbarsky sr=jst 2007-07-17 13:12:21 -07:00
igor@mir2.org
7521eca107 Bug 387871: proper state checks when closing the generator. r=brendan 2007-07-16 23:41:20 -07:00
igor@mir2.org
c1697578e3 Bug 380469: Followup to remove to no longer used JSGenerator.next. r=brendan 2007-07-16 23:38:27 -07:00
mrbkap@gmail.com
5c7beffa5d Fixing build bustage. 2007-07-16 14:44:00 -07:00
mrbkap@gmail.com
fdc7ef43dc Bad millisecond resolution for (new Date).getTime() / Date.now() on Windows. bug 363258, patch from Rob Arnold <robarnold@mozilla.com>, r=brendan 2007-07-16 14:29:57 -07:00
igor@mir2.org
2c3d4c6796 Bug 380469: Taking away too zealous code simplification. 2007-07-16 13:57:16 -07:00
edward.lee@engineering.uiuc.edu
03eba17305 Bug 387935, Always build JS as C++, r=benjamin
--HG--
rename : js/src/js.c => js/src/js.cpp
rename : js/src/jsapi.c => js/src/jsapi.cpp
rename : js/src/jsarena.c => js/src/jsarena.cpp
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsatom.c => js/src/jsatom.cpp
rename : js/src/jsbool.c => js/src/jsbool.cpp
rename : js/src/jscntxt.c => js/src/jscntxt.cpp
rename : js/src/jscpucfg.c => js/src/jscpucfg.cpp
rename : js/src/jsdate.c => js/src/jsdate.cpp
rename : js/src/jsdbgapi.c => js/src/jsdbgapi.cpp
rename : js/src/jsdhash.c => js/src/jsdhash.cpp
rename : js/src/jsdtoa.c => js/src/jsdtoa.cpp
rename : js/src/jsemit.c => js/src/jsemit.cpp
rename : js/src/jsexn.c => js/src/jsexn.cpp
rename : js/src/jsfile.c => js/src/jsfile.cpp
rename : js/src/jsfun.c => js/src/jsfun.cpp
rename : js/src/jsgc.c => js/src/jsgc.cpp
rename : js/src/jshash.c => js/src/jshash.cpp
rename : js/src/jsinterp.c => js/src/jsinterp.cpp
rename : js/src/jsiter.c => js/src/jsiter.cpp
rename : js/src/jskwgen.c => js/src/jskwgen.cpp
rename : js/src/jslock.c => js/src/jslock.cpp
rename : js/src/jslog2.c => js/src/jslog2.cpp
rename : js/src/jslong.c => js/src/jslong.cpp
rename : js/src/jsmath.c => js/src/jsmath.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
rename : js/src/jsobj.c => js/src/jsobj.cpp
rename : js/src/jsopcode.c => js/src/jsopcode.cpp
rename : js/src/jsparse.c => js/src/jsparse.cpp
rename : js/src/jsprf.c => js/src/jsprf.cpp
rename : js/src/jsregexp.c => js/src/jsregexp.cpp
rename : js/src/jsscan.c => js/src/jsscan.cpp
rename : js/src/jsscope.c => js/src/jsscope.cpp
rename : js/src/jsscript.c => js/src/jsscript.cpp
rename : js/src/jsstr.c => js/src/jsstr.cpp
rename : js/src/jsutil.c => js/src/jsutil.cpp
rename : js/src/jsxdrapi.c => js/src/jsxdrapi.cpp
rename : js/src/jsxml.c => js/src/jsxml.cpp
rename : js/src/prmjtime.c => js/src/prmjtime.cpp
2007-07-16 11:40:49 -07:00
dolske@mozilla.com
6bf090c4dc Bug 388190: XPCOMUtils spews uuids when registering components. r=sayrer, sr=benjamin 2007-07-16 10:57:49 -07:00
alex@croczilla.com
1f0c5d93d4 Bug 381693 - Allow null targetObj arg to xpcIJSModuleLoader::import().
r=sayrer, src=brendan.
2007-07-15 11:21:11 -07:00
asqueella@gmail.com
25882be3be synchronize documentation, Sylvain Pasche <sylvain.pasche@gmail.com>
r=sayrer, bug 380970
2007-07-14 14:43:35 -07:00
igor@mir2.org
35f6f4434c Bug 380469: Followup for the previous check in to remove more no longer used close-on-GC code. r=brendan 2007-07-14 01:28:57 -07:00
igor@mir2.org
7f9b5d19e5 Bug 387909: make sure that [generator] is the first bytecode. r=brendan 2007-07-13 14:23:39 -07:00
igor@mir2.org
79f3a28c2d Bug 380469: Calling close on unreachable generators from GC is no longer supported. r=brendan 2007-07-13 00:28:47 -07:00
crowder@fiverocks.com
b41a2f79a8 Bug 357016: follow-up to fix another void* nit, patch by Edward Lee edilee@mozilla.com, r=crowder 2007-07-12 17:04:23 -07:00
jwalden@mit.edu
af5688aa77 Back out bug 386635; it broke restoring sessions in the browser. 2007-07-12 12:11:45 -07:00
igor@mir2.org
a3be4211d4 Bug 357016: Patch from Edward Lee to restore ability to compile SpiderMonkey with C++ compiler. It was broken after my changes. r=myself 2007-07-12 00:48:50 -07:00
jwalden@mit.edu
8f1a184c3f Back out bug 387390; it causes the marquee binding to throw security exceptions. 2007-07-11 20:14:27 -07:00
mrbkap@gmail.com
ab6b85e4fa Don't trust the filename of cloned functions. bug 387390, r=jst sr=brendan 2007-07-11 18:27:03 -07:00
mrbkap@gmail.com
fcde0538ee Always return XPCSafeJSObjectWrappers from Components.utils.Sandbox and evalInSandbox. This makes this interface much, much easier to use safely, as the wrapper takes care of several common problems that occur when touching regular JS objects directly. bug 386635, r=jst sr=brendan 2007-07-11 15:52:28 -07:00
mrbkap@gmail.com
f90fd387a3 Clear dormantNext when we're done using it. bug 387725, r=igor 2007-07-11 14:57:05 -07:00
igor@mir2.org
a4c622bced Bug 386885: JSAtom.number is removed in favour of using atoms itself for hashing. r=brendan 2007-07-11 02:25:45 -07:00
neil@parkwaycc.co.uk
11ed13d71f Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
bzbarsky@mit.edu
a91172fdd2 Clean up the XDR properly even if JS_XDRScript fails. In particular, don't
double-free things.  Bug 387572, r+sr=brendan
2007-07-10 20:10:43 -07:00
bzbarsky@mit.edu
8a55f7964d Relanding bug 326777, r=bsmedberg, sr=jst 2007-07-10 17:57:17 -07:00
mrbkap@gmail.com
bb96ca4a6a Create exceptions with the right parent. bug 387390, r=jst sr=brendan 2007-07-10 17:37:03 -07:00
mrbkap@gmail.com
fb2469a627 Ensure that we have a valid scope chain at all times so C++ callers can create objects in the right scope. bug 387591, r=brendan 2007-07-10 17:29:25 -07:00
mrbkap@gmail.com
c71d4d7cd9 Avoid asserting for user-controlled thing (through __proto__ setting). bug 387182, r+sr=jst 2007-07-10 17:27:57 -07:00
brendan@mozilla.org
85a81f822c to{Source,{,Locale}String} are not generic (387501, r=mrbkap). 2007-07-09 22:07:20 -07:00
bzbarsky@mit.edu
b684e745b0 Backing out to fix red 2007-07-09 21:07:45 -07:00
bzbarsky@mit.edu
e57cc08535 Make sure that we push a null JSContext on the current thread's XPConnect stack
before processing events.  Bug 326777, r=bsmedberg, sr=jst
2007-07-09 20:48:06 -07:00
mrbkap@gmail.com
623c0f85b7 Attempt to fix leaks. 2007-07-09 17:24:16 -07:00
mrbkap@gmail.com
9142f922fa Back out this change to hopefully fix the rest of the regressions test failures (from bug 386695). 2007-07-09 16:34:58 -07:00
mrbkap@gmail.com
9f3554437c Associate XPCWrappedNativeScopes with XPCContexts, like the DOM does with windows and contexts, so that we can push a context that's allowed to actually call XPCWrappedJS functions. bug 352791, r=jst sr=brendan 2007-07-09 14:51:57 -07:00
mrbkap@gmail.com
980c3bec0a Don't create exceptions using the global object as the parent, since that's bogus, use the scope chain instead. bug 386695, r+sr=jst 2007-07-09 14:46:18 -07:00
igor@mir2.org
ab560f0cb7 Bug 385729: objects and regexps are stored in separated tables in JSScript. r=brendan,mrbkap 2007-07-08 02:03:34 -07:00
jwalden@mit.edu
e3c4baccae Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
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