Brendan Eich
6b98f3bcda
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
601e1f1204
Use class statics for the unit and int string tables (513530 followup, r=gwagner).
2009-09-04 18:04:14 -07:00
Luke Wagner
681f11cdc8
Build fix for bug 513530, trailing enum comma.
2009-09-04 16:52:20 -07:00
Gregor Wagner
623555909f
Cache result of Number2String (bug 513530, r=brendan).
2009-09-04 16:28:30 -07:00
Luke Wagner
ccb789b744
Bug 460904 - refactor jsstr regexp ops (r=waldo)
2009-08-12 13:01:34 -07:00
Andreas Gal
27eb5deb03
JS_ISSPACE has wrong space character check (513701, r=brendan).
2009-09-01 15:45:11 -07:00
Andreas Gal
ae18859c65
Future proofing nit for bug 513379.
2009-08-29 14:19:44 -07:00
Andreas Gal
eecea06b7d
Inline js_DoubleToInteger (513436, r=sayrer).
2009-08-29 02:36:45 -07:00
Andreas Gal
a229d5fecd
Fast path for is/is not space character classification (513379, r=sayrer).
2009-08-29 02:17:10 -07:00
Andreas Gal
3f3f29532d
Inline GetUnitString fast path (513373, r=sayrer).
2009-08-28 16:30:41 -07:00
Luke Wagner
c39582637e
Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo)
...
--HG--
extra : rebase_source : ac955b5d784ca8fc9a61129e580c2751beb4109f
2009-08-14 16:10:59 -07:00
Makoto Kato
97b1bbc7d1
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
e94edc5f03
Bug 503952 - JSStringBuffer/JSCharBuffer with JSTempVector, part 1. r=jwalden
2009-08-07 20:09:11 -07:00
Luke Wagner
08412ce5c6
Bug 406271: add quantifier support for regexp->native compiler, r=dmandelin
2009-07-16 17:17:35 -07:00
Brendan Eich
bf844a5e81
Bug 501230 - TM: fast path for String.toString (r=gal).
2009-07-15 17:36:24 -07:00
Andreas Gal
99058f910f
Make sure js_FinalizeStringRT can be inlined into js_GC() (503462, r=dmandelin).
2009-07-12 07:41:20 -07:00
Luke Wagner
0dbb7fe5e9
Bug 200505 - Optimization of jsref array_join_sub() function. r=waldo
2009-06-30 20:19:42 -04:00
Robert Sayre
ac161b29f7
Backed out changeset b2256abf53c0
2009-06-30 12:14:09 -07:00
Luke Wagner
f4262ecf76
Bug 200505 - Optimization of jsref array_join_sub() function. r=waldo
2009-06-30 11:29:43 -07:00
Jason Orendorff
d748abbc44
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
David Mandelin
60c7bc2aa1
Bug 488808: crash due to JSString INIT macros stomping deflated flag, r=brendan
2009-04-17 19:30:26 -07:00
David Mandelin
af6c28a130
Bug 487546: Fix shell bustage, r=brendan
2009-04-16 17:23:43 -07:00
David Mandelin
5399360a47
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
d023f971a7
Bug 487546: call expensive JSString finalizers only if needed, r=brendan
2009-04-16 15:00:13 -07:00
Andreas Gal
56b7c68ad9
Support String(v) -- String constructor called as a converter (482349, r=jwalden).
2009-03-09 17:29:42 -07:00
Jason Orendorff
bf7ab9db3d
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
c6bca4ae17
Bug 458735 - Improve internal API for traceable natives (r=brendan, nanojit r=edwsmith)
2008-10-08 17:08:33 -05:00
Brendan Eich
6f1482981c
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
e61669dcc4
Add builtins for toLowerCase, toUpperCase and replace(str,str) (452885, r=mrbkap).
2008-08-29 17:35:00 -07:00
Brendan Eich
d5629d06d7
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
b834a2352a
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
161f3ee0d3
- 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
b676b877d3
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
55c7485138
- 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
6c78fa07ea
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
07435a417d
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
37157bcb3e
Fix regression from 419152 to test for 58274 (r/a=shaver).
2008-02-26 09:01:52 -08:00
igor@mir2.org
8c529adb1c
Bug 412340: avois rehashing of alreday atomized strings. r,a=brendan
2008-01-23 05:17:47 -08:00
igor@mir2.org
c526c4b477
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
d10363409b
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
bb8f471f9d
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
a2751b7c96
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
dd6c781e12
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
e7ad677649
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
72fb173675
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
6c008fe1e0
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
01fa406f7a
Bug 333236: merge sweep and free phases in GC. r=brendan
2007-09-19 15:04:47 -07:00
brendan@mozilla.org
d46b521517
Fix dumb signed comparison bug (395828, r=mrbkap).
2007-09-14 11:00:38 -07:00
igor@mir2.org
b2c68c63b9
Bug 391290: mutability flag for strings is stored inside strings. r=brendan
2007-08-15 23:23:06 -07:00
igor@mir2.org
36e4858c52
Bug 392041: js_PutEscapedStringImpl gets JS_FRIEND to permit usage outside js lib. r=brendan
2007-08-13 12:35:07 -07:00