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

Unified Diff: src/compiler/js-operator.cc

Issue 1319383002: Drop ambiguous MaybeHandle comparison and hashing ops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-unique-2
Patch Set: Created 5 years, 4 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 | « src/compiler/js-operator.h ('k') | src/compiler/js-type-feedback-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index f96584a837ffc8d8ad022c5f9b825edb0bae17d7..f551b881fd32b66f08cc7a06b1a4d23625503aa6 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -15,7 +15,8 @@ namespace internal {
namespace compiler {
bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
- return lhs.slot() == rhs.slot() && lhs.vector() == rhs.vector();
+ return lhs.slot() == rhs.slot() &&
+ lhs.vector().location() == rhs.vector().location();
}
@@ -25,7 +26,7 @@ bool operator!=(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
size_t hash_value(VectorSlotPair const& p) {
- return base::hash_combine(p.slot(), p.vector());
+ return base::hash_combine(p.slot(), p.vector().location());
}
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-type-feedback-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698