Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index faf9e74dcf3a66e4be499e655ef6915ab816ff91..a5b065289d829a1f9b5fbe23399433c0cd04eaca 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -3666,8 +3666,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. |
- __ movp(rax, FieldOperand(rax, Map::kConstructorOffset)); |
- __ CmpObjectType(rax, JS_FUNCTION_TYPE, rbx); |
+ __ GetMapConstructor(rax, rax, rbx); |
+ __ CmpInstanceType(rbx, JS_FUNCTION_TYPE); |
__ j(not_equal, &non_function_constructor); |
// rax now contains the constructor function. Grab the |