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
This commit is contained in:
ulan@chromium.org 2013-02-19 12:37:19 +00:00
parent 86ce9a910e
commit 61bb1b78d3

View File

@ -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) {