Move STATIC_ASSERT to IsShortcutCandidate to fix the

broken build.

TBR=ager@chromium.org
Review URL: http://codereview.chromium.org/67126

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1700 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
kasperl@chromium.org 2009-04-14 12:10:32 +00:00
parent bca37da6af
commit 5decd39b51
2 changed files with 1 additions and 1 deletions

View File

@ -839,6 +839,7 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
static inline bool IsShortcutCandidate(HeapObject* object, Map* map) {
STATIC_ASSERT(kNotStringTag != 0 && kSymbolTag != 0);
ASSERT(object->map() == map);
InstanceType type = map->instance_type();
if ((type & kShortcutTypeMask) != kShortcutTypeTag) return false;

View File

@ -447,7 +447,6 @@ enum StringRepresentationTag {
// symbol. It's not common to have non-flat symbols, so we do not
// shortcut them thereby avoiding turning symbols into strings. See
// heap.cc and mark-compact.cc.
STATIC_ASSERT(kNotStringTag != 0 && kSymbolTag != 0);
const uint32_t kShortcutTypeMask =
kIsNotStringMask |
kIsSymbolMask |