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

Unified Diff: src/compiler/pipeline.cc

Issue 1221433021: Move SmartPointer to base. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove some unecessary header includes Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index 55455690dded1f66cefa3c6e2fd883912c647c10..3d4e4f3c3fcf081634b5da84fd14954a221833cd 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -280,7 +280,7 @@ class PipelineData {
Zone* graph_zone_;
Graph* graph_;
// TODO(dcarney): make this into a ZoneObject.
- SmartPointer<SourcePositionTable> source_positions_;
+ base::SmartPointer<SourcePositionTable> source_positions_;
LoopAssignmentAnalysis* loop_assignment_;
MachineOperatorBuilder* machine_;
CommonOperatorBuilder* common_;
@@ -339,12 +339,12 @@ void TraceSchedule(CompilationInfo* info, Schedule* schedule) {
}
-SmartArrayPointer<char> GetDebugName(CompilationInfo* info) {
+base::SmartArrayPointer<char> GetDebugName(CompilationInfo* info) {
if (info->code_stub() != NULL) {
CodeStub::Major major_key = info->code_stub()->MajorKey();
const char* major_name = CodeStub::MajorName(major_key, false);
size_t len = strlen(major_name) + 1;
- SmartArrayPointer<char> name(new char[len]);
+ base::SmartArrayPointer<char> name(new char[len]);
memcpy(name.get(), major_name, len);
return name;
} else {
@@ -973,7 +973,7 @@ Handle<Code> Pipeline::GenerateCode() {
}
ZonePool zone_pool;
- SmartPointer<PipelineStatistics> pipeline_statistics;
+ base::SmartPointer<PipelineStatistics> pipeline_statistics;
if (FLAG_turbo_stats) {
pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool));
@@ -986,7 +986,7 @@ Handle<Code> Pipeline::GenerateCode() {
OFStream json_of(json_file);
Handle<Script> script = info()->script();
FunctionLiteral* function = info()->function();
- SmartArrayPointer<char> function_name =
+ base::SmartArrayPointer<char> function_name =
info()->shared_info()->DebugName()->ToCString();
int pos = info()->shared_info()->start_position();
json_of << "{\"function\":\"" << function_name.get()
@@ -1057,7 +1057,7 @@ Handle<Code> Pipeline::GenerateCode() {
// Bailout here in case target architecture is not supported.
if (!SupportedTarget()) return Handle<Code>::null();
- SmartPointer<Typer> typer;
+ base::SmartPointer<Typer> typer;
if (info()->is_typing_enabled()) {
// Type the graph.
typer.Reset(new Typer(isolate(), data.graph(), info()->function_type()));
@@ -1145,7 +1145,7 @@ Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info,
// Construct a pipeline for scheduling and code generation.
ZonePool zone_pool;
PipelineData data(&zone_pool, info, graph, schedule);
- SmartPointer<PipelineStatistics> pipeline_statistics;
+ base::SmartPointer<PipelineStatistics> pipeline_statistics;
if (FLAG_turbo_stats) {
pipeline_statistics.Reset(new PipelineStatistics(info, &zone_pool));
pipeline_statistics->BeginPhaseKind("test codegen");
@@ -1279,7 +1279,7 @@ void Pipeline::AllocateRegisters(const RegisterConfiguration* config,
PipelineData* data = this->data_;
// Don't track usage for this zone in compiler stats.
- SmartPointer<Zone> verifier_zone;
+ base::SmartPointer<Zone> verifier_zone;
RegisterAllocatorVerifier* verifier = nullptr;
if (run_verifier) {
verifier_zone.Reset(new Zone());
@@ -1287,7 +1287,7 @@ void Pipeline::AllocateRegisters(const RegisterConfiguration* config,
verifier_zone.get(), config, data->sequence());
}
- SmartArrayPointer<char> debug_name;
+ base::SmartArrayPointer<char> debug_name;
#ifdef DEBUG
debug_name = GetDebugName(data->info());
#endif

Powered by Google App Engine
This is Rietveld 408576698