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

Unified Diff: BUILD.gn

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 | « no previous file | gypfiles/features.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 14c7a696e651f583b47d88d243b45a337735270d..6493571daa0e18bf6ebb3bc7d8af61f6032ba565 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -45,6 +45,9 @@ declare_args() {
# Sets -dENABLE_DISASSEMBLER.
v8_enable_disassembler = ""
+ # Sets the number of internal fields on promise objects.
+ v8_promise_internal_field_count = 0
+
# Sets -dENABLE_GDB_JIT_INTERFACE.
v8_enable_gdbjit = ""
@@ -206,6 +209,10 @@ config("features") {
if (v8_enable_disassembler) {
defines += [ "ENABLE_DISASSEMBLER" ]
}
+ if (v8_promise_internal_field_count != 0) {
+ defines +=
+ [ "V8_PROMISE_INTERNAL_FIELD_COUNT=${v8_promise_internal_field_count}" ]
+ }
if (v8_enable_future) {
defines += [ "V8_ENABLE_FUTURE" ]
}
« no previous file with comments | « no previous file | gypfiles/features.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698