v8/test
Hai Dang 60d3ce727f Add iterator protectors for JSMapIterator/JSSet/JSSetIterator.
The MapIterator protector protects the original iteration behaviors of
Map.prototype.keys(), Map.prototype.values(), and Set.prototype.entries().
It does not protect the original iteration behavior of
Map.prototype[Symbol.iterator](). The protector is invalidated when:
* The 'next' property is set on an object where the property holder is the
  %MapIteratorPrototype% (e.g. because the object is that very prototype).
* The 'Symbol.iterator' property is set on an object where the property
  holder is the %IteratorPrototype%. Note that this also invalidates the
  SetIterator protector (see below).

The SetIterator protector protects the original iteration behavior of
Set.prototype.keys(), Set.prototype.values(), Set.prototype.entries(),
and Set.prototype[Symbol.iterator](). The protector is invalidated when:
* The 'next' property is set on an object where the property holder is the
  %SetIteratorPrototype% (e.g. because the object is that very prototype).
* The 'Symbol.iterator' property is set on an object where the property
  holder is the %SetPrototype% OR %IteratorPrototype%. This means that
  setting Symbol.iterator on a MapIterator object can also invalidate the
  SetIterator protector, and vice versa, setting Symbol.iterator on a
  SetIterator object can also invalidate the MapIterator. This is an over-
  approximation for the sake of simplicity.

Bug: v8:7980
Change-Id: I54ad6e4c7f19ccc27d7001f6c4b6c8d6ea4ee871
Reviewed-on: https://chromium-review.googlesource.com/c/1273102
Reviewed-by: Georg Neis <neis@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Hai Dang <dhai@google.com>
Cr-Commit-Position: refs/heads/master@{#56530}
2018-10-10 14:10:29 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest [wasm] Cache import wrappers in NativeModule 2018-10-10 13:03:32 +00:00
common Fix Arm64 assembler on Android. 2018-09-18 09:43:05 +00:00
debugger [async] Improve async function handling. 2018-10-10 06:37:53 +00:00
fuzzer [multi-return-fuzzer] Fix clusterfuzz issue in test 2018-10-05 10:49:10 +00:00
inspector [wasm][test] Refactor breakpoint inspector test 2018-10-10 10:24:32 +00:00
intl [Intl] Fix intl/date-format/constructor-order 2018-10-08 23:28:00 +00:00
js-perf-test [js-perf-test] Add micro-benchmarks for spreading maps and sets. 2018-10-10 08:32:15 +00:00
memory [builtins] Add embedded stats to --serialization-statistics 2018-07-05 12:33:26 +00:00
message Remove always-true --harmony-function-tostring runtime flag 2018-10-03 15:04:16 +00:00
mjsunit Add iterator protectors for JSMapIterator/JSSet/JSSetIterator. 2018-10-10 14:10:29 +00:00
mkgrokdump [cleanup] Cleanup IMMORTAL_IMMOVABLE_ROOT_LIST 2018-10-09 09:05:37 +00:00
mozilla [test] Add more test suites to Android testing 2018-09-07 09:53:15 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 [Intl] Fix intl/date-format/constructor-order 2018-10-08 23:28:00 +00:00
torque [torque] Allow atomarStatements in otherwise statements 2018-10-08 15:05:51 +00:00
unittests [wasm] Add support for multiple catch blocks. 2018-10-09 12:26:55 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-09-25 08:36:32 +00:00
webkit Remove always-true --harmony-string-trimming runtime flag 2018-10-01 16:19:19 +00:00
BUILD.gn Reland "[test] Add logic to run tests on Android" 2018-08-10 17:56:12 +00:00