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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: dmb 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 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); } 2635 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); }
2636 2636
2637 void InstructionSelector::VisitAtomicCompareExchange(Node* node) {
2638 UNIMPLEMENTED();
2639 }
2640
2637 // static 2641 // static
2638 MachineOperatorBuilder::Flags 2642 MachineOperatorBuilder::Flags
2639 InstructionSelector::SupportedMachineOperatorFlags() { 2643 InstructionSelector::SupportedMachineOperatorFlags() {
2640 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; 2644 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags;
2641 return flags | MachineOperatorBuilder::kWord32Ctz | 2645 return flags | MachineOperatorBuilder::kWord32Ctz |
2642 MachineOperatorBuilder::kWord64Ctz | 2646 MachineOperatorBuilder::kWord64Ctz |
2643 MachineOperatorBuilder::kWord32Popcnt | 2647 MachineOperatorBuilder::kWord32Popcnt |
2644 MachineOperatorBuilder::kWord64Popcnt | 2648 MachineOperatorBuilder::kWord64Popcnt |
2645 MachineOperatorBuilder::kWord32ShiftIsSafe | 2649 MachineOperatorBuilder::kWord32ShiftIsSafe |
2646 MachineOperatorBuilder::kInt32DivIsSafe | 2650 MachineOperatorBuilder::kInt32DivIsSafe |
(...skipping 19 matching lines...) Expand all
2666 } else { 2670 } else {
2667 DCHECK(kArchVariant == kMips64r2); 2671 DCHECK(kArchVariant == kMips64r2);
2668 return MachineOperatorBuilder::AlignmentRequirements:: 2672 return MachineOperatorBuilder::AlignmentRequirements::
2669 NoUnalignedAccessSupport(); 2673 NoUnalignedAccessSupport();
2670 } 2674 }
2671 } 2675 }
2672 2676
2673 } // namespace compiler 2677 } // namespace compiler
2674 } // namespace internal 2678 } // namespace internal
2675 } // namespace v8 2679 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698