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

Unified Diff: include/v8.h

Issue 2889863002: Allow embedder to set promise internal field count (Closed)
Patch Set: More BUILD.gn fixes Created 3 years, 7 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 | « gypfiles/features.gypi ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 099dfb25b434c45a949d4ddf33b2e9c8913881de..5f9cf3e28423720d475bf798303091b7f841ad07 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -3856,6 +3856,10 @@ class V8_EXPORT Function : public Object {
static void CheckCast(Value* obj);
};
+#ifndef V8_PROMISE_INTERNAL_FIELD_COUNT
+// The number of required internal fields can be defined by embedder.
+#define V8_PROMISE_INTERNAL_FIELD_COUNT 0
+#endif
/**
* An instance of the built-in Promise constructor (ES6 draft).
@@ -3937,6 +3941,8 @@ class V8_EXPORT Promise : public Object {
V8_INLINE static Promise* Cast(Value* obj);
+ static const int kEmbedderFieldCount = V8_PROMISE_INTERNAL_FIELD_COUNT;
+
private:
Promise();
static void CheckCast(Value* obj);
« no previous file with comments | « gypfiles/features.gypi ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698