| Index: src/compiler/x64/code-generator-x64.cc
|
| diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
|
| index b9247779931a47c9c74b125cba00d4c30e7a1b46..9af22f939b4f313029a8a88a06d5aa12aadd9e23 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -2533,10 +2533,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)) {
|
| - __ movp(dst, g.SlotToOperand(slot));
|
| - } else if (IsMaterializableFromRoot(src_object, &index)) {
|
| + if (IsMaterializableFromRoot(src_object, &index)) {
|
| __ LoadRoot(dst, index);
|
| } else {
|
| __ Move(dst, src_object);
|
|
|