| Index: src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| index df459fc23f0d1e8bd9d8c68aca212fadf2dc4628..ae1ca1f1014b4618fca9f1d827876d826777badf 100644
|
| --- a/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| @@ -2235,11 +2235,12 @@ void LCodeGen::EmitClassOfTest(Label* is_true,
|
| DCHECK(!temp.is(temp2));
|
| __ 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);
|
| }
|
|
|
| // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range.
|
|
|