OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
6 | 6 |
7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
8 #include <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 CompilationInfo* info, Graph* graph, CallDescriptor* descriptor, | 1719 CompilationInfo* info, Graph* graph, CallDescriptor* descriptor, |
1720 SourcePositionTable* source_positions) { | 1720 SourcePositionTable* source_positions) { |
1721 return new PipelineWasmCompilationJob(info, graph, descriptor, | 1721 return new PipelineWasmCompilationJob(info, graph, descriptor, |
1722 source_positions); | 1722 source_positions); |
1723 } | 1723 } |
1724 | 1724 |
1725 bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config, | 1725 bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config, |
1726 InstructionSequence* sequence, | 1726 InstructionSequence* sequence, |
1727 bool run_verifier) { | 1727 bool run_verifier) { |
1728 CompilationInfo info(ArrayVector("testing"), sequence->isolate(), | 1728 CompilationInfo info(ArrayVector("testing"), sequence->isolate(), |
1729 sequence->zone()); | 1729 sequence->zone(), Code::ComputeFlags(Code::STUB)); |
1730 ZonePool zone_pool(sequence->isolate()->allocator()); | 1730 ZonePool zone_pool(sequence->isolate()->allocator()); |
1731 PipelineData data(&zone_pool, &info, sequence); | 1731 PipelineData data(&zone_pool, &info, sequence); |
1732 PipelineImpl pipeline(&data); | 1732 PipelineImpl pipeline(&data); |
1733 pipeline.data_->InitializeFrameData(nullptr); | 1733 pipeline.data_->InitializeFrameData(nullptr); |
1734 pipeline.AllocateRegisters(config, nullptr, run_verifier); | 1734 pipeline.AllocateRegisters(config, nullptr, run_verifier); |
1735 return !data.compilation_failed(); | 1735 return !data.compilation_failed(); |
1736 } | 1736 } |
1737 | 1737 |
1738 bool PipelineImpl::ScheduleAndSelectInstructions(Linkage* linkage) { | 1738 bool PipelineImpl::ScheduleAndSelectInstructions(Linkage* linkage) { |
1739 CallDescriptor* call_descriptor = linkage->GetIncomingDescriptor(); | 1739 CallDescriptor* call_descriptor = linkage->GetIncomingDescriptor(); |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1939 data->DeleteRegisterAllocationZone(); | 1939 data->DeleteRegisterAllocationZone(); |
1940 } | 1940 } |
1941 | 1941 |
1942 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1942 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1943 | 1943 |
1944 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1944 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1945 | 1945 |
1946 } // namespace compiler | 1946 } // namespace compiler |
1947 } // namespace internal | 1947 } // namespace internal |
1948 } // namespace v8 | 1948 } // namespace v8 |
OLD | NEW |