Index: src/crankshaft/hydrogen-instructions.cc |
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc |
index fb810ff16f12cdc2af37b50b54209a9aa8de67b6..4e1d6112526db4f36f4b7b86b83b6f1cc22c6f26 100644 |
--- a/src/crankshaft/hydrogen-instructions.cc |
+++ b/src/crankshaft/hydrogen-instructions.cc |
@@ -1553,6 +1553,9 @@ void HCheckInstanceType::GetCheckInterval(InstanceType* first, |
case IS_JS_ARRAY: |
*first = *last = JS_ARRAY_TYPE; |
return; |
+ case IS_JS_FUNCTION: |
+ *first = *last = JS_FUNCTION_TYPE; |
+ return; |
case IS_JS_DATE: |
*first = *last = JS_DATE_TYPE; |
return; |
@@ -1625,6 +1628,8 @@ const char* HCheckInstanceType::GetCheckName() const { |
switch (check_) { |
case IS_JS_RECEIVER: return "object"; |
case IS_JS_ARRAY: return "array"; |
+ case IS_JS_FUNCTION: |
+ return "function"; |
case IS_JS_DATE: |
return "date"; |
case IS_STRING: return "string"; |