| 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 ee9b40eb353a255e488b7c2228fa499198e160ea..d06bc305e2fc5682bc0ab9a75194ac96b897c52e 100644
|
| --- a/src/compiler/mips/code-generator-mips.cc
|
| +++ b/src/compiler/mips/code-generator-mips.cc
|
| @@ -2013,10 +2013,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);
|
|
|