Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: src/compiler/pipeline.cc

Issue 1911313002: Pass debug name as Vector instead of const char* (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-1
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 1292
1293 return ScheduleAndGenerateCode( 1293 return ScheduleAndGenerateCode(
1294 Linkage::ComputeIncoming(data.instruction_zone(), info())); 1294 Linkage::ComputeIncoming(data.instruction_zone(), info()));
1295 } 1295 }
1296 1296
1297 Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate, 1297 Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate,
1298 CallDescriptor* call_descriptor, 1298 CallDescriptor* call_descriptor,
1299 Graph* graph, Schedule* schedule, 1299 Graph* graph, Schedule* schedule,
1300 Code::Flags flags, 1300 Code::Flags flags,
1301 const char* debug_name) { 1301 const char* debug_name) {
1302 CompilationInfo info(debug_name, isolate, graph->zone(), flags); 1302 CompilationInfo info(CStrVector(debug_name), isolate, graph->zone(), flags);
1303 1303
1304 // Construct a pipeline for scheduling and code generation. 1304 // Construct a pipeline for scheduling and code generation.
1305 ZonePool zone_pool(isolate->allocator()); 1305 ZonePool zone_pool(isolate->allocator());
1306 PipelineData data(&zone_pool, &info, graph, schedule); 1306 PipelineData data(&zone_pool, &info, graph, schedule);
1307 base::SmartPointer<PipelineStatistics> pipeline_statistics; 1307 base::SmartPointer<PipelineStatistics> pipeline_statistics;
1308 if (FLAG_turbo_stats) { 1308 if (FLAG_turbo_stats) {
1309 pipeline_statistics.Reset(new PipelineStatistics(&info, &zone_pool)); 1309 pipeline_statistics.Reset(new PipelineStatistics(&info, &zone_pool));
1310 pipeline_statistics->BeginPhaseKind("stub codegen"); 1310 pipeline_statistics->BeginPhaseKind("stub codegen");
1311 } 1311 }
1312 1312
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 return result; 1380 return result;
1381 } 1381 }
1382 1382
1383 OptimizedCompileJob* Pipeline::NewCompilationJob(CompilationInfo* info) { 1383 OptimizedCompileJob* Pipeline::NewCompilationJob(CompilationInfo* info) {
1384 return new (info->zone()) PipelineCompilationJob(info); 1384 return new (info->zone()) PipelineCompilationJob(info);
1385 } 1385 }
1386 1386
1387 bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config, 1387 bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config,
1388 InstructionSequence* sequence, 1388 InstructionSequence* sequence,
1389 bool run_verifier) { 1389 bool run_verifier) {
1390 CompilationInfo info("testing", sequence->isolate(), sequence->zone()); 1390 CompilationInfo info(ArrayVector("testing"), sequence->isolate(),
1391 sequence->zone());
1391 ZonePool zone_pool(sequence->isolate()->allocator()); 1392 ZonePool zone_pool(sequence->isolate()->allocator());
1392 PipelineData data(&zone_pool, &info, sequence); 1393 PipelineData data(&zone_pool, &info, sequence);
1393 Pipeline pipeline(&info); 1394 Pipeline pipeline(&info);
1394 pipeline.data_ = &data; 1395 pipeline.data_ = &data;
1395 pipeline.data_->InitializeFrameData(nullptr); 1396 pipeline.data_->InitializeFrameData(nullptr);
1396 pipeline.AllocateRegisters(config, nullptr, run_verifier); 1397 pipeline.AllocateRegisters(config, nullptr, run_verifier);
1397 return !data.compilation_failed(); 1398 return !data.compilation_failed();
1398 } 1399 }
1399 1400
1400 Handle<Code> Pipeline::ScheduleAndGenerateCode( 1401 Handle<Code> Pipeline::ScheduleAndGenerateCode(
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 } 1600 }
1600 1601
1601 data->DeleteRegisterAllocationZone(); 1602 data->DeleteRegisterAllocationZone();
1602 } 1603 }
1603 1604
1604 Isolate* Pipeline::isolate() const { return info()->isolate(); } 1605 Isolate* Pipeline::isolate() const { return info()->isolate(); }
1605 1606
1606 } // namespace compiler 1607 } // namespace compiler
1607 } // namespace internal 1608 } // namespace internal
1608 } // namespace v8 1609 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | src/wasm/wasm-opcodes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698