Index: src/crankshaft/hydrogen-types.cc |
diff --git a/src/crankshaft/hydrogen-types.cc b/src/crankshaft/hydrogen-types.cc |
index 773685b04c162daf927764815a2985c70a07b5f6..20d50d897c72de5981a57388f8024144792d8e56 100644 |
--- a/src/crankshaft/hydrogen-types.cc |
+++ b/src/crankshaft/hydrogen-types.cc |
@@ -38,7 +38,7 @@ HType HType::FromValue(Handle<Object> value) { |
if (raw_value->IsSmi()) return HType::Smi(); |
DCHECK(raw_value->IsHeapObject()); |
Isolate* isolate = HeapObject::cast(*value)->GetIsolate(); |
- if (raw_value->IsNull()) return HType::Null(); |
+ if (raw_value->IsNull(isolate)) return HType::Null(); |
if (raw_value->IsHeapNumber()) { |
double n = Handle<v8::internal::HeapNumber>::cast(value)->value(); |
return IsSmiDouble(n) ? HType::Smi() : HType::HeapNumber(); |