Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index 54930c79a61c653f2ae0f2560e263b858b743a50..89df5563e806a2de7ea534ec7b7f7a2af966f22a 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -1936,10 +1936,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
if (src.type() == Constant::kHeapObject) { |
Handle<HeapObject> src_object = src.ToHeapObject(); |
Heap::RootListIndex index; |
- int slot; |
- if (IsMaterializableFromFrame(src_object, &slot)) { |
- __ Ldr(dst, g.SlotToMemOperand(slot, masm())); |
- } else if (IsMaterializableFromRoot(src_object, &index)) { |
+ if (IsMaterializableFromRoot(src_object, &index)) { |
__ LoadRoot(dst, index); |
} else { |
__ LoadObject(dst, src_object); |