Index: src/stub-cache.h |
diff --git a/src/stub-cache.h b/src/stub-cache.h |
index adfa44a3ef01a8e4ff794bffb66a1c9d57986450..91f340933cfc7c4dc512085aa123c3d3b5df480a 100644 |
--- a/src/stub-cache.h |
+++ b/src/stub-cache.h |
@@ -1037,7 +1037,7 @@ class CallOptimization BASE_EMBEDDED { |
bool IsCompatibleReceiver(Object* receiver) { |
ASSERT(is_simple_api_call()); |
if (expected_receiver_type_.is_null()) return true; |
- return receiver->IsInstanceOf(*expected_receiver_type_); |
+ return expected_receiver_type_->IsTemplateFor(receiver); |
} |
private: |