Commit Graph

333 Commits

Author SHA1 Message Date
Yaron Tausky
985a6b0665 Bug 676739 - Part 1: Suppress unnecessary temporary strings in js::ToAtom. r=luke 2013-08-27 11:17:41 +02:00
Nicholas Nethercote
95dfa9b36e Bug 912411 (part 3) - Remove lots of jsapi.h includes in SpiderMonkey. r=luke. 2013-09-05 16:08:57 -07:00
Jon Coppeard
4de9e2390b Bug 726687 - GC: rewrite key marking in terms of HashMap::rekey r=terrence 2013-02-15 10:42:39 +00:00
Andy Wingo
c9c35ef7bb Bug 666399 - New Harmony syntax for generators. r=Waldo
Add a GeneratorKind enumeration, and use it in the parser and runtime to
indicate whether a function is a non-generator, a legacy generator, or a
star generator.

Always parse "yield" as TOK_YIELD, regardless of the version.  Add
TokenStream::currentName() to retrieve the current token's name, which
works for TOK_NAME or TOK_YIELD.  The parser should check the validity
of "yield" as a name, if needed, using checkYieldNameValidity().

Parse "function*" as the StarGenerator GeneratorKind, and allow star
generators to be lazily parsed.

Separate parsing of return statements from yield expressions.
2013-08-20 11:03:24 +02:00
Brian Hackett
6abfee1eec Bug 897655 - Use off thread parsing when loading scripts from XUL documents, r=billm,bz,luke. 2013-08-15 14:14:43 -07:00
Bill McCloskey
a51fcbb697 Bug 904282 - Don't mark atoms during last GC (r=jonco) 2013-08-14 14:48:40 -07:00
Ryan VanderMeulen
fa096f6bc9 Backed out changeset bfa3c469cb74 (bug 666399) for bustage on a CLOSED TREE. 2013-08-14 16:50:21 -04:00
Andy Wingo
9203ce8072 Bug 666399 - New Harmony syntax for generators. r=Waldo
Add a GeneratorKind enumeration, and use it in the parser and runtime to
indicate whether a function is a non-generator, a legacy generator, or a
star generator.

Always parse "yield" as TOK_YIELD, regardless of the version.  Add
TokenStream::currentName() to retrieve the current token's name, which
works for TOK_NAME or TOK_YIELD.  The parser should check the validity
of "yield" as a name, if needed, using checkYieldNameValidity().

Parse "function*" as the StarGenerator GeneratorKind, and allow star
generators to be lazily parsed.

Separate parsing of return statements from yield expressions.
2013-08-14 16:04:36 +02:00
Brian Hackett
48d45c5a34 Bug 902095 - Allow accessing the compartment/zone for ExclusiveContext, r=billm. 2013-08-13 09:13:46 -06:00
Daniel Holbert
d64efd5885 Backed out changeset fde265c467b2 (Bug 902095) for SM(r) bustage 2013-08-12 13:40:15 -07:00
Brian Hackett
93cfd642ed Bug 902095 - Allow accessing the compartment/zone for ExclusiveContext, r=billm. 2013-08-12 13:57:02 -06:00
Nicholas Nethercote
e71c8c0864 Bug 902917 - Remove some unnecessary #includes in SpiderMonkey. r=till. 2013-08-08 16:07:22 -07:00
Nicholas Nethercote
f7d6f07d24 Bug 898914 (part 1) - Remove JSBool. 2013-08-08 15:53:04 -07:00
Emanuel Hoogeveen
10028e6993 Bug 888088 (part 6) - Fix #include ordering in some of js/src/*.{h,cpp}. r=nnethercote. 2013-07-23 17:34:18 -07:00
Brian Hackett
6a8317ffa6 Bug 875125 - Allow scripts to be parsed/emitted off the main thread, r=billm. 2013-07-19 08:06:02 -06:00
Terrence Cole
7320689f47 Bug 895220 - Do not OOM in AtomizeAndCopyChars if using NoGC; r=bhackett 2013-07-18 13:55:39 -07:00
Bobby Holley
2589b3bc0d Bug 887334 - Use the new AutoCompartment overload for the atoms compartment and remove AutoEnterAtomsCompartment. r=bhackett
We have to do some temporary hackiness to deal with some of the new PJS work.
This patch stays as true to the old world as possible, so that we can more
easily backport it.
2013-07-17 11:53:52 -07:00
Brian Hackett
69eee2d4f4 Bug 892187 - Fix spurious uses of ExclusiveContext->asJSContext(), r=billm. 2013-07-15 08:12:40 -06:00
Nicholas Nethercote
399495fc48 Bug 888768 (part 3) - Remove unnecessary *-inl.h #includes, as found by include-what-you-use. r=till. 2013-07-11 18:31:01 -07:00
Brian Hackett
d5a61ab0f3 Bug 885758 - Add ExclusiveContext for use by threads with exclusive access to their compartment, r=billm. 2013-07-10 09:29:52 -06:00
Andy Wingo
f0684ef598 Bug 648949 - Remove HAS_JS_GENERATORS #define. r=Waldo, r=jorendorff 2013-06-26 12:34:47 +02:00
Emanuel Hoogeveen
eac5c02514 Bug 886128 - Fix various clang warnings and some potential bugs in nonstandard configurations. r=nnethercote,terrence. 2013-06-24 21:32:05 -07:00
Till Schneidereit
1f3d13b5e2 Bug 885300 - don't inline js::ToAtom. r=nnethercote 2013-06-21 02:59:39 +02:00
Nicholas Nethercote
b9d4dcdabe Bug 634839 (part 2b) - Remove more unnecessary headers (as found by include-what-you-use) from SpiderMonkey. r=jorendorff. 2013-06-12 22:20:27 -07:00
Dan Gohman
467ef8bb73 Bug 883574 - Add const qualifiers to variables and pointers in the JS tree. r=evilpies 2013-06-17 18:31:47 -07:00
Nicholas Nethercote
3a394a85e7 Bug 880565 (part 1) - Move isFunction() et al from jsobjinlines.h to jsobj.h and minimize the number of files that #include jsobjinlines.h. r=benjamin. 2013-06-05 19:07:43 -07:00
Brian Hackett
c0af46133d Bug 881333 - Use accessor methods for cx->compartment and cx->runtime, r=luke. 2013-06-10 15:22:18 -06:00
Ms2ger
08c2f238af Bug 868725 - Pass non-const jschar* to AtomizeAndTakeOwnership; r=evilpie 2013-05-05 09:03:18 +02:00
Terrence Cole
5c1922023f Bug 867426 - Remove RawFlatString typedef; r=jonco 2013-04-30 15:39:03 -07:00
Terrence Cole
0c836a4249 Bug 867426 - Remove RawAtom typedef; r=jonco 2013-04-30 15:38:45 -07:00
Jon Coppeard
a8ad284a74 Bug 866789 - GC: Fix some more shell rooting hazards r=terrence 2013-04-30 11:18:18 +01:00
Nicholas Nethercote
5da6cef3c7 Bug 634839 (part 1) - Remove unnecessary headers (as found by include-what-you-use) from js/src/jsfoo.cpp files. r=luke. 2013-04-23 23:44:36 -07:00
Sean Stangl
4c46a9aa7c Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
Phil Ringnalda
4f94bac4a1 Back out a5a1dd3bd8ae (bug 860029) for stupidorange 2013-04-15 12:55:38 -07:00
Sean Stangl
9596836ecf Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-15 11:33:03 -07:00
Phil Ringnalda
978110175c Back out 5bf9771e1a28 (bug 860029) for bustage
CLOSED TREE
2013-04-11 19:55:37 -07:00
Sean Stangl
999eb7bab9 Bug 860029 - Standardize Modelines in the JS Module. DONTBUILD. r=njn 2013-04-11 18:48:59 -07:00
Tom Schuster
f81bb738f3 Bug 836949 - Remove InternNonIntElementId/FetchElementId. r=jwalden 2013-04-09 13:33:32 +02:00
Jon Coppeard
fcd77744ae Bug 848449 - GC: Remove AutoAssertNoGC and AssertCanGC - Remove use of AssertCanGC r=terrence 2013-03-06 18:10:30 +00:00
Ed Morley
7e0e269b96 Backed out changeset d01a2a30d626 (bug 848449) 2013-03-07 13:03:27 +00:00
Jon Coppeard
9d6cd68b98 Bug 848449 - GC: Remove AutoAssertNoGC and AssertCanGC - Remove use of AssertCanGC r=terrence 2013-03-06 18:10:30 +00:00
Jon Coppeard
498bd73a38 Bug 847934 - GC: Remove Unrooted - Remove use of DropUnrooted and rename UnrootedThings to RawThings r=terrence 2013-03-05 18:32:12 +00:00
Landry Breuil
efbd071276 Bug 840611: Fix build on BE archs (ie ppc) after bug 834242. r=terrence 2013-02-12 22:29:29 +01:00
Terrence Cole
6a05895ad9 Bug 837845 - Manually backout the largest memory users from bug 798624; r=Waldo 2013-02-05 14:22:27 -08:00
Nicholas Nethercote
430f3e6106 Bug 839376 (part 3) - Some low-hanging exact rooting fruit. sfink. 2013-02-11 14:04:25 -08:00
Nicholas Nethercote
03e9f7ae1b Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
Ding dong!  The witch is dead!
2013-01-24 21:24:57 -08:00
Phil Ringnalda
6c1eebfede Back out 66882ea6f8c7 (bug 788293) and 32f09cb3c7b6 (bug 834090) for bustage
CLOSED TREE
2013-01-31 22:29:30 -08:00
Nicholas Nethercote
2d2d004475 Bug 788293 - Remove e4x support. r=jorendorff,terrence,evilpie.
Ding dong!  The witch is dead!
2013-01-24 21:24:57 -08:00
Brian Hackett
6ffc2c1ff8 Bug 834826 - Eliminate or refactor various unnecessary stack roots, r=terrence. 2013-01-26 07:42:20 -07:00
Brian Hackett
73cd1677ca Bug 834242 - Reduce cost of exact stack rooting during property reads, r=terrence. 2013-01-24 20:18:34 -07:00