Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 2e9332536245c56e333e75af3dd3a414dddc0b9d..e2216a8207688d33010ddd65e60584fedf19aa49 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -277,7 +277,7 @@ class PipelineData { |
info()->isolate(), instruction_zone(), instruction_blocks); |
} |
- void InitializeFrameData(CallDescriptor* descriptor) { |
+ void InitializeFrameData(const CallDescriptor* descriptor) { |
DCHECK(frame_ == nullptr); |
int fixed_frame_size = 0; |
if (descriptor != nullptr) { |
@@ -290,7 +290,7 @@ class PipelineData { |
} |
void InitializeRegisterAllocationData(const RegisterConfiguration* config, |
- CallDescriptor* descriptor, |
+ const CallDescriptor* descriptor, |
const char* debug_name) { |
DCHECK(register_allocation_data_ == nullptr); |
register_allocation_data_ = new (register_allocation_zone()) |
@@ -1258,16 +1258,14 @@ Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate, |
Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info, |
Graph* graph, |
Schedule* schedule) { |
- CallDescriptor* call_descriptor = |
+ const CallDescriptor* call_descriptor = |
Linkage::ComputeIncoming(info->zone(), info); |
return GenerateCodeForTesting(info, call_descriptor, graph, schedule); |
} |
- |
-Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info, |
- CallDescriptor* call_descriptor, |
- Graph* graph, |
- Schedule* schedule) { |
+Handle<Code> Pipeline::GenerateCodeForTesting( |
+ CompilationInfo* info, const CallDescriptor* call_descriptor, Graph* graph, |
+ Schedule* schedule) { |
// Construct a pipeline for scheduling and code generation. |
ZonePool zone_pool; |
PipelineData data(&zone_pool, info, graph, schedule); |
@@ -1301,9 +1299,8 @@ bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config, |
return !data.compilation_failed(); |
} |
- |
Handle<Code> Pipeline::ScheduleAndGenerateCode( |
- CallDescriptor* call_descriptor) { |
+ const CallDescriptor* call_descriptor) { |
PipelineData* data = this->data_; |
DCHECK_NOT_NULL(data->graph()); |
@@ -1408,9 +1405,8 @@ Handle<Code> Pipeline::ScheduleAndGenerateCode( |
return code; |
} |
- |
void Pipeline::AllocateRegisters(const RegisterConfiguration* config, |
- CallDescriptor* descriptor, |
+ const CallDescriptor* descriptor, |
bool run_verifier) { |
PipelineData* data = this->data_; |