Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index b408a4850cef1cf74fc5b61bc050834845ba002e..cfae0175d97a4ab73fe42bd5140647561a7fa6cc 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -2723,9 +2723,10 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
__ CmpObjectType(eax, FIRST_JS_RECEIVER_TYPE, eax); |
__ j(below, &null, Label::kNear); |
- // Return 'Function' for JSFunction objects. |
- __ CmpInstanceType(eax, JS_FUNCTION_TYPE); |
- __ j(equal, &function, Label::kNear); |
+ // Return 'Function' for JSFunction and JSBoundFunction objects. |
+ __ CmpInstanceType(eax, FIRST_FUNCTION_TYPE); |
+ STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE); |
+ __ j(above_equal, &function, Label::kNear); |
// Check if the constructor in the map is a JS function. |
__ GetMapConstructor(eax, eax, ebx); |