deps: upgrade v8 to 3.31.74.1
[platform/upstream/nodejs.git] / deps / v8 / test / unittests / compiler / graph-unittest.cc
index 2cfd23a..9543258 100644 (file)
@@ -4,8 +4,6 @@
 
 #include "test/unittests/compiler/graph-unittest.h"
 
-#include <ostream>  // NOLINT(readability/streams)
-
 #include "src/compiler/node-properties-inl.h"
 #include "test/unittests/compiler/node-test-utils.h"
 
@@ -93,6 +91,20 @@ Matcher<Node*> GraphTest::IsTrueConstant() {
       Unique<HeapObject>::CreateImmovable(factory()->true_value()));
 }
 
+
+TypedGraphTest::TypedGraphTest(int num_parameters)
+    : GraphTest(num_parameters), typer_(graph(), MaybeHandle<Context>()) {}
+
+
+TypedGraphTest::~TypedGraphTest() {}
+
+
+Node* TypedGraphTest::Parameter(Type* type, int32_t index) {
+  Node* node = GraphTest::Parameter(index);
+  NodeProperties::SetBounds(node, Bounds(type));
+  return node;
+}
+
 }  // namespace compiler
 }  // namespace internal
 }  // namespace v8