Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index e9e6621d2cac745cf5d9512289495c93ed415b3a..c4810f3682a7f71e910298a660dea9698951b94e 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -1820,10 +1820,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
case Constant::kHeapObject: { |
Handle<HeapObject> src_object = src.ToHeapObject(); |
Heap::RootListIndex index; |
- int slot; |
- if (IsMaterializableFromFrame(src_object, &slot)) { |
- __ ldr(dst, g.SlotToMemOperand(slot)); |
- } else if (IsMaterializableFromRoot(src_object, &index)) { |
+ if (IsMaterializableFromRoot(src_object, &index)) { |
__ LoadRoot(dst, index); |
} else { |
__ Move(dst, src_object); |