Index: src/full-codegen/s390/full-codegen-s390.cc |
diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc |
index 5341b4dfe84a607cd099192460a9f0eb977c0f95..ec20365a15e53ee4b8883c8c2f22d7b8fb80f4ab 100644 |
--- a/src/full-codegen/s390/full-codegen-s390.cc |
+++ b/src/full-codegen/s390/full-codegen-s390.cc |
@@ -2761,9 +2761,10 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
// Map is now in r2. |
__ blt(&null); |
- // Return 'Function' for JSFunction objects. |
- __ CmpP(r3, Operand(JS_FUNCTION_TYPE)); |
- __ beq(&function); |
+ // Return 'Function' for JSFunction and JSBoundFunction objects. |
+ __ CmpLogicalP(r3, 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 = r4; |