OLD | NEW |
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/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/ppc/frames-ppc.h" | 9 #include "src/ppc/frames-ppc.h" |
10 | 10 |
(...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2112 size_t input_count = 0; | 2112 size_t input_count = 0; |
2113 inputs[input_count++] = g.UseUniqueRegister(base); | 2113 inputs[input_count++] = g.UseUniqueRegister(base); |
2114 inputs[input_count++] = g.UseUniqueRegister(index); | 2114 inputs[input_count++] = g.UseUniqueRegister(index); |
2115 inputs[input_count++] = g.UseUniqueRegister(value); | 2115 inputs[input_count++] = g.UseUniqueRegister(value); |
2116 Emit(opcode | AddressingModeField::encode(kMode_MRR), | 2116 Emit(opcode | AddressingModeField::encode(kMode_MRR), |
2117 0, nullptr, input_count, inputs); | 2117 0, nullptr, input_count, inputs); |
2118 } | 2118 } |
2119 | 2119 |
2120 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); } | 2120 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); } |
2121 | 2121 |
| 2122 void InstructionSelector::VisitAtomicCompareExchange(Node* node) { |
| 2123 UNIMPLEMENTED(); |
| 2124 } |
| 2125 |
2122 // static | 2126 // static |
2123 MachineOperatorBuilder::Flags | 2127 MachineOperatorBuilder::Flags |
2124 InstructionSelector::SupportedMachineOperatorFlags() { | 2128 InstructionSelector::SupportedMachineOperatorFlags() { |
2125 return MachineOperatorBuilder::kFloat32RoundDown | | 2129 return MachineOperatorBuilder::kFloat32RoundDown | |
2126 MachineOperatorBuilder::kFloat64RoundDown | | 2130 MachineOperatorBuilder::kFloat64RoundDown | |
2127 MachineOperatorBuilder::kFloat32RoundUp | | 2131 MachineOperatorBuilder::kFloat32RoundUp | |
2128 MachineOperatorBuilder::kFloat64RoundUp | | 2132 MachineOperatorBuilder::kFloat64RoundUp | |
2129 MachineOperatorBuilder::kFloat32RoundTruncate | | 2133 MachineOperatorBuilder::kFloat32RoundTruncate | |
2130 MachineOperatorBuilder::kFloat64RoundTruncate | | 2134 MachineOperatorBuilder::kFloat64RoundTruncate | |
2131 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2135 MachineOperatorBuilder::kFloat64RoundTiesAway | |
2132 MachineOperatorBuilder::kWord32Popcnt | | 2136 MachineOperatorBuilder::kWord32Popcnt | |
2133 MachineOperatorBuilder::kWord64Popcnt; | 2137 MachineOperatorBuilder::kWord64Popcnt; |
2134 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. | 2138 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. |
2135 } | 2139 } |
2136 | 2140 |
2137 // static | 2141 // static |
2138 MachineOperatorBuilder::AlignmentRequirements | 2142 MachineOperatorBuilder::AlignmentRequirements |
2139 InstructionSelector::AlignmentRequirements() { | 2143 InstructionSelector::AlignmentRequirements() { |
2140 return MachineOperatorBuilder::AlignmentRequirements:: | 2144 return MachineOperatorBuilder::AlignmentRequirements:: |
2141 FullUnalignedAccessSupport(); | 2145 FullUnalignedAccessSupport(); |
2142 } | 2146 } |
2143 | 2147 |
2144 } // namespace compiler | 2148 } // namespace compiler |
2145 } // namespace internal | 2149 } // namespace internal |
2146 } // namespace v8 | 2150 } // namespace v8 |
OLD | NEW |