Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 66229237ddb407b9ebc172a3b3650163ca259ed4..598ed81c485d3cf68bb188f89579bdc51bdc79ad 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -2839,8 +2839,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; |