Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 90ca2005a2394dfd8879bdd3066637d993baca29..35037d71fabd3f053f401d413726ca5ed51aae38 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -3024,9 +3024,9 @@ void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) { |
&if_true, &if_false, &fall_through); |
__ JumpIfSmi(eax, if_false); |
- __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); |
+ __ CmpObjectType(eax, FIRST_FUNCTION_TYPE, ebx); |
PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- Split(equal, if_true, if_false, fall_through); |
+ Split(above_equal, if_true, if_false, fall_through); |
context()->Plug(if_true, if_false); |
} |