Index: src/x87/full-codegen-x87.cc |
diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc |
index 3bfde7661e78f3bea11c345cfdc64bf03bb1892a..c2ac01546fd3970ecf27bace9c9ec18738b9a605 100644 |
--- a/src/x87/full-codegen-x87.cc |
+++ b/src/x87/full-codegen-x87.cc |
@@ -3652,8 +3652,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 |