Index: src/compiler/machine-operator.h |
diff --git a/src/compiler/machine-operator.h b/src/compiler/machine-operator.h |
index 4b2d3417613555748201384ae10cdfdec09db21f..402d48937a26b0b5321b2bc074cabb21e50267bc 100644 |
--- a/src/compiler/machine-operator.h |
+++ b/src/compiler/machine-operator.h |
@@ -134,6 +134,9 @@ class MachineOperatorBuilder { |
Operator* ChangeInt32ToInt64() { UNOP(ChangeInt32ToInt64); } |
Operator* ChangeUint32ToUint64() { UNOP(ChangeUint32ToUint64); } |
+ // Truncate double to int32 using JavaScript semantics. |
+ Operator* TruncateFloat64ToInt32() { UNOP(TruncateFloat64ToInt32); } |
+ |
// Truncate the high order bits and convert the remaining bits to int32. |
Operator* TruncateInt64ToInt32() { UNOP(TruncateInt64ToInt32); } |