Revision: 5024
Author: [email protected]
Date: Tue Jul  6 05:10:49 2010
Log: Do not create handle in BreakLocationIterator::ClearDebugBreakAtIC

Debug::HandleWeakDebugInfo weak callback is crashed when there is no handle scopes on the stack.

Review URL: http://codereview.chromium.org/2835035
http://code.google.com/p/v8/source/detail?r=5024

Modified:
 /branches/bleeding_edge/src/debug.cc

=======================================
--- /branches/bleeding_edge/src/debug.cc        Thu Jul  1 04:48:45 2010
+++ /branches/bleeding_edge/src/debug.cc        Tue Jul  6 05:10:49 2010
@@ -472,8 +472,9 @@

   RelocInfo::Mode mode = rmode();
   if (RelocInfo::IsCodeTarget(mode)) {
+    AssertNoAllocation nogc;
     Address target = original_rinfo()->target_address();
-    Handle<Code> code(Code::GetCodeFromTargetAddress(target));
+    Code* code = Code::GetCodeFromTargetAddress(target);

     // Restore the inlined version of keyed stores to get back to the
     // fast case.  We need to patch back the keyed store because no

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

Reply via email to