From: podivilov@chromium.org Date: Tue, 6 Jul 2010 12:10:49 +0000 (+0000) Subject: Do not create handle in BreakLocationIterator::ClearDebugBreakAtIC X-Git-Tag: upstream/4.7.83~21527 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae81e558fe0c331f4408edbceb2897aa6dd3927f;p=platform%2Fupstream%2Fv8.git 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 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5024 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/debug.cc b/src/debug.cc index 1dc6275..b8e0252 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -472,8 +472,9 @@ void BreakLocationIterator::ClearDebugBreakAtIC() { RelocInfo::Mode mode = rmode(); if (RelocInfo::IsCodeTarget(mode)) { + AssertNoAllocation nogc; Address target = original_rinfo()->target_address(); - Handle 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