Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index 61d57bc46e8cae6a0ddc4669b99f71d3e48220c6..212f57b40e9b41193599587294b40626ffd2e6c3 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -2010,10 +2010,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)) { |
- __ lw(dst, g.SlotToMemOperand(slot)); |
- } else if (IsMaterializableFromRoot(src_object, &index)) { |
+ if (IsMaterializableFromRoot(src_object, &index)) { |
__ LoadRoot(dst, index); |
} else { |
__ li(dst, src_object); |