Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index a9ec2aa3bfb9d09bc80a82c97cccc2f4ff0e9533..55ac3f5f9185b52e23d46e75460d66546e2aa0db 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -3169,7 +3169,7 @@ void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
// string "valueOf" the result is false. |
Register valueof_string = x1; |
int descriptor_size = DescriptorArray::kDescriptorSize * kPointerSize; |
- __ Mov(valueof_string, Operand(isolate()->factory()->value_of_string())); |
+ __ LoadRoot(valueof_string, Heap::kvalueOf_stringRootIndex); |
__ Bind(&loop); |
__ Ldr(x15, MemOperand(descriptors, descriptor_size, PostIndex)); |
__ Cmp(x15, valueof_string); |