From 3c012436d79e695faa5be6253f93a803d64c81b9 Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Tue, 11 Feb 2014 07:05:47 +0000 Subject: [PATCH] Fix Windows build. R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/152813006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19250 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen-gvn.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hydrogen-gvn.h b/src/hydrogen-gvn.h index 3da3ecfbf0..cb83354a7e 100644 --- a/src/hydrogen-gvn.h +++ b/src/hydrogen-gvn.h @@ -44,7 +44,9 @@ class SideEffects V8_FINAL { public: static const int kNumberOfSpecials = 64 - kNumberOfFlags; - SideEffects() : bits_(0) {} + SideEffects() : bits_(0) { + ASSERT(kNumberOfFlags + kNumberOfSpecials == sizeof(bits_) * CHAR_BIT); + } explicit SideEffects(GVNFlagSet flags) : bits_(flags.ToIntegral()) {} bool IsEmpty() const { return bits_ == 0; } bool ContainsFlag(GVNFlag flag) const { @@ -74,7 +76,6 @@ class SideEffects V8_FINAL { } uint64_t bits_; - STATIC_ASSERT(kNumberOfFlags + kNumberOfSpecials == sizeof(bits_) * CHAR_BIT); };