OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |