Use the "enum hack" to fix the SmiTagging constants.
authorbmeurer@chromium.org <bmeurer@chromium.org>
Mon, 1 Sep 2014 10:24:04 +0000 (10:24 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org>
Mon, 1 Sep 2014 10:24:04 +0000 (10:24 +0000)
commit40da0e5ee62b07196f7dad19066be28202bfb12c
tree268db74894ffea3eaee0dbd4fddd4d7d2aa81ed8
parent5fe360b9cdda16b6b1c886b84454ba22fabf0910
Use the "enum hack" to fix the SmiTagging constants.

The "enum hack" (see Item 2 of "Effective C++") is the only known
portable way to define constant integral values within template
classes. Fixes the weird work-arounds required for certain GCC
versions.

R=jarin@chromium.org, rossberg@chromium.org

Review URL: https://codereview.chromium.org/527603002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23550 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8.h
src/compiler/change-lowering.cc
test/compiler-unittests/change-lowering-unittest.cc