Index: test/unittests/compiler/node-test-utils.cc |
diff --git a/test/unittests/compiler/node-test-utils.cc b/test/unittests/compiler/node-test-utils.cc |
index d2b9a7362c56e8d90e3a4c796a1539373d412d69..7d91588cd2b07808cbcdb0b3fbe3cfae249558b0 100644 |
--- a/test/unittests/compiler/node-test-utils.cc |
+++ b/test/unittests/compiler/node-test-utils.cc |
@@ -21,6 +21,11 @@ using testing::StringMatchResultListener; |
namespace v8 { |
namespace internal { |
+ |
+bool operator==(Handle<HeapObject> const& lhs, Handle<HeapObject> const& rhs) { |
+ return lhs.is_identical_to(rhs); |
+} |
+ |
namespace compiler { |
namespace { |
@@ -1528,10 +1533,9 @@ Matcher<Node*> IsExternalConstant( |
} |
-Matcher<Node*> IsHeapConstant( |
- const Matcher<Unique<HeapObject> >& value_matcher) { |
- return MakeMatcher(new IsConstantMatcher<Unique<HeapObject> >( |
- IrOpcode::kHeapConstant, value_matcher)); |
+Matcher<Node*> IsHeapConstant(Handle<HeapObject> value) { |
+ return MakeMatcher(new IsConstantMatcher<Handle<HeapObject>>( |
+ IrOpcode::kHeapConstant, value)); |
} |