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

Unified Diff: src/utils.h

Issue 1663323003: [fullcode] Change fullcode to compile finally using the token approach. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments Created 4 years, 10 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 | « src/full-codegen/x87/full-codegen-x87.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698