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

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

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 2 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
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/crankshaft/ia32/lithium-gap-resolver-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 // Output source position information before the graph is deleted. 1319 // Output source position information before the graph is deleted.
1320 data_->source_positions()->Print(source_position_output); 1320 data_->source_positions()->Print(source_position_output);
1321 } 1321 }
1322 1322
1323 data->DeleteGraphZone(); 1323 data->DeleteGraphZone();
1324 1324
1325 BeginPhaseKind("register allocation"); 1325 BeginPhaseKind("register allocation");
1326 1326
1327 bool run_verifier = FLAG_turbo_verify_allocation; 1327 bool run_verifier = FLAG_turbo_verify_allocation;
1328 // Allocate registers. 1328 // Allocate registers.
1329 AllocateRegisters(RegisterConfiguration::ArchDefault(), call_descriptor, 1329 AllocateRegisters(
1330 run_verifier); 1330 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN),
1331 call_descriptor, run_verifier);
1331 if (data->compilation_failed()) { 1332 if (data->compilation_failed()) {
1332 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); 1333 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc);
1333 return Handle<Code>(); 1334 return Handle<Code>();
1334 } 1335 }
1335 1336
1336 BeginPhaseKind("code generation"); 1337 BeginPhaseKind("code generation");
1337 1338
1338 // Optimimize jumps. 1339 // Optimimize jumps.
1339 if (FLAG_turbo_jt) { 1340 if (FLAG_turbo_jt) {
1340 Run<JumpThreadingPhase>(); 1341 Run<JumpThreadingPhase>();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 tcf << AsC1VRegisterAllocationData("CodeGen", 1472 tcf << AsC1VRegisterAllocationData("CodeGen",
1472 data->register_allocation_data()); 1473 data->register_allocation_data());
1473 } 1474 }
1474 1475
1475 data->DeleteRegisterAllocationZone(); 1476 data->DeleteRegisterAllocationZone();
1476 } 1477 }
1477 1478
1478 } // namespace compiler 1479 } // namespace compiler
1479 } // namespace internal 1480 } // namespace internal
1480 } // namespace v8 1481 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/crankshaft/ia32/lithium-gap-resolver-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698