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

Unified Diff: src/bootstrapper.cc

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: Partially fix `throw` completions (resumption works, but no resumption doesn't) Created 4 years, 8 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
« no previous file with comments | « src/bailout-reason.h ('k') | src/builtins.h » ('j') | src/builtins.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 936cf40a3b0aa6c8dac298256f86be6a94811e0a..54edf377bc044bcf7b19c409c612aba7a8ccfed8 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2370,6 +2370,13 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
script_is_embedder_debug_script, attribs);
script_map->AppendDescriptor(&d);
}
+
+ {
+ SimpleInstallFunction(container, "AsyncFunctionNext",
+ Builtins::kAsyncFunctionNext, 2, false);
+ SimpleInstallFunction(container, "AsyncFunctionThrow",
+ Builtins::kAsyncFunctionThrow, 2, false);
+ }
}
}
« no previous file with comments | « src/bailout-reason.h ('k') | src/builtins.h » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698