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 18b54f1e08484fac995c2e1ca7fbb81c05ca0a30..188a1c923e571c1f0b03074c884c9bce05d17ebf 100644 |
--- a/test/cctest/compiler/graph-builder-tester.h |
+++ b/test/cctest/compiler/graph-builder-tester.h |
@@ -274,6 +274,12 @@ class GraphBuilderTester : public HandleAndZoneScope, |
CallDescriptor* desc = |
Linkage::GetSimplifiedCDescriptor(zone, this->csig_); |
code_ = Pipeline::GenerateCodeForTesting(main_isolate(), desc, graph()); |
+#ifdef ENABLE_DISASSEMBLER |
+ if (!code_.is_null() && FLAG_print_opt_code) { |
+ OFStream os(stdout); |
+ code_.ToHandleChecked()->Disassemble("test code", os); |
+ } |
+#endif |
} |
return code_.ToHandleChecked()->entry(); |
} |