Commit 15cf7d61 authored by chunyang.dai's avatar chunyang.dai Committed by Commit bot

X87: initialize the FPU state for X87 in prologue.

   This CL is a fix for c0c3d866 (r30606).
   In r30606, initialization of FPU implementation is not moved to prologue
   generation correctly.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#30626}
parent 2ba06a0a
...@@ -215,6 +215,10 @@ bool LCodeGen::GeneratePrologue() { ...@@ -215,6 +215,10 @@ bool LCodeGen::GeneratePrologue() {
} }
} }
} }
// Initailize FPU state.
__ fninit();
return !is_aborted(); return !is_aborted();
} }
...@@ -278,9 +282,6 @@ void LCodeGen::DoPrologue(LPrologue* instr) { ...@@ -278,9 +282,6 @@ void LCodeGen::DoPrologue(LPrologue* instr) {
Comment(";;; End allocate local context"); Comment(";;; End allocate local context");
} }
// Initailize FPU state.
__ fninit();
Comment(";;; Prologue end"); Comment(";;; Prologue end");
} }
......
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