Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index 98ab78c1c4b7188392919b25c5eae1f062a58581..3d45cbd7a0a808c0fc52fa0866b82bec013f6756 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -2250,11 +2250,12 @@ void LCodeGen::DoClassOfTestAndBranch(LClassOfTestAndBranch* instr) { |
__ JumpIfSmi(input, false_label); |
Register map = scratch2; |
- __ CompareObjectType(input, map, scratch1, JS_FUNCTION_TYPE); |
+ __ CompareObjectType(input, map, scratch1, FIRST_FUNCTION_TYPE); |
+ STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE); |
if (String::Equals(isolate()->factory()->Function_string(), class_name)) { |
- __ B(eq, true_label); |
+ __ B(hs, true_label); |
} else { |
- __ B(eq, false_label); |
+ __ B(hs, false_label); |
} |
// Check if the constructor in the map is a function. |