Index: src/crankshaft/hydrogen-instructions.cc |
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc |
index 5e4ad3714aee9d7176fdc81e5b783b097d311b8d..fb810ff16f12cdc2af37b50b54209a9aa8de67b6 100644 |
--- a/src/crankshaft/hydrogen-instructions.cc |
+++ b/src/crankshaft/hydrogen-instructions.cc |
@@ -2412,7 +2412,7 @@ Maybe<HConstant*> HConstant::CopyToTruncatedNumber(Isolate* isolate, |
if (handle->IsBoolean()) { |
res = handle->BooleanValue() ? |
new(zone) HConstant(1) : new(zone) HConstant(0); |
- } else if (handle->IsUndefined()) { |
+ } else if (handle->IsUndefined(isolate)) { |
res = new (zone) HConstant(std::numeric_limits<double>::quiet_NaN()); |
} else if (handle->IsNull()) { |
res = new(zone) HConstant(0); |