Index: src/compiler/s390/code-generator-s390.cc |
diff --git a/src/compiler/s390/code-generator-s390.cc b/src/compiler/s390/code-generator-s390.cc |
index 4d9553c16ff26cfb0d227da4517df88778aed926..6ead82b211fdc1889f82f961978688a6ee8a67b4 100644 |
--- a/src/compiler/s390/code-generator-s390.cc |
+++ b/src/compiler/s390/code-generator-s390.cc |
@@ -2379,10 +2379,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)) { |
- __ LoadP(dst, g.SlotToMemOperand(slot)); |
- } else if (IsMaterializableFromRoot(src_object, &index)) { |
+ if (IsMaterializableFromRoot(src_object, &index)) { |
__ LoadRoot(dst, index); |
} else { |
__ Move(dst, src_object); |