Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index ad6c84030d12759bbdcb2ff130045c228718e1ba..e1f2f500a3df15bee65a393eb5ec70abd4f9d373 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -2436,11 +2436,12 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
__ JumpIfSmi(input, is_false); |
- __ CompareObjectType(input, temp, temp2, JS_FUNCTION_TYPE); |
+ __ CompareObjectType(input, temp, temp2, FIRST_FUNCTION_TYPE); |
+ STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE); |
if (String::Equals(isolate()->factory()->Function_string(), class_name)) { |
- __ b(eq, is_true); |
+ __ b(hs, is_true); |
} else { |
- __ b(eq, is_false); |
+ __ b(hs, is_false); |
} |
// Check if the constructor in the map is a function. |