Author: [email protected]
Date: Tue Apr 14 07:01:00 2009
New Revision: 1703

Modified:
    branches/bleeding_edge/src/heap.cc

Log:
Fix build issue on Mac.

Modified: branches/bleeding_edge/src/heap.cc
==============================================================================
--- branches/bleeding_edge/src/heap.cc  (original)
+++ branches/bleeding_edge/src/heap.cc  Tue Apr 14 07:01:00 2009
@@ -374,23 +374,26 @@
  }


-static void VerifySymbolTable() {
  #ifdef DEBUG
-  // Helper class for verifying the symbol table.
-  class SymbolTableVerifier : public ObjectVisitor {
-   public:
-    SymbolTableVerifier() { }
-    void VisitPointers(Object** start, Object** end) {
-      // Visit all HeapObject pointers in [start, end).
-      for (Object** p = start; p < end; p++) {
-        if ((*p)->IsHeapObject()) {
-          // Check that the symbol is actually a symbol.
-          ASSERT((*p)->IsNull() || (*p)->IsUndefined() ||  
(*p)->IsSymbol());
-        }
+// Helper class for verifying the symbol table.
+class SymbolTableVerifier : public ObjectVisitor {
+ public:
+  SymbolTableVerifier() { }
+  void VisitPointers(Object** start, Object** end) {
+    // Visit all HeapObject pointers in [start, end).
+    for (Object** p = start; p < end; p++) {
+      if ((*p)->IsHeapObject()) {
+        // Check that the symbol is actually a symbol.
+        ASSERT((*p)->IsNull() || (*p)->IsUndefined() || (*p)->IsSymbol());
        }
      }
-  };
+  }
+};
+#endif  // DEBUG
+

+static void VerifySymbolTable() {
+#ifdef DEBUG
    SymbolTableVerifier verifier;
    SymbolTable* symbol_table = SymbolTable::cast(Heap::symbol_table());
    symbol_table->IterateElements(&verifier);

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

Reply via email to