Commit d18f1baf authored by rmcilroy@chromium.org's avatar rmcilroy@chromium.org

Fix for constant pool support and debug

RedirectActivationsToRecompiledCodeOnThread must also patch frame's
constant pool.

Reference: https://github.com/andrewlow/v8ppc/commit/329d72fd

BUG=
R=rmcilroy@chromium.org

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

Patch from Andrew Low <andrew_low@ca.ibm.com>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22701 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d07de6ed
......@@ -1890,6 +1890,11 @@ static void RedirectActivationsToRecompiledCodeOnThread(
reinterpret_cast<intptr_t>(new_pc));
}
if (FLAG_enable_ool_constant_pool) {
// Update constant pool pointer for new code.
frame->set_constant_pool(new_code->constant_pool());
}
// Patch the return address to return into the code with
// debug break slots.
frame->set_pc(new_pc);
......
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