Commit Graph

784 Commits

Author SHA1 Message Date
Brian Hackett
6ac79b58e5 Bug 1107496 - Add PlainObject subclass, r=luke. 2014-12-05 18:52:28 -07:00
Ryan VanderMeulen
11d669cc74 Backed out changeset 64ec5c15d182 (bug 1107496) for SM(ggc) orange. 2014-12-05 13:28:40 -05:00
Brian Hackett
2f8a3eaad6 Bug 1107496 - Add PlainObject subclass, r=luke. 2014-12-05 07:27:37 -07:00
Tom Schuster
977a743145 Bug 1091900 - Make GetIterator and others take an object as outparam. r=efaust 2014-11-19 01:44:03 +01:00
Tom Schuster
91bf18a3c7 Bug 1091900 - Make some functions local. r=efaust 2014-11-19 01:44:02 +01:00
Tom Schuster
2932b88f97 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
Tom Schuster
892aa58156 Bug 783829 - Rename Proxy enumerate trap to getEnumerablePropertyKeys. r=efaust 2014-11-14 16:21:12 +01:00
Nicholas Nethercote
1893cc34f0 Bug 1098618 - Use a smaller initial IdSet size in jsiter.cpp:Snapshot(). r=sfink. 2014-11-13 18:06:24 -08:00
Tom Schuster
514d038e54 Bug 1091900 - Move ForOfIterator to its own file. r=jandem 2014-11-08 01:07:12 +01:00
Tom Schuster
19ecd5993a Bug 1091900 - Remove iteratorObject hook. r=jorendorff
* * *
Bug 1091900 - Fix build on CLOSED TREE
2014-11-05 20:36:49 +01:00
Carsten "Tomcat" Book
77157c3f45 Backed out changeset dc265cc31095 (bug 1091900) 2014-11-06 09:11:18 +01:00
Tom Schuster
7e7402ed74 Bug 1091900 - Remove iteratorObject hook. r=jorendorff 2014-11-05 20:36:49 +01:00
Jason Orendorff
bcc9db0b2c Bug 918828, part 1 - Change iteration code to call iterable[Symbol.iterator]() rather than iterable["@@iterator"](). r=Waldo with earlier review work by nbp. 2014-07-01 21:01:21 -05:00
Jan de Mooij
2ff41ee575 Bug 987560 - Greatly refactor generator implementation. Patch mostly written by Andy Wingo. r=wingo 2014-10-17 10:19:40 +02:00
Jason Orendorff
85d2dd7949 Bug 1083204 - Handlify js::GetPropertyKeys and Snapshot. r=efaust. 2014-10-13 14:20:13 -05:00
Jason Orendorff
74f6308ca4 Bug 1081280 - Rename BaseProxyHandler::keys -> getOwnEnumerablePropertyKeys. r=efaust. 2014-10-08 22:01:55 -05:00
Jason Orendorff
448bc4a4ce Bug 1026918, part 2 - Rename js::GetPropertyNames -> GetPropertyKeys. r=efaust. 2014-09-26 19:39:35 -05:00
Jason Orendorff
5823a20a9a Bug 1026918, part 1 - Rename BaseProxyHandler::getOwnPropertyNames -> ownPropertyKeys to match the ES6 [[OwnPropertyKeys]] internal method. r=efaust, r=bz.
Also renamed in this patch:

ENUMERATE_IF_DEFINED -> ADD_KEYS_IF_DEFINED
XrayEnumerateAttributesOrMethods -> XrayAttributeOrMethodKeys
XrayEnumerateNativeProperties -> XrayOwnNativePropertyKeys
XrayEnumerateProperties -> XrayOwnPropertyKeys
WrapperOwner::getPropertyNames -> getPropertyKeys

These make sense because JSITER_* flags are involved; the functions in
question are not for finding enumerable properties only.
2014-09-26 15:16:36 -05:00
Brian Hackett
5af358b89d Bug 1073842 - Rename ObjectImpl to NativeObject, sr=luke. 2014-10-07 18:50:34 -07:00
Brian Hackett
0f98f3b75c Bug 1073842 - Add NativeObject subclass of JSObject, remove ObjectImpl, r=luke. 2014-10-02 19:32:39 -07:00
Nicolas B. Pierron
9d5a7dcd11 Bug 1074911 - Replace JS_ASSERT_IF by MOZ_ASSERT_IF. r=jorendorff
Apply the following script

sed -i '
   /JS_ASSERT_IF(/ {
     s/JS_ASSERT_IF(/MOZ_ASSERT_IF(/;
     :b;
     s/ \\$/\\/;
     /;/ { p; d; };
     n;
     s/^/ /;
     b b;
  };
  s/JS_ASSERT_IF (/MOZ_ASSERT_IF(/;
'
2014-10-01 19:17:53 +02:00
Nicolas B. Pierron
cb753ff627 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
Till Schneidereit
ebd2949f9f Bug 1067459 - Only install a small subset of the standard builtins in the self-hosting global. r=jorendorff 2014-09-16 10:01:09 -04:00
Boris Zbarsky
cc196ee181 Bug 1066432. Update ForOfIterator to the changes in Web IDL's handling of sequences as iterables. We now commit to an iterable if we get a non-undefined value for the Symbol.iterator property, not just if we get a callable value. r=jorendorff 2014-09-30 21:26:28 -04:00
Jan de Mooij
9e5ceeeb8b Bug 831585 - Refactor and simplify for-in bytecode and remove cx->iterValue. r=bhackett 2014-09-17 21:07:37 +02:00
Terrence Cole
020442a721 Bug 1068223 - Clean up the Cell hierarchy; r=jonco 2014-09-17 10:32:37 -07:00
Ryan VanderMeulen
d934607b93 Backed out 6 changesets (bug 918828) for mass bustage on a CLOSED TREE.
Backed out changeset b59c02df792f (bug 918828)
Backed out changeset 12e7deed1b17 (bug 918828)
Backed out changeset b87ca498ea9a (bug 918828)
Backed out changeset 621224c58e71 (bug 918828)
Backed out changeset 4faff84eb1ba (bug 918828)
Backed out changeset 3695c1c812a5 (bug 918828)
2014-09-16 17:26:34 -04:00
Jason Orendorff
99f4406678 Bug 918828, part 2 - Change iteration code to call iterable[Symbol.iterator]() rather than iterable["@@iterator"](). r=nbp. 2014-07-01 21:01:21 -05:00
Lars T Hansen
5de5662bf1 Bug 1054882 - Rollup patch. r=till, r=sstangl, r=jorendorff 2014-09-16 18:45:31 +02:00
Jan de Mooij
20a0e6367b 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
66d62052c5 Bug 1066197 part 1 - Some js_IteratorMore cleanup. r=bhackett 2014-09-12 14:24:19 +02:00
Tooru Fujisawa
71f1091c13 Bug 1012480 - Do not treat star generator's iterator as legacy generator's iterator in for..in loop. r=jorendorff 2014-07-29 03:05:46 +09:00
Terrence Cole
b2e7fa6fbc 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
141bb16882 Bug 1033442 - Remove non-pod malloc from MallocProvider and AllocPolicy; r=jonco 2014-08-08 13:22:39 -07:00
Jon Coppeard
6e0d7b61ee Bug 650161 - Update pointers to relocated objects r=terrence 2012-06-05 11:47:42 -07:00
Ed Morley
d84861ec54 Backed out changeset 3adf62f886d9 (bug 650161) 2014-08-14 12:52:41 +01:00
Jon Coppeard
0df96e785c Bug 650161 - Update pointers to relocated objects r=terrence 2012-06-05 11:47:42 -07:00
Terrence Cole
845c16df98 Bug 1033442 - Remove non-pod calloc from MallocProvider and AllocPolicy; r=jonco 2014-08-05 14:06:35 -07:00
Terrence Cole
30dac83d5a Bug 1045940 - Rename needsBarrier to needsIncrementalBarrier; r=jonco 2014-07-28 10:16:56 -07:00
Jason Orendorff
b0b82cd711 Bug 1030014 - Fix a compile error in more-deterministic JS shells. r=sfink. 2014-06-27 13:30:37 -07:00
Gary Kwong
310a929cc0 Backout 406904577dfc due to borked commit message. 2014-06-27 13:28:35 -07:00
Gary Kwong
36ecd8c89b changeset: 217199:e58ff2fcc8a1
bookmark:    jto/bug-1030014-more-deterministic
parent:      217183:123e07744d21
user:        Jason Orendorff <jorendorff@mozilla.com>
summary:     Bug 1030014 - Fix a compile error in more-deterministic JS shells. r=sfink.
2014-06-27 14:27:01 -05:00
Andy Wingo
d5668d517d Bug 985894 - Sending a value to a newborn generator should not raise an error r=jorendorff 2014-06-26 15:32:30 +02:00
Jason Orendorff
79ded004dc Bug 645416, part 27 - Implement Object.getOwnPropertySymbols(). r=Waldo. 2014-06-23 10:57:03 -05:00
Jason Orendorff
b352550168 Bug 645417, part 26 - Update jsid sorting for JS_MORE_DETERMINISTIC. r=luke.
Unfortunately, with symbols, the original goal of this code is apparently
impossible. For two unique symbols with the same description, short of doing
extra bookkeeping at run time, there's no ordering that's sure to be consistent
across runs. The new code orders all other symbols.
2014-06-23 10:57:03 -05:00
Jason Orendorff
c027cced52 Bug 645416, part 25 - Add support for enumerating symbol-keyed properties. r=Waldo.
Object.keys, Object.getOwnPropertyNames, and for-in loops skip symbol-keyed
properties per spec, but Object.defineProperties sees them, and a future
Reflect.ownKeys API will need to be able to see them.

This patch changes the comments on JSITER_FOREACH and JSITER_KEYVALUE, but not
the behavior. The comments were just wrong.
2014-06-23 10:57:03 -05:00
Jason Orendorff
fbcad11723 Bug 645416, part 23 - Implement ValueToId for symbols. This makes symbols work as property keys. r=efaust. 2014-06-23 10:57:02 -05:00
Jason Orendorff
a8d40db657 Bug 645416, part 4 - Rename DefinePropertiesAndBrand -> DefinePropertiesAndFunctions. r=bhackett. 2014-06-23 10:55:52 -05:00
Arpad Borsos
f5042dd387 Bug 1015742 - refactor JSOP_SPREAD to work on iterator; r=jorendorff 2014-05-26 19:41:37 +02:00
Ehsan Akhgari
5292a10a42 Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem 2014-05-25 21:46:24 -04:00