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