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

Unified Diff: src/compiler/graph-unittest.cc

Issue 543743002: Remove deprecated PrintableUnique. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/graph-unittest.h ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-unittest.cc
diff --git a/src/compiler/graph-unittest.cc b/src/compiler/graph-unittest.cc
index 94ab45bde3df9815e5857fd9a9550abeddb0bc28..2af9065e007849f720a0fa50f8d1596aae7c83fe 100644
--- a/src/compiler/graph-unittest.cc
+++ b/src/compiler/graph-unittest.cc
@@ -19,9 +19,8 @@ namespace internal {
// TODO(bmeurer): Find a new home for these functions.
template <typename T>
-inline std::ostream& operator<<(std::ostream& os,
- const PrintableUnique<T>& value) {
- return os << value.string();
+inline std::ostream& operator<<(std::ostream& os, const Unique<T>& value) {
+ return os << *value.handle();
}
inline std::ostream& operator<<(std::ostream& os,
const ExternalReference& value) {
@@ -65,32 +64,32 @@ Node* GraphTest::NumberConstant(double value) {
}
-Node* GraphTest::HeapConstant(const PrintableUnique<HeapObject>& value) {
+Node* GraphTest::HeapConstant(const Unique<HeapObject>& value) {
return graph()->NewNode(common()->HeapConstant(value));
}
Node* GraphTest::FalseConstant() {
- return HeapConstant(PrintableUnique<HeapObject>::CreateImmovable(
- zone(), factory()->false_value()));
+ return HeapConstant(
+ Unique<HeapObject>::CreateImmovable(factory()->false_value()));
}
Node* GraphTest::TrueConstant() {
- return HeapConstant(PrintableUnique<HeapObject>::CreateImmovable(
- zone(), factory()->true_value()));
+ return HeapConstant(
+ Unique<HeapObject>::CreateImmovable(factory()->true_value()));
}
Matcher<Node*> GraphTest::IsFalseConstant() {
- return IsHeapConstant(PrintableUnique<HeapObject>::CreateImmovable(
- zone(), factory()->false_value()));
+ return IsHeapConstant(
+ Unique<HeapObject>::CreateImmovable(factory()->false_value()));
}
Matcher<Node*> GraphTest::IsTrueConstant() {
- return IsHeapConstant(PrintableUnique<HeapObject>::CreateImmovable(
- zone(), factory()->true_value()));
+ return IsHeapConstant(
+ Unique<HeapObject>::CreateImmovable(factory()->true_value()));
}
namespace {
@@ -640,8 +639,8 @@ Matcher<Node*> IsExternalConstant(
Matcher<Node*> IsHeapConstant(
- const Matcher<PrintableUnique<HeapObject> >& value_matcher) {
- return MakeMatcher(new IsConstantMatcher<PrintableUnique<HeapObject> >(
+ const Matcher<Unique<HeapObject> >& value_matcher) {
+ return MakeMatcher(new IsConstantMatcher<Unique<HeapObject> >(
IrOpcode::kHeapConstant, value_matcher));
}
« no previous file with comments | « src/compiler/graph-unittest.h ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698