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 244363367165d9b9056492c5f56f4d7d55653cb1..fbda59b66c4a7cab35c9ce1850f2c5c33cab0366 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -2384,11 +2384,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. |