Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index 9ef1faea3139ff6a20f8e42c1a73247e645fd604..d521fcd97c98c709ca3da5c06f492f51945d5c3c 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -3353,7 +3353,7 @@ void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
__ jmp(&entry); |
__ bind(&loop); |
__ movp(rdx, FieldOperand(r8, 0)); |
- __ Cmp(rdx, isolate()->factory()->value_of_string()); |
+ __ CompareRoot(rdx, Heap::kvalueOf_stringRootIndex); |
__ j(equal, if_false); |
__ addp(r8, Immediate(DescriptorArray::kDescriptorSize * kPointerSize)); |
__ bind(&entry); |