| 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 5e1ef6ba1a6994d3bd4ef1396a7f8712ad19492a..49a097b3bb025944cada50efb698239b09a2b8c5 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -2477,10 +2477,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);
|
|
|