Reviewers: fschneider,

Description:
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.

[email protected]
BUG=
TEST=


Please review this at http://codereview.chromium.org/7787028/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/arm/ic-arm.cc
  M src/arm/macro-assembler-arm.cc
  M src/compiler.h
  M src/ia32/ic-ia32.cc
  M src/ia32/macro-assembler-ia32.cc
  M src/lithium.h
  M src/mips/ic-mips.cc
  M src/mips/macro-assembler-mips.cc
  M src/objects-inl.h
  M src/objects.h
  M src/safepoint-table.cc
  M src/stub-cache.h
  M src/stub-cache.cc
  M src/utils.h
  M src/x64/ic-x64.cc
  M src/x64/macro-assembler-x64.cc


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to