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

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: 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
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 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 // Output source position information before the graph is deleted. 1299 // Output source position information before the graph is deleted.
1300 data_->source_positions()->Print(source_position_output); 1300 data_->source_positions()->Print(source_position_output);
1301 } 1301 }
1302 1302
1303 data->DeleteGraphZone(); 1303 data->DeleteGraphZone();
1304 1304
1305 BeginPhaseKind("register allocation"); 1305 BeginPhaseKind("register allocation");
1306 1306
1307 bool run_verifier = FLAG_turbo_verify_allocation; 1307 bool run_verifier = FLAG_turbo_verify_allocation;
1308 // Allocate registers. 1308 // Allocate registers.
1309 AllocateRegisters(RegisterConfiguration::ArchDefault(), call_descriptor, 1309 AllocateRegisters(RegisterConfiguration::ArchDefault(TURBOFAN),
1310 run_verifier); 1310 call_descriptor, run_verifier);
1311 if (data->compilation_failed()) { 1311 if (data->compilation_failed()) {
1312 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); 1312 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc);
1313 return Handle<Code>(); 1313 return Handle<Code>();
1314 } 1314 }
1315 1315
1316 BeginPhaseKind("code generation"); 1316 BeginPhaseKind("code generation");
1317 1317
1318 // Optimimize jumps. 1318 // Optimimize jumps.
1319 if (FLAG_turbo_jt) { 1319 if (FLAG_turbo_jt) {
1320 Run<JumpThreadingPhase>(); 1320 Run<JumpThreadingPhase>();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 tcf << AsC1VRegisterAllocationData("CodeGen", 1451 tcf << AsC1VRegisterAllocationData("CodeGen",
1452 data->register_allocation_data()); 1452 data->register_allocation_data());
1453 } 1453 }
1454 1454
1455 data->DeleteRegisterAllocationZone(); 1455 data->DeleteRegisterAllocationZone();
1456 } 1456 }
1457 1457
1458 } // namespace compiler 1458 } // namespace compiler
1459 } // namespace internal 1459 } // namespace internal
1460 } // namespace v8 1460 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698