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 425ac7ea80f6b50c521b18e95af75fc03b527c9d..d5d01043dd306e22f123a7e6e573317d3f759a73 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -2496,11 +2496,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. |