Commit Graph

63 Commits

Author SHA1 Message Date
Brendan Eich
e1ca08f794 Avoid wildman storage-punning hacks for non-unit static strings (515273, r=gal/gwagner). 2009-09-08 17:46:02 -07:00
Brendan Eich
098462c563 Check (without regressing hot paths) where needed to avoid treating static JSStrings like gc-things in the heap (514819, r=gal). 2009-09-05 21:48:30 -07:00
Brendan Eich
2b439c7885 Use class statics for the unit and int string tables (513530 followup, r=gwagner). 2009-09-04 18:04:14 -07:00
Luke Wagner
28a6837fd4 Build fix for bug 513530, trailing enum comma. 2009-09-04 16:52:20 -07:00
Gregor Wagner
2e1104b40f Cache result of Number2String (bug 513530, r=brendan). 2009-09-04 16:28:30 -07:00
Luke Wagner
17f41ec26d Bug 460904 - refactor jsstr regexp ops (r=waldo) 2009-08-12 13:01:34 -07:00
Andreas Gal
2b1f1a8bf9 JS_ISSPACE has wrong space character check (513701, r=brendan). 2009-09-01 15:45:11 -07:00
Andreas Gal
25efe9f46a Future proofing nit for bug 513379. 2009-08-29 14:19:44 -07:00
Andreas Gal
6424c04026 Inline js_DoubleToInteger (513436, r=sayrer). 2009-08-29 02:36:45 -07:00
Andreas Gal
3ffdadab9b Fast path for is/is not space character classification (513379, r=sayrer). 2009-08-29 02:17:10 -07:00
Andreas Gal
7d3f588878 Inline GetUnitString fast path (513373, r=sayrer). 2009-08-28 16:30:41 -07:00
Luke Wagner
1f36a4f0c2 Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo)
--HG--
extra : rebase_source : ac955b5d784ca8fc9a61129e580c2751beb4109f
2009-08-14 16:10:59 -07:00
Makoto Kato
7cd16a8284 Bug 501324 - Bug 497618 causes crashes while building with MSVC++ on Win x64. r=jwalden 2009-08-14 11:28:24 -07:00
Luke Wagner
7470eaa57b Bug 503952 - JSStringBuffer/JSCharBuffer with JSTempVector, part 1. r=jwalden 2009-08-07 20:09:11 -07:00
Luke Wagner
0c16520e8b Bug 406271: add quantifier support for regexp->native compiler, r=dmandelin 2009-07-16 17:17:35 -07:00
Brendan Eich
b1cf17d802 Bug 501230 - TM: fast path for String.toString (r=gal). 2009-07-15 17:36:24 -07:00
Andreas Gal
427ece476a Make sure js_FinalizeStringRT can be inlined into js_GC() (503462, r=dmandelin). 2009-07-12 07:41:20 -07:00
Luke Wagner
145fbf91c2 Bug 200505 - Optimization of jsref array_join_sub() function. r=waldo 2009-06-30 20:19:42 -04:00
Robert Sayre
3f97d5e6f5 Backed out changeset b2256abf53c0 2009-06-30 12:14:09 -07:00
Luke Wagner
a6311cf8b5 Bug 200505 - Optimization of jsref array_join_sub() function. r=waldo 2009-06-30 11:29:43 -07:00
Jason Orendorff
52fe5a97ba Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
David Mandelin
e57983f598 Bug 488808: crash due to JSString INIT macros stomping deflated flag, r=brendan 2009-04-17 19:30:26 -07:00
David Mandelin
803163441c Bug 487546: Fix shell bustage, r=brendan 2009-04-16 17:23:43 -07:00
David Mandelin
874ab2823f Bug 487546: avoid unnecessary js_PurgeDeflatedStringCache calls, additional patch to address igor's review issues, r=igor 2009-04-16 16:23:46 -07:00
David Mandelin
beb147a958 Bug 487546: call expensive JSString finalizers only if needed, r=brendan 2009-04-16 15:00:13 -07:00
Andreas Gal
0002d84879 Support String(v) -- String constructor called as a converter (482349, r=jwalden). 2009-03-09 17:29:42 -07:00
Jason Orendorff
413e752410 Bug 453564 - TM: Assertion failure: JSVAL_IS_NULL(vp[0]) || (!JSVAL_IS_PRIMITIVE(vp[0]) && OBJ_IS_ARRAY(cx, JSVAL_TO_OBJECT(vp[0]))). r=gal.
--HG--
extra : rebase_source : be08d1a4ca8a3765523b992a5d4e469e67ba8811
2008-12-09 11:43:32 -06:00
Jason Orendorff
a27d101dab Bug 458735 - Improve internal API for traceable natives (r=brendan, nanojit r=edwsmith) 2008-10-08 17:08:33 -05:00
Brendan Eich
48926ba363 Fix bool FASTCALL vs. Nanojit calling convention bug, also some non-bool whoppers caught in the process (453361, r=mrbkap). 2008-09-02 15:37:22 -07:00
Andreas Gal
113ad8babe Add builtins for toLowerCase, toUpperCase and replace(str,str) (452885, r=mrbkap). 2008-08-29 17:35:00 -07:00
Brendan Eich
fd148818e1 Add split built-in, also sort knownNatives for my own sanity (should sort builtins.tbl and jsbuiltins.cpp by function while at it, but too tired). 2008-08-21 04:13:07 -07:00
Blake Kaplan
5aa5360905 bug 450529 - pass pc to String.prototype.match so we can avoid unnecessary object creation when tracing. r=brendan 2008-08-15 09:29:03 -07:00
Brendan Eich
967ec56341 - Add String match and three replace overloadings, and allow known native matching to continue in search of exact match (not best, and not abort on first mismatch).
- Add CallGetter built-in and use it for regexp class-getter-implemented prototype properties.
- Add BUILTIN5 support (this should be "it" ;-).
2008-08-12 18:52:28 -07:00
Brendan Eich
a56862bdff Make js_ConcatStrings JS_FASTCALL and use directly as a built-in; remove gcflag param from it and from js_NewString. 2008-08-11 11:03:54 -07:00
Brendan Eich
2991c66416 - Avoid unnecessary FASTCALL builtin wrappers for existing js_* library-private or friend functions, which could be (and now are) fastcall (JS_FASTCALL). A couple of builtins avoid name collisions by using js_Fast instead of just js_ as their name prefix.
- Use GCF_DONT_BLOCK from fastcall builtins that call into the GC allocator (mostly; a few places need help still, or better: need to avoid allocation).
- Cope with C clients of jscntxt.h and its include files (these hacks should go away).
- Naming convention and function definition line-break style nit-picks.
2008-08-10 00:39:18 -07:00
shaver@mozilla.org
c274666457 Refactor js_GetUnitString to permit passing in a bare jschar, and use in js_str_fromCharCode. 2008-07-31 12:21:59 -07:00
brendan@mozilla.org
b5b5553389 Fix hang when GetPropertyTreeChild calls js_GenerateShape calls js_GC (424636, r=igor, a=beltzner). 2008-04-28 23:19:42 -07:00
brendan@mozilla.org
d04ec07f23 Fix regression from 419152 to test for 58274 (r/a=shaver). 2008-02-26 09:01:52 -08:00
igor@mir2.org
5732653d7d Bug 412340: avois rehashing of alreday atomized strings. r,a=brendan 2008-01-23 05:17:47 -08:00
igor@mir2.org
28f999de16 Bug 413104: access to JSString is hidden behind macros even for a flat string. 2008-01-19 13:15:08 -08:00
reed@reedloden.com
34fb42c02c Back out Igor's patch from bug 412340 due to consistent orange on fxdbug-win32-tb. 2008-01-19 00:06:45 -08:00
igor@mir2.org
d4e057f519 Bug 412340: JString stores a flag to indicate that it was atomized. r=brendan a=blocking1.9+ 2008-01-18 18:56:51 -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
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
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
1dd9e7fca8 Bug 333236: merge sweep and free phases in GC. r=brendan 2007-09-19 15:04:47 -07:00
brendan@mozilla.org
12403e7546 Fix dumb signed comparison bug (395828, r=mrbkap). 2007-09-14 11:00:38 -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