Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 1cd869111b7e1c74cdab136402a72ec4fbc81233..de4b9fea26ed3e2a299e078b65aa9a4c1131593d 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -2493,11 +2493,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. |