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

Unified Diff: src/compiler/simplified-operator-reducer.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/simplified-operator-reducer.h ('k') | src/unique.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator-reducer.cc
diff --git a/src/compiler/simplified-operator-reducer.cc b/src/compiler/simplified-operator-reducer.cc
index ac6153e25086e5fe1863f36ec3f703260a43a5b9..7b6279cd0cb520e10b7f319a9b244d478dd090c5 100644
--- a/src/compiler/simplified-operator-reducer.cc
+++ b/src/compiler/simplified-operator-reducer.cc
@@ -19,10 +19,10 @@ Reduction SimplifiedOperatorReducer::Reduce(Node* node) {
switch (node->opcode()) {
case IrOpcode::kBooleanNot: {
HeapObjectMatcher m(node->InputAt(0));
- if (m.IsKnownGlobal(heap()->false_value())) {
+ if (m.IsKnownGlobal(factory()->false_value())) {
return Replace(jsgraph()->TrueConstant());
}
- if (m.IsKnownGlobal(heap()->true_value())) {
+ if (m.IsKnownGlobal(factory()->true_value())) {
return Replace(jsgraph()->FalseConstant());
}
if (m.IsBooleanNot()) return Replace(m.node()->InputAt(0));
@@ -37,8 +37,8 @@ Reduction SimplifiedOperatorReducer::Reduce(Node* node) {
}
case IrOpcode::kChangeBoolToBit: {
HeapObjectMatcher m(node->InputAt(0));
- if (m.IsKnownGlobal(heap()->false_value())) return ReplaceInt32(0);
- if (m.IsKnownGlobal(heap()->true_value())) return ReplaceInt32(1);
+ if (m.IsKnownGlobal(factory()->false_value())) return ReplaceInt32(0);
+ if (m.IsKnownGlobal(factory()->true_value())) return ReplaceInt32(1);
if (m.IsChangeBitToBool()) return Replace(m.node()->InputAt(0));
break;
}
@@ -128,8 +128,8 @@ Reduction SimplifiedOperatorReducer::ReplaceNumber(int32_t value) {
Graph* SimplifiedOperatorReducer::graph() const { return jsgraph()->graph(); }
-Heap* SimplifiedOperatorReducer::heap() const {
- return jsgraph()->isolate()->heap();
+Factory* SimplifiedOperatorReducer::factory() const {
+ return jsgraph()->isolate()->factory();
}
} // namespace compiler
« no previous file with comments | « src/compiler/simplified-operator-reducer.h ('k') | src/unique.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698