Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 7094da33b843781201af433c25a81da3b057c250..8ec4fed005db342991899ec6fc59ad12e1b53f13 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -4502,8 +4502,8 @@ bool ToBooleanICStub::Types::UpdateStatus(Isolate* isolate, |
return false; |
} else if (object->IsBoolean()) { |
Add(BOOLEAN); |
- return object->IsTrue(); |
- } else if (object->IsNull()) { |
+ return object->IsTrue(isolate); |
+ } else if (object->IsNull(isolate)) { |
Add(NULL_TYPE); |
return false; |
} else if (object->IsSmi()) { |