| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index b76592238d732a643d98f0cd32649feb6f875891..e2e7b4c87f5c3e3f00921d66fbb269749d3e1a33 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -3667,8 +3667,8 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
|
| STATIC_ASSERT(LAST_NONCALLABLE_SPEC_OBJECT_TYPE == LAST_TYPE - 1);
|
|
|
| // Check if the constructor in the map is a JS function.
|
| - __ mov(eax, FieldOperand(eax, Map::kConstructorOffset));
|
| - __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx);
|
| + __ GetMapConstructor(eax, eax, ebx);
|
| + __ CmpInstanceType(ebx, JS_FUNCTION_TYPE);
|
| __ j(not_equal, &non_function_constructor);
|
|
|
| // eax now contains the constructor function. Grab the
|
|
|