Index: src/crankshaft/x64/lithium-codegen-x64.cc |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc |
index 791bfb03f3de059213f2ec50cfb5ed3d76cd356d..62dddc55b3c1954496506e6df027a4bf2e49a3c7 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -2381,11 +2381,12 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
__ JumpIfSmi(input, is_false); |
- __ CmpObjectType(input, JS_FUNCTION_TYPE, temp); |
+ __ CmpObjectType(input, FIRST_FUNCTION_TYPE, temp); |
+ STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE); |
if (String::Equals(isolate()->factory()->Function_string(), class_name)) { |
- __ j(equal, is_true); |
+ __ j(above_equal, is_true); |
} else { |
- __ j(equal, is_false); |
+ __ j(above_equal, is_false); |
} |
// Check if the constructor in the map is a function. |