From 747cdba92b376db8b3fe3c6803dda99dfc3394d0 Mon Sep 17 00:00:00 2001 From: Corentin Pescheloche Date: Thu, 6 Jan 2022 04:28:35 -0800 Subject: [PATCH] Shift EmbedderState values next to each other For consistency with the other enums values, avoid gaps between EmbedderState values. Bug: chromium:1263871 Change-Id: I22c58700f292b007ced7c12db219f578f82d77d1 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3370081 Auto-Submit: Corentin Pescheloche Reviewed-by: Camillo Bruni Commit-Queue: Camillo Bruni Cr-Commit-Position: refs/heads/main@{#78549} --- include/v8-embedder-state-scope.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/v8-embedder-state-scope.h b/include/v8-embedder-state-scope.h index 37e1f2bacb..d8a3b08d5c 100644 --- a/include/v8-embedder-state-scope.h +++ b/include/v8-embedder-state-scope.h @@ -19,9 +19,10 @@ class EmbedderState; // A StateTag represents a possible state of the embedder. enum class EmbedderStateTag : uint8_t { + // reserved EMPTY = 0, - // embedder can define any state in between - OTHER = UINT8_MAX, + OTHER = 1, + // embedder can define any state after }; // A stack-allocated class that manages an embedder state on the isolate.