Commit 8d2f4553 authored by titzer's avatar titzer Committed by Commit bot

[turbofan] GraphBuilderTester uses --print-opt-code.

R=bmeurer@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1256723003

Cr-Commit-Position: refs/heads/master@{#29948}
parent d5419bb6
...@@ -274,6 +274,12 @@ class GraphBuilderTester : public HandleAndZoneScope, ...@@ -274,6 +274,12 @@ class GraphBuilderTester : public HandleAndZoneScope,
CallDescriptor* desc = CallDescriptor* desc =
Linkage::GetSimplifiedCDescriptor(zone, this->csig_); Linkage::GetSimplifiedCDescriptor(zone, this->csig_);
code_ = Pipeline::GenerateCodeForTesting(main_isolate(), desc, graph()); 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(); return code_.ToHandleChecked()->entry();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment