From: chunyang.dai Date: Tue, 8 Sep 2015 03:27:11 +0000 (-0700) Subject: X87: initialize the FPU state for X87 in prologue. X-Git-Tag: upstream/4.7.83~414 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15cf7d6174b1620f5585589bc0abc3ce4a3fded6;p=platform%2Fupstream%2Fv8.git X87: initialize the FPU state for X87 in prologue. This CL is a fix for c0c3d866fb824290c24d4c2a14414019d844515f (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} --- diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc index d9e5169fd..1b5b176be 100644 --- a/src/x87/lithium-codegen-x87.cc +++ b/src/x87/lithium-codegen-x87.cc @@ -215,6 +215,10 @@ bool LCodeGen::GeneratePrologue() { } } } + + // Initailize FPU state. + __ fninit(); + return !is_aborted(); } @@ -278,9 +282,6 @@ void LCodeGen::DoPrologue(LPrologue* instr) { Comment(";;; End allocate local context"); } - // Initailize FPU state. - __ fninit(); - Comment(";;; Prologue end"); }