Commit fd0d9cf2 authored by chunyang.dai's avatar chunyang.dai Committed by Commit bot

X87: fix a check error for deoptimization.

   This CL is a fix for https://codereview.chromium.org/1411223010. (X87: fix
   the deoptimization issue.).

   ArchDeoptimize instruction may contains duplicated x87 double register as input
   parameters. So the scope check is not correct.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#31812}
parent 532ee45a
...@@ -422,11 +422,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { ...@@ -422,11 +422,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
double_register_param_count++; double_register_param_count++;
} }
} }
// Currently we use only one X87 register. If we use more X87 register // Currently we use only one X87 register. If double_register_param_count
// in the future. we need to generate the x87 layout according to the // is bigger than 1, it means duplicated double register is added to input
// used double registers. // of this instruction.
DCHECK(double_register_param_count < 2); if (double_register_param_count > 0) {
if (double_register_param_count == 1) {
x87_layout = (0 << 3) | 1; x87_layout = (0 << 3) | 1;
} }
// The layout of x87 register stack is loaded on the top of FPU register // The layout of x87 register stack is loaded on the top of FPU register
......
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