R=bmeurer@chromium.org
BUG=
Review URL: https://codereview.chromium.org/
1122753002
Cr-Commit-Position: refs/heads/master@{#28192}
source_size_(0),
phase_kind_name_(NULL),
phase_name_(NULL) {
- if (!info->shared_info().is_null()) {
+ if (info->has_shared_info()) {
source_size_ = static_cast<size_t>(info->shared_info()->SourceSize());
SmartArrayPointer<char> name =
info->shared_info()->DebugName()->ToCString();
// Construct a pipeline for scheduling and code generation.
ZonePool zone_pool;
PipelineData data(&zone_pool, info, graph, schedule);
+ SmartPointer<PipelineStatistics> pipeline_statistics;
+ if (FLAG_turbo_stats) {
+ pipeline_statistics.Reset(new PipelineStatistics(info, &zone_pool));
+ pipeline_statistics->BeginPhaseKind("test codegen");
+ }
+
Pipeline pipeline(info);
pipeline.data_ = &data;
if (data.schedule() == nullptr) {