Index: src/compiler/js-operator.cc |
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc |
index 7b1efbf2a7f23f8473c98ead57e219dc09f89f14..5860c925a124c2ad5cb1bcd642ef7183d4ad0c9a 100644 |
--- a/src/compiler/js-operator.cc |
+++ b/src/compiler/js-operator.cc |
@@ -423,7 +423,7 @@ const CreateArgumentsParameters& CreateArgumentsParametersOf( |
bool operator==(CreateClosureParameters const& lhs, |
CreateClosureParameters const& rhs) { |
return lhs.pretenure() == rhs.pretenure() && |
- lhs.shared_info().is_identical_to(rhs.shared_info()); |
+ lhs.shared_info().location() == rhs.shared_info().location(); |
} |
@@ -434,9 +434,7 @@ bool operator!=(CreateClosureParameters const& lhs, |
size_t hash_value(CreateClosureParameters const& p) { |
- // TODO(mstarzinger): Include hash of the SharedFunctionInfo here. |
- base::hash<PretenureFlag> h; |
- return h(p.pretenure()); |
+ return base::hash_combine(p.pretenure(), p.shared_info().location()); |
} |