Index: src/compiler/js-builtin-reducer.cc |
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc |
index 28580a1a3d912f3bd733d0580755d44a8d4708e3..263b0feedda04949e0f83843996da6a51eea86d4 100644 |
--- a/src/compiler/js-builtin-reducer.cc |
+++ b/src/compiler/js-builtin-reducer.cc |
@@ -5,6 +5,7 @@ |
#include "src/compiler/diamond.h" |
#include "src/compiler/graph-inl.h" |
#include "src/compiler/js-builtin-reducer.h" |
+#include "src/compiler/js-graph.h" |
#include "src/compiler/node-matchers.h" |
#include "src/compiler/node-properties-inl.h" |
#include "src/types.h" |
@@ -96,6 +97,10 @@ class JSCallReduction { |
}; |
+JSBuiltinReducer::JSBuiltinReducer(JSGraph* jsgraph) |
+ : jsgraph_(jsgraph), simplified_(jsgraph->zone()) {} |
+ |
+ |
// ECMA-262, section 15.8.2.1. |
Reduction JSBuiltinReducer::ReduceMathAbs(Node* node) { |
JSCallReduction r(node); |
@@ -232,6 +237,19 @@ Reduction JSBuiltinReducer::Reduce(Node* node) { |
return NoChange(); |
} |
+ |
+Graph* JSBuiltinReducer::graph() const { return jsgraph()->graph(); } |
+ |
+ |
+CommonOperatorBuilder* JSBuiltinReducer::common() const { |
+ return jsgraph()->common(); |
+} |
+ |
+ |
+MachineOperatorBuilder* JSBuiltinReducer::machine() const { |
+ return jsgraph()->machine(); |
+} |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |