Fix GCMole issue.

TBR=ulan@chromium.org

Review URL: https://codereview.chromium.org/104383003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18416 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2013-12-24 08:03:03 +00:00
parent dd5c60e11c
commit fba409447d

View File

@ -2125,7 +2125,8 @@ void Debug::PrepareForBreakPoints() {
bool prev_force_debugger_active = bool prev_force_debugger_active =
isolate_->debugger()->force_debugger_active(); isolate_->debugger()->force_debugger_active();
isolate_->debugger()->set_force_debugger_active(true); isolate_->debugger()->set_force_debugger_active(true);
function->ReplaceCode(*Compiler::GetCodeForDebugging(function)); Handle<Code> code = Compiler::GetCodeForDebugging(function);
function->ReplaceCode(*code);
isolate_->debugger()->set_force_debugger_active( isolate_->debugger()->set_force_debugger_active(
prev_force_debugger_active); prev_force_debugger_active);
} }