Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index 1d4d27b302af57bb9416521c693868b8d30aa513..d779979a61f8c2354f517a1ae96573b6c0745ba0 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -1125,6 +1125,19 @@ class BailoutId { |
int id_; |
}; |
+class TokenDispenserForFinally { |
+ public: |
+ int GetBreakContinueToken() { return next_token_++; } |
+ static const int kFallThroughToken = 0; |
+ static const int kThrowToken = 1; |
+ static const int kReturnToken = 2; |
+ |
+ static const int kFirstBreakContinueToken = 3; |
+ static const int kInvalidToken = -1; |
+ |
+ private: |
+ int next_token_ = kFirstBreakContinueToken; |
+}; |
// ---------------------------------------------------------------------------- |
// I/O support. |