| Index: src/compiler/pipeline.h
|
| diff --git a/src/compiler/pipeline.h b/src/compiler/pipeline.h
|
| index 464014518f4100b8c40ff25d02b2ff84483388be..da4a2150296c49c318951aac25ade7dcaeeeec3d 100644
|
| --- a/src/compiler/pipeline.h
|
| +++ b/src/compiler/pipeline.h
|
| @@ -80,10 +80,11 @@ class Pipeline {
|
| CompilationInfo* info, Graph* graph, CallDescriptor* descriptor,
|
| SourcePositionTable* source_positions);
|
|
|
| - // TODO(mstarzinger, bmeurer): This shouldn't be public!
|
| - bool ScheduleAndSelectInstructions(Linkage* linkage);
|
| -
|
| private:
|
| + // The wasm compilation job calls ScheduleAndSelectInstructions and
|
| + // RunPrintAndVerify, so we make it a member class.
|
| + friend class PipelineWasmCompilationJob;
|
| +
|
| // Helpers for executing pipeline phases.
|
| template <typename Phase>
|
| void Run();
|
| @@ -94,6 +95,7 @@ class Pipeline {
|
|
|
| void BeginPhaseKind(const char* phase_kind);
|
| void EndPhaseKind();
|
| + bool ScheduleAndSelectInstructions(Linkage* linkage);
|
| void RunPrintAndVerify(const char* phase, bool untyped = false);
|
| Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor);
|
| void AllocateRegisters(const RegisterConfiguration* config,
|
|
|