Commit 61bb1b78 authored by ulan@chromium.org's avatar ulan@chromium.org

Remove bogus check for TOP register in deoptimizer.

R=danno@chromium.org
BUG=176943

Review URL: https://chromiumcodereview.appspot.com/12300020

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13690 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 86ce9a91
......@@ -1214,15 +1214,10 @@ void Deoptimizer::EntryGenerator::Generate() {
}
}
// Check that the TOP register is zero and clear all exceptions.
const int kTopMask = 0x3800;
__ push(eax);
__ fwait();
__ fnstsw_ax();
__ test(eax, Immediate(kTopMask));
__ Check(zero, "FPU TOP is not zero in deoptimizer.");
// Clear FPU all exceptions.
// TODO(ulan): Find out why the TOP register is not zero here in some cases,
// and check that the generated code never deoptimizes with unbalanced stack.
__ fnclex();
__ pop(eax);
// Remove the bailout id and the double registers from the stack.
if (type() == EAGER) {
......
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