| Index: src/full-codegen/arm/full-codegen-arm.cc
|
| diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
|
| index 27985fbe490775c671541d78c35c8c35b0d9fb9c..81c5ff2ae7704aef4924ced8f5e2d8725c3d1acc 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -3000,9 +3000,10 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
|
| // Map is now in r0.
|
| __ b(lt, &null);
|
|
|
| - // Return 'Function' for JSFunction objects.
|
| - __ cmp(r1, Operand(JS_FUNCTION_TYPE));
|
| - __ b(eq, &function);
|
| + // Return 'Function' for JSFunction and JSBoundFunction objects.
|
| + __ cmp(r1, Operand(FIRST_FUNCTION_TYPE));
|
| + STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE);
|
| + __ b(hs, &function);
|
|
|
| // Check if the constructor in the map is a JS function.
|
| Register instance_type = r2;
|
|
|