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 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
7 | 7 |
8 #include "src/compiler/instruction.h" | 8 #include "src/compiler/instruction.h" |
9 #include "src/compiler/instruction-selector.h" | 9 #include "src/compiler/instruction-selector.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 return; | 296 return; |
297 case kUnsignedLessThanOrEqual: | 297 case kUnsignedLessThanOrEqual: |
298 condition_ = kUnsignedGreaterThanOrEqual; | 298 condition_ = kUnsignedGreaterThanOrEqual; |
299 return; | 299 return; |
300 case kUnsignedGreaterThan: | 300 case kUnsignedGreaterThan: |
301 condition_ = kUnsignedLessThan; | 301 condition_ = kUnsignedLessThan; |
302 return; | 302 return; |
303 case kUnorderedEqual: | 303 case kUnorderedEqual: |
304 case kUnorderedNotEqual: | 304 case kUnorderedNotEqual: |
305 return; | 305 return; |
306 case kUnorderedLessThan: | |
307 condition_ = kUnorderedGreaterThan; | |
308 return; | |
309 case kUnorderedGreaterThanOrEqual: | |
310 condition_ = kUnorderedLessThanOrEqual; | |
311 return; | |
312 case kUnorderedLessThanOrEqual: | |
313 condition_ = kUnorderedGreaterThanOrEqual; | |
314 return; | |
315 case kUnorderedGreaterThan: | |
316 condition_ = kUnorderedLessThan; | |
317 return; | |
318 } | 306 } |
319 UNREACHABLE(); | 307 UNREACHABLE(); |
320 } | 308 } |
321 | 309 |
322 void OverwriteAndNegateIfEqual(FlagsCondition condition) { | 310 void OverwriteAndNegateIfEqual(FlagsCondition condition) { |
323 bool negate = condition_ == kEqual; | 311 bool negate = condition_ == kEqual; |
324 condition_ = condition; | 312 condition_ = condition; |
325 if (negate) Negate(); | 313 if (negate) Negate(); |
326 } | 314 } |
327 | 315 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 : (frame_state_descriptor->GetTotalSize() + | 355 : (frame_state_descriptor->GetTotalSize() + |
368 1); // Include deopt id. | 356 1); // Include deopt id. |
369 } | 357 } |
370 }; | 358 }; |
371 | 359 |
372 } // namespace compiler | 360 } // namespace compiler |
373 } // namespace internal | 361 } // namespace internal |
374 } // namespace v8 | 362 } // namespace v8 |
375 | 363 |
376 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 364 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
OLD | NEW |