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

Unified Diff: src/js/async-await.js

Issue 2638073002: [async-await] Move PromiseCreate and PromiseRelease to TF (Closed)
Patch Set: Move to builtins-async-function.cc and address comment Created 3 years, 11 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/builtins/builtins-async-function.cc ('k') | src/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/async-await.js
diff --git a/src/js/async-await.js b/src/js/async-await.js
index 079a5fcaa44b723e1b7c631e93cc38ba499f1a74..e1c75c008dc0dc0273a28faa0d62b3e3ae0ea66b 100644
--- a/src/js/async-await.js
+++ b/src/js/async-await.js
@@ -106,32 +106,9 @@ function AsyncFunctionAwaitCaught(generator, awaited, outerPromise) {
AsyncFunctionAwait(generator, awaited, outerPromise);
}
-function AsyncFunctionPromiseCreate() {
- var promise = %promise_internal_constructor(UNDEFINED);
- if (DEBUG_IS_ACTIVE) {
- // Push the Promise under construction in an async function on
- // the catch prediction stack to handle exceptions thrown before
- // the first await.
- // Assign ID and create a recurring task to save stack for future
- // resumptions from await.
- %DebugAsyncFunctionPromiseCreated(promise);
- }
- return promise;
-}
-
-function AsyncFunctionPromiseRelease(promise) {
- if (DEBUG_IS_ACTIVE) {
- // Pop the Promise under construction in an async function on
- // from catch prediction stack.
- %DebugPopPromise();
- }
-}
-
%InstallToContext([
"async_function_await_caught", AsyncFunctionAwaitCaught,
"async_function_await_uncaught", AsyncFunctionAwaitUncaught,
- "async_function_promise_create", AsyncFunctionPromiseCreate,
- "async_function_promise_release", AsyncFunctionPromiseRelease,
]);
})
« no previous file with comments | « src/builtins/builtins-async-function.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698