Reviewers: Rico,

Description:
Make heap iterable in PrepareForBreakPoints.


[email protected]
BUG=v8:1700
TEST=inspector/debugger/debugger-step-in.html


Please review this at http://codereview.chromium.org/7977004/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/debug.cc


Index: src/debug.cc
diff --git a/src/debug.cc b/src/debug.cc
index 6df7574287540f197f7cc5bd797ef5a0e6d82bd8..62f320237b66de850988e4fc9e53656fa4b2528d 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -1733,6 +1733,10 @@ void Debug::PrepareForBreakPoints() {
   if (!has_break_points_) {
     Deoptimizer::DeoptimizeAll();

+    // We are going to iterate heap to find all functions without
+    // debug break slots.
+    heap->CollectAllGarbage(Heap::kMakeHeapIterableMask);
+
     AssertNoAllocation no_allocation;
     Builtins* builtins = isolate_->builtins();
     Code* lazy_compile = builtins->builtin(Builtins::kLazyCompile);


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

Reply via email to