Paul Biggar
585912ae63
Bug 668936: Stringify String.prototype.replace's arguments in the right order (r=jwalden)
2011-08-05 19:28:31 -07:00
Tom Schuster
5d42be833c
Bug 652771 - Update Unicode character support for space categorization, also somewhat for uppercase and lowercase (although these will only be fully fixed in followup bugs). r=jwalden. Further (lumped together to address interdependencies): Bug 672760 - Don't pass the EOF non-character to any of the Unicode character-categorization functions. r=jwalden
...
--HG--
extra : rebase_source : f415de9c0c9e58e3a28d6cd7e474ab1370d2d244
2011-07-26 14:10:33 -07:00
Tom Schuster
ffe5a02597
Bug 635017 - /undefined/.match() should succeed. r=jorendorff.
2011-07-22 09:46:07 -05:00
Jeff Walden
55a0fe3577
Bug 520095 - Don't censor U+FFFE and U+FFFF, when decoded by decodeURI or decodeURIComponent, to U+FFFD: just return the character. r=masa141421356@gmail.com
...
--HG--
extra : rebase_source : 6f93df1bb7e1c6f5621595a277486ad14ac2dcf1
2011-07-15 14:15:55 -07:00
Jeff Walden
3269a728a3
Various minor formatting tweaks, de-indentation, &c. to Utf8ToOneUcs4Char. No change to actual logic in the code. r=sparky
...
--HG--
extra : rebase_source : f414988004996f16fd01b82263668a8befb727b2
2011-07-15 15:41:47 -07:00
Jeff Walden
d967e5e20f
Bug 671143 - Rename ValueToNumber to ToNumber, to be more like the spec nomenclature. r=cdleary
...
--HG--
extra : rebase_source : e85fbadd77adc048f5e443cd9ed96b0035954674
2011-06-13 21:49:59 -07:00
Jeff Walden
40bdc4ec2b
Bug 671091 - Add DefinePropertiesAndBrand to abstract out most explicit branding. NOT REVIEWED YET
...
--HG--
extra : rebase_source : 9a48fc83a876c95e90c807eb0b007d35211eb41c
2011-06-15 10:15:37 -07:00
Jeff Walden
fd3234af67
Bug 671082 - Add GlobalObject::createConstructor to abstract creation of constructors, after basic primordials are installed in the global. r=bhackett
...
--HG--
extra : rebase_source : 7d912d659f18bd4a24cb9e285dc71cbb0eac9858
2011-06-13 11:52:45 -07:00
Jeff Walden
0e6a014f34
Bug 670779 - Add LinkConstructorAndPrototype to encapsulate adding ctor.prototype and ctor.prototype.constructor. r=bhackett
...
--HG--
extra : rebase_source : 1216c2c096b866c94205c3f53fe0dd70225523c4
2011-06-15 10:15:37 -07:00
Steve Fink
0897291047
Bug 588537 - Inject probe points all over the JS tree (r=gal)
2010-09-20 12:43:53 -07:00
Jeff Walden
253ed289c7
Bug 670759 - Add GlobalObject::createBlankPrototype to abstract creation of prototype objects other than Object.prototype. r=bhackett
2011-06-13 11:52:45 -07:00
Masahiro Yamada
6a432fe065
Bug 660612 - Utf8ToOneUcs4Char passes invalid UTF-8 octets '%ED%A0%80', so decodeURIComponent('%ED%A0%80') doesn't throw. r=jwalden
2011-07-05 09:38:35 -07:00
Luke Wagner
c9e1bf13c0
Bug 667915 - Don't let content JS consume all the stack and cause chrome JS to OOM (r=waldo,mrbkap)
2011-06-30 09:26:56 -07:00
Paul Biggar
d8243d6d31
Bug 666448: Remove 2nd argument to escape() for ECMA/Test262 compliance (r=jwalden)
2011-07-05 16:51:12 -07:00
David Mandelin
04e76bd7d7
Bug 660371: report regexp syntax errors as compiler errors when appropriate, r=cdleary
2011-06-27 18:53:26 -07:00
Luke Wagner
0319982d42
Bug 665247 - Remove unused metering code (r=igor)
...
--HG--
extra : rebase_source : 78ec31e4236f63f8a91024f34b1b99a889dc47f5
2011-06-21 10:26:22 -07:00
Luke Wagner
de6d0e2330
Bug 665189 - hoist JSString and family into vm/String{.h, -inl.h, .cpp} (r=njn)
2011-06-20 11:44:20 -07:00
Ehsan Akhgari
940b078fd2
Bug 662961 - Silence the clang warnings issued because of alignment requirements increase when compiling jsstr.cpp; r=Waldo
...
--HG--
extra : rebase_source : 984f986f3de6c92cdb45cadeff40bc84b36406ca
2011-06-19 17:04:48 -04:00
Jeff Walden
9d216339ba
Bug 646129 - [[DefaultValue]] on Date objects is wrong when called with no hint. r=luke
2011-04-01 15:24:21 -07:00
Nicholas Nethercote
5b874aa38c
Bug 662963 - Add JSString::charsHeapSize(). r=luke.
2011-06-09 09:20:12 +10:00
Luke Wagner
0d7bf8cc22
Bug 656462, part 4 - Simplify stack code, keep track of native calls, create new iterator over native/scripted callstack, make JS_SaveFrameChain fallible (r=waldo,mrbkap)
...
--HG--
extra : rebase_source : 756a640568464d11fe6bb00104a2fdb6f6d02d02
2011-05-13 08:56:26 -07:00
Nicholas Nethercote
5e87a0c3ea
Bug 645598 - Trim last bits of fat from the scanner, part 1 of 3. r=jwalden.
2011-06-07 13:47:12 +10:00
Gregor Wagner
cbb17d528d
Bug 658041 - Stack based marking for JSRopes. r=igor
2011-05-27 15:17:47 -07:00
Chris Leary
8a58ce9072
Bug 657537: clean up jschar inflation/deflation. (r=Waldo)
2011-05-26 15:50:05 -07:00
Bill McCloskey
6a8823ab66
Bug 658055 - Always use getter to access fun->script() (r=dmandelin)
2011-05-20 11:27:27 -07:00
Jeff Walden
a13a0634f7
Bug 657585 - Guard against runaway recursion converting |this| to string in all the String.prototype.* methods. r=luke
...
--HG--
extra : rebase_source : 76642de53803bfdbc3b4d02e83f1d0e5713bd206
2011-05-18 10:57:52 -07:00
Chris Leary
a7253cc393
Bug 654301: Better interned string API, take 2. (r=Waldo)
2011-05-17 12:15:12 -07:00
Chris Leary
089bf2c468
Back out bug 654301 to run again on try.
2011-05-16 19:03:20 -07:00
Chris Leary
338cf025af
Bug 654301: Better interned string API. (r=Waldo)
2011-05-16 18:18:59 -07:00
Chris Leary
4d1fba5db8
Merge mozilla-central and tracemonkey.
2011-05-13 15:06:53 -07:00
Nicholas Nethercote
810ba8da79
Bug 648490 - Remove the "heap-used/js/string-data" memory reporter because it is totally bogus. r=gal.
2011-05-11 16:09:50 -07:00
Igor Bukanov
8b0d367736
bug 605029 - ArenaHeader versus Arena<FreeCell> and other cleanups. r=wmccloskey
2011-04-20 07:30:10 +02:00
Jeff Walden
76a4343e93
Bug 652215 - Add a js::StringObject subtype of JSObject. r=njn
...
--HG--
extra : rebase_source : 7cdfe72d0932b51408b9ec5dc38219605e1925ce
2011-04-20 16:33:05 -04:00
Jeff Walden
af6649155f
Bug 647385 - Implement a ToInteger helper that corresponds to the spec method (rather than inlining its contents everywhere it can be trivially used). Also fixes a couple bugs in one place that should have used ToInteger but didn't. r=cdleary
2011-04-02 11:33:20 -07:00
Jeff Walden
573931e488
Bug 650574 - No recursion checks converting a cyclic object to source, if the object's toSource hooks are built-in functions. r=luke
...
--HG--
extra : rebase_source : 1d94c30c3a7335b1124e19020b8244a1de32aab3
2011-04-26 16:05:58 -04:00
Luke Wagner
05d2002b66
Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack*
2011-04-13 09:27:37 -07:00
Chris Leary
71c7cfdc1f
Merge mozilla-central and tracemonkey.
2011-04-26 10:42:36 -07:00
Luke Wagner
6e9ef90124
Bug 651041 - add API to store private data to an external string (r=njn)
2011-04-20 18:34:49 -07:00
Bill McCloskey
3c0cd83aa3
Bug 616666 - Use explicit stack for GC marking (r=gal)
2011-04-15 16:56:08 -07:00
David Anderson
61cc68f032
Fix clang warnings (bug 647280, r=luke).
2011-04-14 13:45:06 -07:00
Luke Wagner
774c050740
Bug 602994 - Preparatory syntactic cleanup (r=waldo)
2011-04-08 10:52:48 -07:00
Andrew Paprocki
b22fdc0c5b
Bug 621031 - Fix jsstr.cpp #pragma pack for AIX. r=mrbkap
2011-04-20 01:25:07 +02:00
Igor Bukanov
f4c246e790
bug 627016 - remove JSProperty out param from DefineNativeProperty. r=jorendorff
...
--HG--
extra : rebase_source : 673c7471fc963cb59d11ab667bd9e8523297617a
2011-01-21 14:10:16 +01:00
Luke Wagner
5653484fe5
Bug 587257 - Optimize Array.prototype.join (original patch by Rob Sayre) (r=waldo)
...
--HG--
extra : rebase_source : 9ca67ab914bb604736f6758e7f382f57563baf8f
2011-03-29 15:46:51 -07:00
Jeff Walden
484a36371d
Bug 640503 - Convert new String().length to use a regular data property and not a shared-permanent property-op getter/setter. r=jorendorff
...
--HG--
extra : rebase_source : 06bb9b53c0498d20b3afc6e558096c2398559602
2011-03-13 20:38:34 -07:00
Jeff Walden
208cb6e474
Bug 645468 - Remove js_TryMethod: its semantics aren't what most of its users want, and its utility is limited. r=luke
2011-03-28 20:01:53 -07:00
Chris Leary
220936793d
Bug 627632: Avoid unnecessary realloc in StringBuffer::finishString(). (r=luke)
2011-04-01 16:33:41 -07:00
Luke Wagner
1913b99eb0
Bug 639883 - Use JSString (not JSShortString) for inline really short inline strings (r=njn)
...
--HG--
extra : rebase_source : 5d18f67f841864064e032836014978cf51b52f5c
2011-03-31 16:07:21 -07:00
Paul Biggar
43b850291d
Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
...
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Paul Biggar
72c7701093
Bug 634155: Account for NewCompartment's memory, and change allocation APIs (r=nnethercote)
...
This changes the allocation API, in the following way:
js_malloc -> {cx->,rt->,OffTheBooks::}malloc
js_calloc -> {cx->,rt->,OffTheBooks::}calloc
js_realloc -> {cx->,rt->,OffTheBooks::}realloc
js_free -> {cx->,rt->,Foreground::,UnwantedForeground::}free
js_new -> {cx->,rt->,OffTheBooks::}new_
js_new_array -> {cx->,rt->,OffTheBooks::}new_array
js_delete -> {cx->,rt->,Foreground::,UnwantedForeground::}delete_
This is to move as many allocations as possible through a JSContext (so that they may be aken into account by gcMallocBytes) and to move as many deallocations to the background as possible (except on error paths).
2011-03-31 01:13:49 -07:00