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

Unified Diff: src/compiler/pipeline.cc

Issue 713803002: [turbofan] add register assignment verifier (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 f2571e3c6ddf2f815a81dc494274f6d7a4eb7358..e116f9705cc3fbb6f05c46ecfa375163f8b16430 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -584,15 +584,17 @@ Handle<Code> Pipeline::GenerateCode(Linkage* linkage, PipelineData* data) {
ZonePool::Scope zone_scope(data->zone_pool());
SmartArrayPointer<char> debug_name;
+ RegisterAllocator::VerificationType verification_type =
+ RegisterAllocator::kNoVerify;
#ifdef DEBUG
debug_name = GetDebugName(info());
+ verification_type = RegisterAllocator::kVerifyAssignment;
#endif
-
RegisterAllocator allocator(RegisterConfiguration::ArchDefault(),
zone_scope.zone(), &frame, &sequence,
debug_name.get());
- if (!allocator.Allocate(data->pipeline_statistics())) {
+ if (!allocator.Allocate(data->pipeline_statistics(), verification_type)) {
info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc);
return Handle<Code>::null();
}

Powered by Google App Engine
This is Rietveld 408576698