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

Unified Diff: src/globals.h

Issue 2264283007: 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
« src/deoptimize-reason.h ('K') | « 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 IsDynamicVariableMode(VariableMode mode) {
inline bool IsDeclaredVariableMode(VariableMode mode) {
- return mode >= VAR && mode <= CONST;
+ STATIC_ASSERT(VAR == 0); // Implies that mode >= VAR.
Jakob Kummerow 2016/08/25 11:35:11 ../../src/globals.h:915:15: warning: comparison is
+ return mode <= CONST;
}
« src/deoptimize-reason.h ('K') | « src/deoptimize-reason.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698