Index: src/compiler/representation-change.h |
diff --git a/src/compiler/representation-change.h b/src/compiler/representation-change.h |
index 6ec4b86bb4e90a2fd52ac81fe3f12394ec278f21..9538684af2339a20033d12fdad3c45d72872da41 100644 |
--- a/src/compiler/representation-change.h |
+++ b/src/compiler/representation-change.h |
@@ -232,13 +232,13 @@ class RepresentationChanger { |
// Select the correct X -> Word32 truncation operator. |
const Operator* op = NULL; |
if (output_type & kRepFloat64) { |
- op = machine()->TruncateFloat64ToInt32(); |
+ op = machine()->TruncateFloat64ToInt32(TruncationMode::kJavaScript); |
} else if (output_type & kRepFloat32) { |
node = InsertChangeFloat32ToFloat64(node); |
- op = machine()->TruncateFloat64ToInt32(); |
+ op = machine()->TruncateFloat64ToInt32(TruncationMode::kJavaScript); |
} else if (output_type & kRepTagged) { |
node = InsertChangeTaggedToFloat64(node); |
- op = machine()->TruncateFloat64ToInt32(); |
+ op = machine()->TruncateFloat64ToInt32(TruncationMode::kJavaScript); |
} else { |
return TypeError(node, output_type, kRepWord32); |
} |