| Index: src/heap.cc
|
| ===================================================================
|
| --- src/heap.cc (revision 5173)
|
| +++ src/heap.cc (working copy)
|
| @@ -134,6 +134,7 @@
|
|
|
| #ifdef DEBUG
|
| bool Heap::allocation_allowed_ = true;
|
| +bool Heap::gc_allowed_ = true;
|
|
|
| int Heap::allocation_timeout_ = 0;
|
| bool Heap::disallow_allocation_failure_ = false;
|
| @@ -319,6 +320,9 @@
|
|
|
|
|
| void Heap::GarbageCollectionPrologue() {
|
| +#ifdef DEBUG
|
| + ASSERT(gc_allowed_);
|
| +#endif
|
| TranscendentalCache::Clear();
|
| ClearJSFunctionResultCaches();
|
| gc_count_++;
|
|
|