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

Unified Diff: src/promise-utils.h

Issue 2637523002: [promises] Clean up promise utils and remove dead code (Closed)
Patch Set: Fix nits 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/factory.cc ('k') | src/promise-utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/promise-utils.h
diff --git a/src/promise-utils.h b/src/promise-utils.h
deleted file mode 100644
index 31fbc89870d9b0ca22f3b42a499eab1bb47c1784..0000000000000000000000000000000000000000
--- a/src/promise-utils.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_PROMISE_UTILS_H_
-#define V8_PROMISE_UTILS_H_
-
-#include "src/contexts.h"
-#include "src/objects.h"
-
-namespace v8 {
-namespace internal {
-
-// Helper methods for Promise builtins.
-class PromiseUtils : public AllStatic {
- public:
- enum PromiseResolvingFunctionContextSlot {
- // Whether the resolve/reject callback was already called.
- kAlreadyVisitedSlot = Context::MIN_CONTEXT_SLOTS,
-
- // The promise which resolve/reject callbacks fulfill.
- kPromiseSlot,
-
- // Whether to trigger a debug event or not. Used in catch
- // prediction.
- kDebugEventSlot,
- kPromiseContextLength,
- };
-
- // These get and set the slots on the PromiseResolvingContext, which
- // is used by the resolve/reject promise callbacks.
- static JSPromise* GetPromise(Handle<Context> context);
- static Object* GetDebugEvent(Handle<Context> context);
- static bool HasAlreadyVisited(Handle<Context> context);
- static void SetAlreadyVisited(Handle<Context> context);
-};
-
-class GetPromiseCapabilityExecutor : public AllStatic {
- public:
- enum FunctionContextSlot {
- kCapabilitySlot = Context::MIN_CONTEXT_SLOTS,
-
- kContextLength,
- };
-};
-
-} // namespace internal
-} // namespace v8
-
-#endif // V8_PROMISE_UTILS_H_
« no previous file with comments | « src/factory.cc ('k') | src/promise-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698