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

Unified Diff: src/compiler/common-operator.h

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/change-lowering-unittest.cc ('k') | src/compiler/graph-builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.h
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
index 2ef178b8386fdb66db6fec0c520c9c447e4a636c..cc447ee8f4e0d2817234d63b339c2005719db5ed 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -138,8 +138,8 @@ class CommonOperatorBuilder {
Operator1<double>(IrOpcode::kNumberConstant, Operator::kPure, 0, 1,
"NumberConstant", value);
}
- Operator* HeapConstant(PrintableUnique<Object> value) {
- return new (zone_) Operator1<PrintableUnique<Object> >(
+ Operator* HeapConstant(Unique<Object> value) {
+ return new (zone_) Operator1<Unique<Object> >(
IrOpcode::kHeapConstant, Operator::kPure, 0, 1, "HeapConstant", value);
}
Operator* Phi(int arguments) {
@@ -289,23 +289,23 @@ struct CommonOperatorTraits<ExternalReference> {
};
template <typename T>
-struct CommonOperatorTraits<PrintableUnique<T> > {
+struct CommonOperatorTraits<Unique<T> > {
static inline bool HasValue(const Operator* op) {
return op->opcode() == IrOpcode::kHeapConstant;
}
- static inline PrintableUnique<T> ValueOf(const Operator* op) {
+ static inline Unique<T> ValueOf(const Operator* op) {
CHECK_EQ(IrOpcode::kHeapConstant, op->opcode());
- return OpParameter<PrintableUnique<T> >(op);
+ return OpParameter<Unique<T> >(op);
}
};
template <typename T>
struct CommonOperatorTraits<Handle<T> > {
static inline bool HasValue(const Operator* op) {
- return CommonOperatorTraits<PrintableUnique<T> >::HasValue(op);
+ return CommonOperatorTraits<Unique<T> >::HasValue(op);
}
static inline Handle<T> ValueOf(const Operator* op) {
- return CommonOperatorTraits<PrintableUnique<T> >::ValueOf(op).handle();
+ return CommonOperatorTraits<Unique<T> >::ValueOf(op).handle();
}
};
« no previous file with comments | « src/compiler/change-lowering-unittest.cc ('k') | src/compiler/graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698