Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 35e3bad8a42d0228d87f59e57bbbcadffe25c6ed..2934ff5855c067226889254b8a84bf909c127896 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12168,8 +12168,8 @@ void HOptimizedGraphBuilder::GenerateIsFunction(CallRuntime* call) { |
DCHECK(call->arguments()->length() == 1); |
CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
HValue* value = Pop(); |
- HHasInstanceTypeAndBranch* result = |
- New<HHasInstanceTypeAndBranch>(value, JS_FUNCTION_TYPE); |
+ HHasInstanceTypeAndBranch* result = New<HHasInstanceTypeAndBranch>( |
+ value, FIRST_FUNCTION_TYPE, LAST_FUNCTION_TYPE); |
return ast_context()->ReturnControl(result, call->id()); |
} |