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

Unified Diff: src/objects.h

Issue 2541283002: [promises] Port ResolvePromise to TF (Closed)
Patch Set: remove ResolvePromise Created 4 years 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/objects.h
diff --git a/src/objects.h b/src/objects.h
index b44fe18df26da1f605e3a82dff19ba914e2bde6d..b3e3dc168b4abf600efaf6774acc856667207312 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -8912,6 +8912,9 @@ class JSPromise : public JSObject {
DECL_ACCESSORS(fulfill_reactions, Object)
DECL_ACCESSORS(reject_reactions, Object)
+ // TODO(gsathya): Use a BitField
+ DECL_INT_ACCESSORS(has_handler)
jgruber 2016/12/07 12:59:38 Please add a comment for content meaning and possi
Igor Sheludko 2016/12/07 16:23:52 +1. Please turn this into smi "flag" field + boole
gsathya 2016/12/08 05:18:15 Done.
+
static const char* Status(int status);
DECLARE_CAST(JSPromise)
@@ -8927,7 +8930,8 @@ class JSPromise : public JSObject {
static const int kFulfillReactionsOffset = kDeferredOffset + kPointerSize;
static const int kRejectReactionsOffset =
kFulfillReactionsOffset + kPointerSize;
- static const int kSize = kRejectReactionsOffset + kPointerSize;
+ static const int kHasHandlerOffset = kRejectReactionsOffset + kPointerSize;
+ static const int kSize = kHasHandlerOffset + kPointerSize;
};
// Regular expressions

Powered by Google App Engine
This is Rietveld 408576698