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

Side by Side Diff: src/compiler/x64/instruction-scheduler-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/instruction-scheduler.h" 5 #include "src/compiler/instruction-scheduler.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 case kX64Movss: 172 case kX64Movss:
173 return instr->HasOutput() ? kIsLoadOperation : kHasSideEffect; 173 return instr->HasOutput() ? kIsLoadOperation : kHasSideEffect;
174 174
175 case kX64StackCheck: 175 case kX64StackCheck:
176 return kIsLoadOperation; 176 return kIsLoadOperation;
177 177
178 case kX64Push: 178 case kX64Push:
179 case kX64Poke: 179 case kX64Poke:
180 return kHasSideEffect; 180 return kHasSideEffect;
181 181
182 case kX64Xchgb:
183 case kX64Xchgw:
184 case kX64Xchgl:
185 return kIsLoadOperation | kHasSideEffect;
186
187 #define CASE(Name) case k##Name: 182 #define CASE(Name) case k##Name:
188 COMMON_ARCH_OPCODE_LIST(CASE) 183 COMMON_ARCH_OPCODE_LIST(CASE)
189 #undef CASE 184 #undef CASE
190 // Already covered in architecture independent code. 185 // Already covered in architecture independent code.
191 UNREACHABLE(); 186 UNREACHABLE();
192 } 187 }
193 188
194 UNREACHABLE(); 189 UNREACHABLE();
195 return kNoOpcodeFlags; 190 return kNoOpcodeFlags;
196 } 191 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 case kArchTruncateDoubleToI: 261 case kArchTruncateDoubleToI:
267 return 6; 262 return 6;
268 default: 263 default:
269 return 1; 264 return 1;
270 } 265 }
271 } 266 }
272 267
273 } // namespace compiler 268 } // namespace compiler
274 } // namespace internal 269 } // namespace internal
275 } // namespace v8 270 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698