Commit 940dc679 authored by ulan@chromium.org's avatar ulan@chromium.org

A64: fix restoring of registers in deopt_every_n_times.

BUG=352656
LOG=N
R=jochen@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19947 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0fa1ebbb
...@@ -1010,7 +1010,7 @@ void LCodeGen::DeoptimizeBranch( ...@@ -1010,7 +1010,7 @@ void LCodeGen::DeoptimizeBranch(
__ B(gt, &not_zero); __ B(gt, &not_zero);
__ Mov(w1, FLAG_deopt_every_n_times); __ Mov(w1, FLAG_deopt_every_n_times);
__ Str(w1, MemOperand(x0)); __ Str(w1, MemOperand(x0));
__ Pop(x0, x1, x2); __ Pop(x2, x1, x0);
ASSERT(frame_is_built_); ASSERT(frame_is_built_);
__ Call(entry, RelocInfo::RUNTIME_ENTRY); __ Call(entry, RelocInfo::RUNTIME_ENTRY);
__ Unreachable(); __ Unreachable();
...@@ -1018,7 +1018,7 @@ void LCodeGen::DeoptimizeBranch( ...@@ -1018,7 +1018,7 @@ void LCodeGen::DeoptimizeBranch(
__ Bind(&not_zero); __ Bind(&not_zero);
__ Str(w1, MemOperand(x0)); __ Str(w1, MemOperand(x0));
__ Msr(NZCV, x2); __ Msr(NZCV, x2);
__ Pop(x0, x1, x2); __ Pop(x2, x1, x0);
} }
if (info()->ShouldTrapOnDeopt()) { if (info()->ShouldTrapOnDeopt()) {
......
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