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

Unified Diff: src/runtime/runtime-promise.cc

Issue 2609853004: [promises] Remove unused runtime calls (Closed)
Patch Set: Created 3 years, 12 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/runtime/runtime.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-promise.cc
diff --git a/src/runtime/runtime-promise.cc b/src/runtime/runtime-promise.cc
index 655b9fa43d279d6ef1ba5c5888a026cf7feaf703..d0550a048d7ad7bb3858ef03527e4f9415a9d0b7 100644
--- a/src/runtime/runtime-promise.cc
+++ b/src/runtime/runtime-promise.cc
@@ -280,44 +280,6 @@ RUNTIME_FUNCTION(Runtime_PromiseResult) {
return promise->result();
}
-RUNTIME_FUNCTION(Runtime_PromiseDeferred) {
- HandleScope scope(isolate);
- DCHECK(args.length() == 1);
- CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0);
-
- Handle<Object> deferred(promise->deferred_promise(), isolate);
- if (deferred->IsUndefined(isolate)) {
- return isolate->heap()->undefined_value();
- }
-
- if (deferred->IsJSObject()) {
- return *deferred;
- }
-
- DCHECK(deferred->IsFixedArray());
- return *isolate->factory()->NewJSArrayWithElements(
- Handle<FixedArray>::cast(deferred));
-}
-
-RUNTIME_FUNCTION(Runtime_PromiseRejectReactions) {
- HandleScope scope(isolate);
- DCHECK(args.length() == 1);
- CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0);
-
- Handle<Object> reject_reactions(promise->reject_reactions(), isolate);
- if (reject_reactions->IsUndefined(isolate)) {
- return isolate->heap()->undefined_value();
- }
-
- if (reject_reactions->IsJSObject()) {
- return *reject_reactions;
- }
-
- DCHECK(reject_reactions->IsFixedArray());
- return *isolate->factory()->NewJSArrayWithElements(
- Handle<FixedArray>::cast(reject_reactions));
-}
-
RUNTIME_FUNCTION(Runtime_PromiseMarkAsHandled) {
SealHandleScope shs(isolate);
DCHECK(args.length() == 1);
« no previous file with comments | « src/runtime/runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698