6d42c4504a
Enable enqueueing of eager inner function compilation onto the compiler dispatcher. This enables these tasks to be performed in parallel to compilation of the outer functio (only for Ignition functions). We currently synchronize to ensure all inner function compilations are complete before executing the outer function - future work will allow outer function execution to happenin parallel to inner function compilation. BUG=v8:5203,v8:5215 Review-Url: https://codereview.chromium.org/2611313002 Cr-Commit-Position: refs/heads/master@{#42667}
15 lines
416 B
JavaScript
15 lines
416 B
JavaScript
// Copyright 2016 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --ignition
|
|
|
|
function* foo() { yield 42 }
|
|
function* goo() { yield 42 }
|
|
var f = foo();
|
|
var g = goo();
|
|
assertEquals(42, f.next().value);
|
|
assertEquals(42, g.next().value);
|
|
assertEquals(true, f.next().done);
|
|
assertEquals(true, g.next().done);
|