Index: src/x87/lithium-x87.cc |
diff --git a/src/x87/lithium-x87.cc b/src/x87/lithium-x87.cc |
index 290f4f21fa796d9b5d83dceae258f56f00c4d570..361b20be0b2fd2ffc8feec862de0c6870b821949 100644 |
--- a/src/x87/lithium-x87.cc |
+++ b/src/x87/lithium-x87.cc |
@@ -1148,6 +1148,7 @@ LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
switch (instr->op()) { |
case kMathFloor: return DoMathFloor(instr); |
case kMathRound: return DoMathRound(instr); |
+ case kMathFround: return DoMathFround(instr); |
case kMathAbs: return DoMathAbs(instr); |
case kMathLog: return DoMathLog(instr); |
case kMathExp: return DoMathExp(instr); |
@@ -1175,6 +1176,13 @@ LInstruction* LChunkBuilder::DoMathRound(HUnaryMathOperation* instr) { |
} |
+LInstruction* LChunkBuilder::DoMathFround(HUnaryMathOperation* instr) { |
+ LOperand* input = UseRegisterAtStart(instr->value()); |
+ LMathFround* result = new (zone()) LMathFround(input); |
+ return AssignEnvironment(DefineAsRegister(result)); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoMathAbs(HUnaryMathOperation* instr) { |
LOperand* context = UseAny(instr->context()); // Deferred use. |
LOperand* input = UseRegisterAtStart(instr->value()); |