Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 8e69ca5317ea3192e815557e833d7ef3a67465ea..da2d13ebcdcd753ae12016ff4b8f1b8d104df9e4 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -2838,8 +2838,9 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
__ GetObjectType(v0, v0, a1); // Map is now in v0. |
__ Branch(&null, lt, a1, Operand(FIRST_JS_RECEIVER_TYPE)); |
- // Return 'Function' for JSFunction objects. |
- __ Branch(&function, eq, a1, Operand(JS_FUNCTION_TYPE)); |
+ // Return 'Function' for JSFunction and JSBoundFunction objects. |
+ STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE); |
+ __ Branch(&function, hs, a1, Operand(FIRST_FUNCTION_TYPE)); |
// Check if the constructor in the map is a JS function. |
Register instance_type = a2; |