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

Side by Side Diff: src/compiler/ia32/instruction-scheduler-ia32.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 case kIA32StackCheck: 122 case kIA32StackCheck:
123 return kIsLoadOperation; 123 return kIsLoadOperation;
124 124
125 case kIA32Push: 125 case kIA32Push:
126 case kIA32PushFloat32: 126 case kIA32PushFloat32:
127 case kIA32PushFloat64: 127 case kIA32PushFloat64:
128 case kIA32Poke: 128 case kIA32Poke:
129 return kHasSideEffect; 129 return kHasSideEffect;
130 130
131 case kIA32Xchgb:
132 case kIA32Xchgw:
133 case kIA32Xchgl:
134 return kIsLoadOperation | kHasSideEffect;
135
136 #define CASE(Name) case k##Name: 131 #define CASE(Name) case k##Name:
137 COMMON_ARCH_OPCODE_LIST(CASE) 132 COMMON_ARCH_OPCODE_LIST(CASE)
138 #undef CASE 133 #undef CASE
139 // Already covered in architecture independent code. 134 // Already covered in architecture independent code.
140 UNREACHABLE(); 135 UNREACHABLE();
141 } 136 }
142 137
143 UNREACHABLE(); 138 UNREACHABLE();
144 return kNoOpcodeFlags; 139 return kNoOpcodeFlags;
145 } 140 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 case kArchTruncateDoubleToI: 205 case kArchTruncateDoubleToI:
211 return 9; 206 return 9;
212 default: 207 default:
213 return 1; 208 return 1;
214 } 209 }
215 } 210 }
216 211
217 } // namespace compiler 212 } // namespace compiler
218 } // namespace internal 213 } // namespace internal
219 } // namespace v8 214 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698