| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2672 v->VisitPointer(bit_cast<Object**, String**>(&name##_)); | 2672 v->VisitPointer(bit_cast<Object**, String**>(&name##_)); |
| 2673 SYMBOL_LIST(SYMBOL_ITERATE) | 2673 SYMBOL_LIST(SYMBOL_ITERATE) |
| 2674 #undef SYMBOL_ITERATE | 2674 #undef SYMBOL_ITERATE |
| 2675 v->VisitPointer(bit_cast<Object**, String**>(&hidden_symbol_)); | 2675 v->VisitPointer(bit_cast<Object**, String**>(&hidden_symbol_)); |
| 2676 SYNCHRONIZE_TAG("symbol"); | 2676 SYNCHRONIZE_TAG("symbol"); |
| 2677 | 2677 |
| 2678 Bootstrapper::Iterate(v); | 2678 Bootstrapper::Iterate(v); |
| 2679 SYNCHRONIZE_TAG("bootstrapper"); | 2679 SYNCHRONIZE_TAG("bootstrapper"); |
| 2680 Top::Iterate(v); | 2680 Top::Iterate(v); |
| 2681 SYNCHRONIZE_TAG("top"); | 2681 SYNCHRONIZE_TAG("top"); |
| 2682 |
| 2683 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 2682 Debug::Iterate(v); | 2684 Debug::Iterate(v); |
| 2685 #endif |
| 2683 SYNCHRONIZE_TAG("debug"); | 2686 SYNCHRONIZE_TAG("debug"); |
| 2684 CompilationCache::Iterate(v); | 2687 CompilationCache::Iterate(v); |
| 2685 SYNCHRONIZE_TAG("compilationcache"); | 2688 SYNCHRONIZE_TAG("compilationcache"); |
| 2686 | 2689 |
| 2687 // Iterate over local handles in handle scopes. | 2690 // Iterate over local handles in handle scopes. |
| 2688 HandleScopeImplementer::Iterate(v); | 2691 HandleScopeImplementer::Iterate(v); |
| 2689 SYNCHRONIZE_TAG("handlescope"); | 2692 SYNCHRONIZE_TAG("handlescope"); |
| 2690 | 2693 |
| 2691 // Iterate over the builtin code objects and code stubs in the heap. Note | 2694 // Iterate over the builtin code objects and code stubs in the heap. Note |
| 2692 // that it is not strictly necessary to iterate over code objects on | 2695 // that it is not strictly necessary to iterate over code objects on |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3384 #ifdef DEBUG | 3387 #ifdef DEBUG |
| 3385 bool Heap::GarbageCollectionGreedyCheck() { | 3388 bool Heap::GarbageCollectionGreedyCheck() { |
| 3386 ASSERT(FLAG_gc_greedy); | 3389 ASSERT(FLAG_gc_greedy); |
| 3387 if (Bootstrapper::IsActive()) return true; | 3390 if (Bootstrapper::IsActive()) return true; |
| 3388 if (disallow_allocation_failure()) return true; | 3391 if (disallow_allocation_failure()) return true; |
| 3389 return CollectGarbage(0, NEW_SPACE); | 3392 return CollectGarbage(0, NEW_SPACE); |
| 3390 } | 3393 } |
| 3391 #endif | 3394 #endif |
| 3392 | 3395 |
| 3393 } } // namespace v8::internal | 3396 } } // namespace v8::internal |
| OLD | NEW |