[Webkit-unassigned] [Bug 150290] New: [ES6] Implement Generators
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Oct 17 16:08:13 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=150290
Bug ID: 150290
Summary: [ES6] Implement Generators
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: utatane.tea at gmail.com
Implement ES6 generators.
Consider the following case,
let generator = gen();
// first example.
for (let value of generator) {
...
}
function* gen() {
// (1).
...
// (2).
yield;
}
in for-of, we call generator.next(). In the first case, it starts from (1). And the second call starts from (2).
So I think generating the following code for ES6 generator is the easiest way to handle it in DFG / FTL. How about this?
// Entry point is only one. Every time we call generator.next(), the function will start from here.
resume_to_yield (generator_object) // This resumes frame and jump.
label_1:
// (1).
special_return;
label_2:
// (2).
special_return;
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151017/e7a5ea97/attachment-0001.html>
More information about the webkit-unassigned
mailing list