Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: src/builtins.cc

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: properly rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index 7609de8aaffc160d37535d2ce5c8e59f556f5342..6c9c1b5f362bcbc719947932da4b7db0560254b6 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -2478,6 +2478,17 @@ void Builtins::Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler) {
"[Generator].prototype.throw");
}
+void Builtins::Generate_AsyncFunctionNext(CodeStubAssembler* assembler) {
+ Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kNext,
+ "AsyncFunctionNext");
+}
+
+// ES6 section 25.3.1.4 Generator.prototype.throw ( exception )
+void Builtins::Generate_AsyncFunctionThrow(CodeStubAssembler* assembler) {
+ Generate_GeneratorPrototypeResume(assembler, JSGeneratorObject::kThrow,
+ "AsyncFunctionThrow");
+}
Dan Ehrenberg 2016/05/04 22:52:36 Just to make sure I understand, these are separate
Benedikt Meurer 2016/05/05 19:04:45 From my POV, these are separate primarily because
+
// -----------------------------------------------------------------------------
// ES6 section 26.1 The Reflect Object

Powered by Google App Engine
This is Rietveld 408576698