Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index 46495919c8193d08c1b847a4f0a303cc9bb640cd..319f99a54f0620724fc7a7dcb986ac2c0037ff7f 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -654,6 +654,10 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
void Builtins::Generate_InterpreterExitTrampoline(MacroAssembler* masm) { |
+ // Interpreter handler is turbofanned code, need to reset the FPU before |
+ // return |
+ __ fninit(); |
+ |
// The return value is in accumulator, which is already in eax. |
// Leave the frame (also dropping the register file). |