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

Unified Diff: src/compiler/instruction.h

Issue 755323011: [turbofan] optimize moves into merges (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/move-optimizer.h » ('j') | src/compiler/move-optimizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction.h
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
index fe411d612977cb115114c49ac6730738acb9fa14..47fbec8e85682cab7c46cf1e67bd923360c58fc9 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -82,6 +82,11 @@ class InstructionOperand {
ConvertTo(kind, index, kInvalidVirtualRegister);
}
+ // Useful for map/set keys.
+ bool operator<(const InstructionOperand& op) const {
+ return value_ < op.value_;
+ }
+
protected:
template <typename SubKindOperand>
static SubKindOperand* New(Zone* zone, const SubKindOperand& op) {
« no previous file with comments | « no previous file | src/compiler/move-optimizer.h » ('j') | src/compiler/move-optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698