v8/test/mjsunit/harmony
Caitlin Potter bf463c4dc0 [async-iteration] implement AsyncGenerator
- Introduce new struct AsyncGeneratorRequest, which holds
  information pertinent to resuming execution of an
  AsyncGenerator, such as the Promise associated with the async
  generator request. It is intended to be used as a singly
  linked list, and holds a pointer to the next item in te queue.

- Introduce JSAsyncGeneratorObject (subclass of
  JSGeneratorObject), which includes several new internal fields
  (`queue` which contains a singly linked list of
  AsyncGeneratorRequest objects, and `await_input` which
  contains the sent value from an Await expression (This is
  necessary to prevent function.sent (used by yield*) from
  having the sent value observably overwritten during
  execution).

- Modify SuspendGenerator to accept a set of Flags, which
  indicate whether the suspend is for a Yield or Await, and
  whether it takes place on an async generator or ES6
  generator.

- Introduce interpreter intrinsics and TF intrinsic lowering for
  accessing the await input of an async generator

- Modify the JSGeneratorStore operator to understand whether or
  not it's suspending for a normal yield, or an AsyncGenerator
  Await. This ensures appropriate registers are stored.

- Add versions of ResumeGeneratorTrampoline which store the
  input value in a different field depending on wether it's an
  AsyncGenerator Await resume, or an ordinary resume. Also modifies
  whether debug code will assert that the generator object is a
  JSGeneratorObject or a JSAsyncGeneratorObject depending on the
  resume type.

BUG=v8:5855
R=bmeurer@chromium.org, rmcilroy@chromium.org, jgruber@chromium.org,
littledan@chromium.org, neis@chromium.org
TBR=marja@chromium.org

Change-Id: I9d58df1d344465fc937fe7eed322424204497187
Reviewed-on: https://chromium-review.googlesource.com/446961
Commit-Queue: Caitlin Potter <caitp@igalia.com>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Hannes Payer <hpayer@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44240}
2017-03-29 17:33:12 +00:00
..
regress [parser] Fix template escapes in preparser 2017-03-15 12:44:41 +00:00
array-concat-array-proto-getter.js
array-concat-array-proto.js
array-concat-object-proto-dict-getter.js
array-concat-object-proto-dict.js
array-concat-object-proto-generic-dict.js
array-concat-object-proto.js
async-from-sync-iterator.js [async-iteration] implement Async-from-Sync Iterator 2017-02-24 17:48:49 +00:00
async-generators-basic.js [async-iteration] implement AsyncGenerator 2017-03-29 17:33:12 +00:00
atomics.js [SAB] Handle non-numerics in Atomics.isLockFree 2017-01-31 19:33:46 +00:00
block-lazy-compile.js
dataview-accessors.js
default-parameter-do-expression.js
do-expressions-control.js
do-expressions.js [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). 2017-01-26 17:39:09 +00:00
for-await-of.js [async-iteration] add support for for-await-of loops in Async Functions 2017-02-15 19:39:06 +00:00
function-sent.js
function-tostring.js Implement new Function.prototype.toString --harmony-function-tostring 2017-02-16 20:19:24 +00:00
futex.js Reland moving Atomics builtins to C++ 2017-03-13 20:59:15 +00:00
generators.js
harmony-string-pad-end.js
harmony-string-pad-start.js
module-parsing-eval.js
object-rest-basic.js
object-spread-basic.js
private-symbols.js
private.js
promise-prototype-finally.js [ESnext] Implement Promise.prototype.finally 2017-02-17 22:10:28 +00:00
regexp-change-exec.js
regexp-lookbehind.js [regexp] fix regexp lookbehind with back reference on ARM. 2017-02-27 06:29:47 +00:00
regexp-named-captures.js [regexp] Handle unmatched groups in callable replacers 2017-03-28 13:29:22 +00:00
regexp-property-binary.js
regexp-property-char-class.js
regexp-property-disabled.js
regexp-property-enumerated.js
regexp-property-exact-match.js
regexp-property-general-category.js
regexp-property-invalid.js
regexp-property-lu-ui.js
regexp-property-script-extensions.js
regexp-property-scripts.js
regexp-property-special.js
set-prototype-of.js
sharedarraybuffer.js [SAB] Implement SharedArrayBuffer.prototype.slice 2017-03-23 18:13:24 +00:00
sloppy-legacy-duplicate-generators.js
sloppy-no-duplicate-generators.js
symbol-async-iterator.js
template-escapes.js [parser] Correctly handle invalid escapes in adjacent template tokens. 2017-03-03 22:08:57 +00:00
to-length.js
to-name.js
to-number.js
to-primitive.js
to-string.js
trailing-commas-length.js