Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index aafcd674ca30b74b71dd927f89d90458ebbb7090..04d451830d033300cebcda195b7774bd3386d1ab 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -2741,8 +2741,9 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) { |
__ B(lt, &null); |
// Return 'Function' for JSFunction objects. |
- __ Cmp(x11, JS_FUNCTION_TYPE); |
- __ B(eq, &function); |
+ __ Cmp(x11, 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 = x14; |