Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.cc

Issue 2623633003: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: remove 0 extend for arm Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 } else { 2625 } else {
2626 InstructionOperand addr_reg = g.TempRegister(); 2626 InstructionOperand addr_reg = g.TempRegister();
2627 Emit(kMips64Dadd | AddressingModeField::encode(kMode_None), addr_reg, 2627 Emit(kMips64Dadd | AddressingModeField::encode(kMode_None), addr_reg,
2628 g.UseRegister(index), g.UseRegister(base)); 2628 g.UseRegister(index), g.UseRegister(base));
2629 // Emit desired store opcode, using temp addr_reg. 2629 // Emit desired store opcode, using temp addr_reg.
2630 Emit(opcode | AddressingModeField::encode(kMode_MRI), g.NoOutput(), 2630 Emit(opcode | AddressingModeField::encode(kMode_MRI), g.NoOutput(),
2631 addr_reg, g.TempImmediate(0), g.UseRegisterOrImmediateZero(value)); 2631 addr_reg, g.TempImmediate(0), g.UseRegisterOrImmediateZero(value));
2632 } 2632 }
2633 } 2633 }
2634 2634
2635 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); }
2636
2635 // static 2637 // static
2636 MachineOperatorBuilder::Flags 2638 MachineOperatorBuilder::Flags
2637 InstructionSelector::SupportedMachineOperatorFlags() { 2639 InstructionSelector::SupportedMachineOperatorFlags() {
2638 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; 2640 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags;
2639 return flags | MachineOperatorBuilder::kWord32Ctz | 2641 return flags | MachineOperatorBuilder::kWord32Ctz |
2640 MachineOperatorBuilder::kWord64Ctz | 2642 MachineOperatorBuilder::kWord64Ctz |
2641 MachineOperatorBuilder::kWord32Popcnt | 2643 MachineOperatorBuilder::kWord32Popcnt |
2642 MachineOperatorBuilder::kWord64Popcnt | 2644 MachineOperatorBuilder::kWord64Popcnt |
2643 MachineOperatorBuilder::kWord32ShiftIsSafe | 2645 MachineOperatorBuilder::kWord32ShiftIsSafe |
2644 MachineOperatorBuilder::kInt32DivIsSafe | 2646 MachineOperatorBuilder::kInt32DivIsSafe |
(...skipping 19 matching lines...) Expand all
2664 } else { 2666 } else {
2665 DCHECK(kArchVariant == kMips64r2); 2667 DCHECK(kArchVariant == kMips64r2);
2666 return MachineOperatorBuilder::AlignmentRequirements:: 2668 return MachineOperatorBuilder::AlignmentRequirements::
2667 NoUnalignedAccessSupport(); 2669 NoUnalignedAccessSupport();
2668 } 2670 }
2669 } 2671 }
2670 2672
2671 } // namespace compiler 2673 } // namespace compiler
2672 } // namespace internal 2674 } // namespace internal
2673 } // namespace v8 2675 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698