Index: test/cctest/compiler/graph-builder-tester.h |
diff --git a/test/cctest/compiler/graph-builder-tester.h b/test/cctest/compiler/graph-builder-tester.h |
index e0c59420c29c78855b675ffd5e9904ef02c3a081..dba4369bd149d9c0eb96ec02f3d5228ab3110834 100644 |
--- a/test/cctest/compiler/graph-builder-tester.h |
+++ b/test/cctest/compiler/graph-builder-tester.h |
@@ -229,6 +229,11 @@ class GraphBuilderTester : public HandleAndZoneScope, |
return MakeNode(op, value_input_count, value_inputs); |
} |
+ Handle<Code> GetCode() { |
+ Generate(); |
+ return code_.ToHandleChecked(); |
+ } |
+ |
protected: |
Node* MakeNode(const Operator* op, int value_input_count, |
Node** value_inputs) { |