Commit 66f7a367 authored by kasperl@chromium.org's avatar kasperl@chromium.org

Fix build issue on Mac.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1703 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 38382185
...@@ -374,10 +374,9 @@ void Heap::PerformScavenge() { ...@@ -374,10 +374,9 @@ void Heap::PerformScavenge() {
} }
static void VerifySymbolTable() {
#ifdef DEBUG #ifdef DEBUG
// Helper class for verifying the symbol table. // Helper class for verifying the symbol table.
class SymbolTableVerifier : public ObjectVisitor { class SymbolTableVerifier : public ObjectVisitor {
public: public:
SymbolTableVerifier() { } SymbolTableVerifier() { }
void VisitPointers(Object** start, Object** end) { void VisitPointers(Object** start, Object** end) {
...@@ -389,8 +388,12 @@ static void VerifySymbolTable() { ...@@ -389,8 +388,12 @@ static void VerifySymbolTable() {
} }
} }
} }
}; };
#endif // DEBUG
static void VerifySymbolTable() {
#ifdef DEBUG
SymbolTableVerifier verifier; SymbolTableVerifier verifier;
SymbolTable* symbol_table = SymbolTable::cast(Heap::symbol_table()); SymbolTable* symbol_table = SymbolTable::cast(Heap::symbol_table());
symbol_table->IterateElements(&verifier); symbol_table->IterateElements(&verifier);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment