Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 3117d287729a1dda96f259c04c4720cdee3b7e45..b5c4868f0505a351ac77548b3e0baf4b7c619520 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -2829,9 +2829,10 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
// Map is now in r3. |
__ blt(&null); |
- // Return 'Function' for JSFunction objects. |
- __ cmpi(r4, Operand(JS_FUNCTION_TYPE)); |
- __ beq(&function); |
+ // Return 'Function' for JSFunction and JSBoundFunction objects. |
+ __ cmpli(r4, Operand(FIRST_FUNCTION_TYPE)); |
+ STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE); |
+ __ bge(&function); |
// Check if the constructor in the map is a JS function. |
Register instance_type = r5; |