Use the BitField class for Code::Flags.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 12 Sep 2011 10:50:50 +0000 (10:50 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 12 Sep 2011 10:50:50 +0000 (10:50 +0000)
commit636991a0b329d7d27738f2f50fac5f34d485ec8a
tree21805ef00cb92554342fa3bb0fbab8fd4204e53e
parent57b9e9d968ed703212c466f44f7162852e3b2100
Use the BitField class for Code::Flags.

Use the BitField helper class for the code flags, so that we do not have to
define both a shift and a mask explicitly.  This makes changing the flags
layout simpler.

Also, make the 'mask' and 'max' members of BitField into constants, because
they are constant and so that they can be used as constant expressions.
E.g., so they can be used in declaring other const members or in static
asserts.

R=fschneider@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/7787028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9232 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
16 files changed:
src/arm/ic-arm.cc
src/arm/macro-assembler-arm.cc
src/compiler.h
src/ia32/ic-ia32.cc
src/ia32/macro-assembler-ia32.cc
src/lithium.h
src/mips/ic-mips.cc
src/mips/macro-assembler-mips.cc
src/objects-inl.h
src/objects.h
src/safepoint-table.cc
src/stub-cache.cc
src/stub-cache.h
src/utils.h
src/x64/ic-x64.cc
src/x64/macro-assembler-x64.cc