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 fede21f48fe8e2d129d4b1929f0f2bc91045d8f5..9f8ccec37412c31e1653e6afc917ca8b882f44b0 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -2866,9 +2866,9 @@ void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) { |
&if_true, &if_false, &fall_through); |
__ JumpIfSmi(x0, if_false); |
- __ CompareObjectType(x0, x10, x11, JS_FUNCTION_TYPE); |
+ __ CompareObjectType(x0, x10, x11, FIRST_FUNCTION_TYPE); |
PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- Split(eq, if_true, if_false, fall_through); |
+ Split(hs, if_true, if_false, fall_through); |
context()->Plug(if_true, if_false); |
} |