Author: [email protected]
Date: Tue Apr 14 05:10:32 2009
New Revision: 1700

Modified:
    branches/bleeding_edge/src/heap.cc
    branches/bleeding_edge/src/objects.h

Log:
Move STATIC_ASSERT to IsShortcutCandidate to fix the
broken build.

[email protected]
Review URL: http://codereview.chromium.org/67126

Modified: branches/bleeding_edge/src/heap.cc
==============================================================================
--- branches/bleeding_edge/src/heap.cc  (original)
+++ branches/bleeding_edge/src/heap.cc  Tue Apr 14 05:10:32 2009
@@ -839,6 +839,7 @@


  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;

Modified: branches/bleeding_edge/src/objects.h
==============================================================================
--- branches/bleeding_edge/src/objects.h        (original)
+++ branches/bleeding_edge/src/objects.h        Tue Apr 14 05:10:32 2009
@@ -447,7 +447,6 @@
  // 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 |

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

Reply via email to