| Index: src/ia32/full-codegen-ia32.cc
|
| ===================================================================
|
| --- src/ia32/full-codegen-ia32.cc (revision 4715)
|
| +++ src/ia32/full-codegen-ia32.cc (working copy)
|
| @@ -2220,9 +2220,7 @@
|
|
|
| // Check that the object is a JS object but take special care of JS
|
| // functions to make sure they have 'Function' as their class.
|
| - __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset));
|
| - __ movzx_b(ebx, FieldOperand(eax, Map::kInstanceTypeOffset));
|
| - __ cmp(ebx, FIRST_JS_OBJECT_TYPE);
|
| + __ CmpObjectType(eax, FIRST_JS_OBJECT_TYPE, eax); // Map is now in eax.
|
| __ j(below, &null);
|
|
|
| // As long as JS_FUNCTION_TYPE is the last instance type and it is
|
|
|