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

Side by Side Diff: src/compiler/instruction-selector-impl.h

Issue 850653002: [turbofan] Improve code generation for unordered comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/instruction-codes.h ('k') | src/compiler/x64/code-generator-x64.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 #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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/instruction-codes.h ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698