Tom Schuster
127a42b89f
Bug 1091900 - Make GetIterator and others take an object as outparam. r=efaust
2014-11-19 01:44:03 +01:00
Tom Schuster
fc0765b663
Bug 1091900 - Make some functions local. r=efaust
2014-11-19 01:44:02 +01:00
Tom Schuster
4bb81d61de
Bug 1091900 - Introduce a function to create an empty iterator, which simplifies a bunch of stuff. r=efaust
2014-11-19 01:44:02 +01:00
Jan de Mooij
d0fa9bef04
Bug 987560 - Greatly refactor generator implementation. Patch mostly written by Andy Wingo. r=wingo
2014-10-17 10:19:40 +02:00
Brian Hackett
b6419e9f3a
Bug 1073842 - Add NativeObject subclass of JSObject, remove ObjectImpl, r=luke.
2014-10-02 19:32:39 -07:00
Nicolas B. Pierron
206d7d6d49
Bug 1074911 - Replace JS_ASSERT by MOZ_ASSERT. r=jorendorff
...
Apply the following script
sed -i '
/JS_ASSERT(/ {
s/JS_ASSERT(/MOZ_ASSERT(/;
:b;
s/ \\$/\\/;
/;/ { p; d; };
n;
s/^/ /;
b b;
};
s/JS_ASSERT (/MOZ_ASSERT(/;
'
Except where the JS_ASSERT macro does not end with a semi-colon, where empty
lines are in the middle of the macro, and where the backslahes are always the
same-length after the expression.
2014-10-01 19:17:51 +02:00
Jan de Mooij
d9aad557bd
Bug 831585 - Refactor and simplify for-in bytecode and remove cx->iterValue. r=bhackett
2014-09-17 21:07:37 +02:00
Jan de Mooij
983463df99
Bug 1066197 part 3 - Move some iterator functions into js namespace, remove js_ prefix. r=bhackett
2014-09-15 09:58:27 +02:00
Jan de Mooij
e1334bc587
Bug 1066197 part 1 - Some js_IteratorMore cleanup. r=bhackett
2014-09-12 14:24:19 +02:00
Terrence Cole
bf14f83354
Bug 1033442 - Add allocation functions to Cell to make it more obvious which allocator to use; r=jonco
2014-08-08 17:00:46 -07:00
Terrence Cole
8b32fceeee
Bug 989414 - Convert BarrieredPtr to take a T* as template parameter instead of T; r=jonco
...
--HG--
extra : rebase_source : 2394326ee9de3485ffd087944092bff9c669b1f5
2014-04-25 11:02:44 -07:00
Jan de Mooij
6be782b0c6
Bug 984836 - Rename StackFrame to InterpreterFrame. r=luke
2014-03-19 09:28:57 +01:00
Luke Wagner
2cf536f413
Bug 980059 - Do some simple renaming and minor cleanups in prepration (r=jandem)
...
--HG--
extra : rebase_source : 1fbb7dd0bde99abef7a6d504e08fd18163cee3ee
2014-03-05 17:15:32 -06:00
Boris Zbarsky
15af5faccd
Bug 952873 part 2. Expose JSAPI for doing for-of iteration. r=jorendorff
2014-01-28 16:16:03 -08:00
Boris Zbarsky
d024735dbc
Bug 952873 part 1. Rename the cx member of ForOfIterator to cx_ instead. r=jorendorff
2014-01-28 16:14:47 -08:00
Wes Kocher
d40a8ba7e2
Backed out 2 changesets (bug 952873) for build bustage on a CLOSED TREE
...
Backed out changeset 92dfed2592ae (bug 952873)
Backed out changeset 1ae58fcd61a9 (bug 952873)
2014-01-28 17:34:42 -08:00
Boris Zbarsky
977365d0e5
Bug 952873 part 2. Expose JSAPI for doing for-of iteration. r=jorendorff
2014-01-28 16:16:03 -08:00
Boris Zbarsky
8b8981b4f5
Bug 952873 part 1. Rename the cx member of ForOfIterator to cx_ instead. r=jorendorff
2014-01-28 16:14:47 -08:00
André Bargull
0f042d57f9
Bug 928508 - Change String.prototype.@@iterator to iterate over code points. r=jorendorff.
2013-10-23 11:42:25 -05:00
Andy Wingo
42d8ea0ae4
Bug 919948 - Convert Array.prototype.@@iterator to use new iteration protocol. r=jorendorff
...
--HG--
extra : rebase_source : d67252851178e66e8d7ef82ef83edddf79535a4e
2013-10-17 12:10:02 +02:00
Andy Wingo
a84abcd5e0
Bug 923160 - Disallow initializers in for-of statements. r=jorendorff
2013-10-15 16:43:55 +02:00
Birunthan Mohanathas
58d97d3f6c
Bug 784739 - Switch from NULL to nullptr in js/src/ (5/9); r=ehsan
...
--HG--
extra : rebase_source : 6ded480d32133b2a0adbe11722334b73161b837f
2013-10-07 12:43:47 -04:00
Andy Wingo
53ce73ba77
Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden
2013-10-03 13:37:57 +01:00
Dan Gohman
a50084b38d
Bug 910823 - Constify static js::Class/JSClass instances. r=waldo
2013-09-11 05:49:05 -07:00
Nicholas Nethercote
5eedb65ac6
Bug 914032 (part 2) - Move a bunch of stuff out of -inl.h files. r=terrence.
...
--HG--
extra : rebase_source : c0f771690e5ff4a076dc60701b3e9e9268d3538c
2013-09-09 15:50:06 -07:00
Andy Wingo
f930708705
Bug 907744 - Implement iterator result boxing in ES6 generators. r=jorendorff
...
This patchset causes the bytecode emitter to yield boxed return values
in ES6 generators, of the form { value: foo, done: bool }.
If the generator function does not end in a return, the compiler inserts
the equivalent of a "return { value: undefined, done:true }" statement
at the end.
When an ES6 generator finishes, it does so with {done:true} instead of
throwing a StopIteration.
This patch also ports lib/asserts.js to "default version" JS, and ports
ecma_6/Generators to use it.
2013-09-04 13:20:48 -04:00
Nicholas Nethercote
d8f824e34e
Bug 898914 (part 1) - Remove JSBool.
...
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
9624be5713
Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
...
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Terrence Cole
82c1422478
Bug 899693 - Fix unsafe reference hazards around HashableValue::setValue; r=sfink
...
--HG--
extra : rebase_source : f296325db530ec1f94708a657cdc7ad885a85368
2013-07-30 16:30:27 -07:00
Nicholas Nethercote
6315bc169f
Bug 891215 (part 1) - Slim down Iterator-inl.h. r=terrence.
...
--HG--
extra : rebase_source : 44548f23517a5059849e95a4bfedec508f7c3506
2013-07-08 19:42:34 -07:00
Andy Wingo
7f4d63c6b8
Bug 648949 - Remove HAS_JS_GENERATORS #define. r=Waldo, r=jorendorff
2013-06-26 12:34:47 +02:00
Catalin Iacob
d1755d1c96
Bug 798914 (part 4) - Use newly introduced mozilla::MallocSizeOf in js. r=njn.
...
--HG--
extra : rebase_source : d1c063b94c7ec58729150cbea602bb4c9f2a0e24
2013-06-23 13:21:01 +02:00
Emanuel Hoogeveen
92a19ae235
Bug 883697 (part 2) - Make include guards consistent in some of js/src/. r=njn.
...
--HG--
extra : rebase_source : 86e3e36e1711191a6e8a01bc44f01cffc6b48b96
2013-06-19 17:59:46 -07:00
Jan de Mooij
ced151ecd4
Bug 883171 - Remove JSContext::fp() and JSContext::regs(). r=luke
2013-06-19 11:33:13 +02:00
Nicholas Nethercote
549fd96b30
Bug 634839 (part 2b) - Remove more unnecessary headers (as found by include-what-you-use) from SpiderMonkey. r=jorendorff.
...
--HG--
extra : rebase_source : 5d6a4d653160a9c4a9645b14bebbcfab71b50ef4
2013-06-12 22:20:27 -07:00
Nicholas Nethercote
b7ceec6f60
Bug 880041 (part 5) - Use JSObject::{is,as} for ElementIteratorObject. r=sfink.
...
--HG--
extra : rebase_source : 0f71366ff461d7c4d021e1d0381dad1b45462342
2013-06-16 17:24:34 -07:00
Terrence Cole
8e6d671a3d
Bug 867426 - Remove RawObject typedef; r=jonco
...
--HG--
extra : rebase_source : cf90289656cdcbc2c33e918db4d5347613ad6360
2013-04-30 15:41:12 -07:00
Xin Zhang
2fa2b688ad
Bug 857385 - Make various JSFunctionSpec arrays const. r=waldo
...
--HG--
extra : rebase_source : 24141998ffad3b0e6bad98b6fc0ce3754e448d5b
2013-04-22 14:15:49 -07:00
Sean Stangl
dc8230838c
Bug 860029 - Standardize Modelines in the JS Module. r=njn
2013-04-16 13:47:10 -07:00
Phil Ringnalda
23acd61026
Back out a5a1dd3bd8ae (bug 860029) for stupidorange
2013-04-15 12:55:38 -07:00
Sean Stangl
d3d0513618
Bug 860029 - Standardize Modelines in the JS Module. r=njn
2013-04-15 11:33:03 -07:00
Phil Ringnalda
fe48637b66
Back out 5bf9771e1a28 (bug 860029) for bustage
...
CLOSED TREE
2013-04-11 19:55:37 -07:00
Sean Stangl
900638a687
Bug 860029 - Standardize Modelines in the JS Module. DONTBUILD. r=njn
2013-04-11 18:48:59 -07:00
Bill McCloskey
78f4893972
Remove LIFO invariants from the enumerator list (bug 831626, r=billm).
...
--HG--
extra : rebase_source : f3ff97bee7484820c45be04c0688a9c8d51bbe7f
2013-01-24 11:17:41 -08:00
Nicholas Nethercote
0a726cdb19
Bug 806283 - Split up and add native iterators to "object/misc" memory reports. r=jorendorff.
...
--HG--
extra : rebase_source : 867e178d0c921de9e144fb274e1c0d77c8845b81
2012-11-01 16:51:04 -07:00
Nicholas Nethercote
71bc79b4c8
Bug 793588 (part 2) - Exactly root jsiter.{cpp,h}. r=sfink.
...
--HG--
extra : rebase_source : ffdd302bbad433d6a67e7b7ff8b631600c4a3594
2012-09-23 20:53:27 -07:00
Nicholas Nethercote
3ed4a35591
Bug 793086 (part 1) - Convert JSClassInitializerOp parameter to HandleObject. r=sfink.
...
--HG--
extra : rebase_source : e8d20aad8abc0bf85df1f05e90be1ce46e8f0125
2012-09-20 22:17:49 -07:00
Jason Orendorff
bb664aca50
Bug 778557 - "Assertion failure: !args.rval().isPrimitive() && callee != &args.rval().toObject()". r=jimb.
...
--HG--
extra : rebase_source : fa51b866178d26c0a2e17f0de13d4398b6ce8897
2012-09-12 11:00:08 -05:00
David Anderson
56597a8412
Merge from mozilla-central.
2012-07-31 17:19:41 -07:00
David Anderson
07f7d8e680
Merge from mozilla-central.
2012-07-20 12:02:04 -07:00