| Index: src/crankshaft/s390/lithium-codegen-s390.cc
|
| diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc
|
| index 6b4b3881b8416371ad7bc7ff2fd585915d674828..689f4bc1ae8065a2909e1071964158e9643c8c4d 100644
|
| --- a/src/crankshaft/s390/lithium-codegen-s390.cc
|
| +++ b/src/crankshaft/s390/lithium-codegen-s390.cc
|
| @@ -2485,11 +2485,12 @@ void LCodeGen::EmitClassOfTest(Label* is_true, Label* is_false,
|
|
|
| __ 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)) {
|
| - __ beq(is_true);
|
| + __ bge(is_true);
|
| } else {
|
| - __ beq(is_false);
|
| + __ bge(is_false);
|
| }
|
|
|
| // Check if the constructor in the map is a function.
|
|
|