Index: src/x87/lithium-codegen-x87.cc |
diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc |
index f6f5958f50add4e7e70d26a865a066112712eaef..4c2a15afcfa8f224d28c5a28e3167d5d6b2456c3 100644 |
--- a/src/x87/lithium-codegen-x87.cc |
+++ b/src/x87/lithium-codegen-x87.cc |
@@ -2855,9 +2855,9 @@ void LCodeGen::EmitClassOfTest(Label* is_true, |
// Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range. |
// Check if the constructor in the map is a function. |
- __ mov(temp, FieldOperand(temp, Map::kConstructorOffset)); |
+ __ GetMapConstructor(temp, temp, temp2); |
// Objects with a non-function constructor have class 'Object'. |
- __ CmpObjectType(temp, JS_FUNCTION_TYPE, temp2); |
+ __ CmpInstanceType(temp2, JS_FUNCTION_TYPE); |
if (String::Equals(class_name, isolate()->factory()->Object_string())) { |
__ j(not_equal, is_true); |
} else { |