| 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 d578df6e8af9b8fd69d98d6468ce625e081bdbde..f1717ca47440683b2cad753acd7390e9ca68d3d0 100644
|
| --- a/src/crankshaft/mips/lithium-codegen-mips.cc
|
| +++ b/src/crankshaft/mips/lithium-codegen-mips.cc
|
| @@ -2351,10 +2351,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.
|
|
|