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

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

Issue 2733953004: PPC/s390: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: minor fix 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
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 2106
2107 InstructionOperand inputs[4]; 2107 InstructionOperand inputs[4];
2108 size_t input_count = 0; 2108 size_t input_count = 0;
2109 inputs[input_count++] = g.UseUniqueRegister(base); 2109 inputs[input_count++] = g.UseUniqueRegister(base);
2110 inputs[input_count++] = g.UseUniqueRegister(index); 2110 inputs[input_count++] = g.UseUniqueRegister(index);
2111 inputs[input_count++] = g.UseUniqueRegister(value); 2111 inputs[input_count++] = g.UseUniqueRegister(value);
2112 Emit(opcode | AddressingModeField::encode(kMode_MRR), 2112 Emit(opcode | AddressingModeField::encode(kMode_MRR),
2113 0, nullptr, input_count, inputs); 2113 0, nullptr, input_count, inputs);
2114 } 2114 }
2115 2115
2116 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); }
2117
2116 // static 2118 // static
2117 MachineOperatorBuilder::Flags 2119 MachineOperatorBuilder::Flags
2118 InstructionSelector::SupportedMachineOperatorFlags() { 2120 InstructionSelector::SupportedMachineOperatorFlags() {
2119 return MachineOperatorBuilder::kFloat32RoundDown | 2121 return MachineOperatorBuilder::kFloat32RoundDown |
2120 MachineOperatorBuilder::kFloat64RoundDown | 2122 MachineOperatorBuilder::kFloat64RoundDown |
2121 MachineOperatorBuilder::kFloat32RoundUp | 2123 MachineOperatorBuilder::kFloat32RoundUp |
2122 MachineOperatorBuilder::kFloat64RoundUp | 2124 MachineOperatorBuilder::kFloat64RoundUp |
2123 MachineOperatorBuilder::kFloat32RoundTruncate | 2125 MachineOperatorBuilder::kFloat32RoundTruncate |
2124 MachineOperatorBuilder::kFloat64RoundTruncate | 2126 MachineOperatorBuilder::kFloat64RoundTruncate |
2125 MachineOperatorBuilder::kFloat64RoundTiesAway | 2127 MachineOperatorBuilder::kFloat64RoundTiesAway |
2126 MachineOperatorBuilder::kWord32Popcnt | 2128 MachineOperatorBuilder::kWord32Popcnt |
2127 MachineOperatorBuilder::kWord64Popcnt; 2129 MachineOperatorBuilder::kWord64Popcnt;
2128 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 2130 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
2129 } 2131 }
2130 2132
2131 // static 2133 // static
2132 MachineOperatorBuilder::AlignmentRequirements 2134 MachineOperatorBuilder::AlignmentRequirements
2133 InstructionSelector::AlignmentRequirements() { 2135 InstructionSelector::AlignmentRequirements() {
2134 return MachineOperatorBuilder::AlignmentRequirements:: 2136 return MachineOperatorBuilder::AlignmentRequirements::
2135 FullUnalignedAccessSupport(); 2137 FullUnalignedAccessSupport();
2136 } 2138 }
2137 2139
2138 } // namespace compiler 2140 } // namespace compiler
2139 } // namespace internal 2141 } // namespace internal
2140 } // namespace v8 2142 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698