Commit fba40944 authored by yangguo@chromium.org's avatar yangguo@chromium.org

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
parent dd5c60e1
......@@ -2125,7 +2125,8 @@ void Debug::PrepareForBreakPoints() {
bool prev_force_debugger_active =
isolate_->debugger()->force_debugger_active();
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(
prev_force_debugger_active);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment