Commit 4e1b80e3 authored by Stephan Herhut's avatar Stephan Herhut Committed by Commit Bot

[cleanup] Make PipelineImpl.data_ private

Bug: v8:7490
Change-Id: If667ffd8b1b800b838c1a74aaf329418034fa9e3
Reviewed-on: https://chromium-review.googlesource.com/1148216
Commit-Queue: Stephan Herhut <herhut@chromium.org>
Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54654}
parent a8c69196
...@@ -528,7 +528,9 @@ class PipelineImpl final { ...@@ -528,7 +528,9 @@ class PipelineImpl final {
OptimizedCompilationInfo* info() const; OptimizedCompilationInfo* info() const;
Isolate* isolate() const; Isolate* isolate() const;
CodeGenerator* code_generator() const;
private:
PipelineData* const data_; PipelineData* const data_;
}; };
...@@ -1075,7 +1077,7 @@ PipelineWasmCompilationJob::ExecuteJobImpl() { ...@@ -1075,7 +1077,7 @@ PipelineWasmCompilationJob::ExecuteJobImpl() {
if (!pipeline_.SelectInstructions(&linkage_)) return FAILED; if (!pipeline_.SelectInstructions(&linkage_)) return FAILED;
pipeline_.AssembleCode(&linkage_); pipeline_.AssembleCode(&linkage_);
CodeGenerator* code_generator = pipeline_.data_->code_generator(); CodeGenerator* code_generator = pipeline_.code_generator();
CodeDesc code_desc; CodeDesc code_desc;
code_generator->tasm()->GetCode(nullptr, &code_desc); code_generator->tasm()->GetCode(nullptr, &code_desc);
...@@ -2290,8 +2292,8 @@ bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config, ...@@ -2290,8 +2292,8 @@ bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config,
Code::STUB); Code::STUB);
ZoneStats zone_stats(sequence->isolate()->allocator()); ZoneStats zone_stats(sequence->isolate()->allocator());
PipelineData data(&zone_stats, &info, sequence->isolate(), sequence); PipelineData data(&zone_stats, &info, sequence->isolate(), sequence);
data.InitializeFrameData(nullptr);
PipelineImpl pipeline(&data); PipelineImpl pipeline(&data);
pipeline.data_->InitializeFrameData(nullptr);
pipeline.AllocateRegisters(config, nullptr, run_verifier); pipeline.AllocateRegisters(config, nullptr, run_verifier);
return !data.compilation_failed(); return !data.compilation_failed();
} }
...@@ -2661,6 +2663,10 @@ OptimizedCompilationInfo* PipelineImpl::info() const { return data_->info(); } ...@@ -2661,6 +2663,10 @@ OptimizedCompilationInfo* PipelineImpl::info() const { return data_->info(); }
Isolate* PipelineImpl::isolate() const { return data_->isolate(); } Isolate* PipelineImpl::isolate() const { return data_->isolate(); }
CodeGenerator* PipelineImpl::code_generator() const {
return data_->code_generator();
}
} // namespace compiler } // namespace compiler
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
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