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

Unified Diff: src/globals.h

Issue 2285113002: Reland of Fix compiler warnings on "make android_arm" (Closed)
Patch Set: Created 4 years, 4 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/deoptimize-reason.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index 7da95bc1542885717669d684e0deab531b080978..ea0aac998f89aa304b13990ca22a05f5e36d8a5f 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -912,7 +912,8 @@
inline bool IsDeclaredVariableMode(VariableMode mode) {
- return mode >= VAR && mode <= CONST;
+ STATIC_ASSERT(VAR == 0); // Implies that mode >= VAR.
+ return mode <= CONST;
}
« no previous file with comments | « src/deoptimize-reason.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698