| Index: src/compiler/pipeline.cc
|
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
|
| index 1fa2d21ca972ea3b2dbce67cd04aa49833463c03..8a47635685969cc3c9210d97e8eb0030239bb86b 100644
|
| --- a/src/compiler/pipeline.cc
|
| +++ b/src/compiler/pipeline.cc
|
| @@ -1094,7 +1094,7 @@ void Pipeline::RunPrintAndVerify(const char* phase, bool untyped) {
|
|
|
|
|
| Handle<Code> Pipeline::GenerateCode() {
|
| - ZonePool zone_pool;
|
| + ZonePool zone_pool(isolate()->allocator());
|
| base::SmartPointer<PipelineStatistics> pipeline_statistics;
|
|
|
| if (FLAG_turbo_stats) {
|
| @@ -1255,7 +1255,7 @@ Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate,
|
| CompilationInfo info(debug_name, isolate, graph->zone(), flags);
|
|
|
| // Construct a pipeline for scheduling and code generation.
|
| - ZonePool zone_pool;
|
| + ZonePool zone_pool(isolate->allocator());
|
| PipelineData data(&zone_pool, &info, graph, schedule);
|
| base::SmartPointer<PipelineStatistics> pipeline_statistics;
|
| if (FLAG_turbo_stats) {
|
| @@ -1296,7 +1296,7 @@ Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info,
|
| Graph* graph,
|
| Schedule* schedule) {
|
| // Construct a pipeline for scheduling and code generation.
|
| - ZonePool zone_pool;
|
| + ZonePool zone_pool(info->isolate()->allocator());
|
| PipelineData data(&zone_pool, info, graph, schedule);
|
| base::SmartPointer<PipelineStatistics> pipeline_statistics;
|
| if (FLAG_turbo_stats) {
|
| @@ -1319,7 +1319,7 @@ bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config,
|
| InstructionSequence* sequence,
|
| bool run_verifier) {
|
| CompilationInfo info("testing", sequence->isolate(), sequence->zone());
|
| - ZonePool zone_pool;
|
| + ZonePool zone_pool(sequence->isolate()->allocator());
|
| PipelineData data(&zone_pool, &info, sequence);
|
| Pipeline pipeline(&info);
|
| pipeline.data_ = &data;
|
| @@ -1442,7 +1442,7 @@ void Pipeline::AllocateRegisters(const RegisterConfiguration* config,
|
| base::SmartPointer<Zone> verifier_zone;
|
| RegisterAllocatorVerifier* verifier = nullptr;
|
| if (run_verifier) {
|
| - verifier_zone.Reset(new Zone());
|
| + verifier_zone.Reset(new Zone(isolate()->allocator()));
|
| verifier = new (verifier_zone.get()) RegisterAllocatorVerifier(
|
| verifier_zone.get(), config, data->sequence());
|
| }
|
|
|