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

Side by Side Diff: runtime/vm/flow_graph_allocator.cc

Issue 774763002: Cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.h » ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_allocator.h" 5 #include "vm/flow_graph_allocator.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/il_printer.h" 9 #include "vm/il_printer.h"
10 #include "vm/flow_graph.h" 10 #include "vm/flow_graph.h"
(...skipping 2903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2914 2914
2915 DiscoverLoops(); 2915 DiscoverLoops();
2916 2916
2917 BuildLiveRanges(); 2917 BuildLiveRanges();
2918 2918
2919 if (FLAG_print_ssa_liveness) { 2919 if (FLAG_print_ssa_liveness) {
2920 liveness_.Dump(); 2920 liveness_.Dump();
2921 } 2921 }
2922 2922
2923 if (FLAG_print_ssa_liveranges) { 2923 if (FLAG_print_ssa_liveranges) {
2924 const Function& function = flow_graph_.parsed_function().function(); 2924 const Function& function = flow_graph_.parsed_function()->function();
2925 2925
2926 OS::Print("-- [before ssa allocator] ranges [%s] ---------\n", 2926 OS::Print("-- [before ssa allocator] ranges [%s] ---------\n",
2927 function.ToFullyQualifiedCString()); 2927 function.ToFullyQualifiedCString());
2928 PrintLiveRanges(); 2928 PrintLiveRanges();
2929 OS::Print("----------------------------------------------\n"); 2929 OS::Print("----------------------------------------------\n");
2930 2930
2931 OS::Print("-- [before ssa allocator] ir [%s] -------------\n", 2931 OS::Print("-- [before ssa allocator] ir [%s] -------------\n",
2932 function.ToFullyQualifiedCString()); 2932 function.ToFullyQualifiedCString());
2933 FlowGraphPrinter printer(flow_graph_, true); 2933 FlowGraphPrinter printer(flow_graph_, true);
2934 printer.PrintBlocks(); 2934 printer.PrintBlocks();
(...skipping 20 matching lines...) Expand all
2955 AllocateUnallocatedRanges(); 2955 AllocateUnallocatedRanges();
2956 2956
2957 ResolveControlFlow(); 2957 ResolveControlFlow();
2958 2958
2959 GraphEntryInstr* entry = block_order_[0]->AsGraphEntry(); 2959 GraphEntryInstr* entry = block_order_[0]->AsGraphEntry();
2960 ASSERT(entry != NULL); 2960 ASSERT(entry != NULL);
2961 intptr_t double_spill_slot_count = spill_slots_.length() * kDoubleSpillFactor; 2961 intptr_t double_spill_slot_count = spill_slots_.length() * kDoubleSpillFactor;
2962 entry->set_spill_slot_count(cpu_spill_slot_count_ + double_spill_slot_count); 2962 entry->set_spill_slot_count(cpu_spill_slot_count_ + double_spill_slot_count);
2963 2963
2964 if (FLAG_print_ssa_liveranges) { 2964 if (FLAG_print_ssa_liveranges) {
2965 const Function& function = flow_graph_.parsed_function().function(); 2965 const Function& function = flow_graph_.parsed_function()->function();
2966 2966
2967 OS::Print("-- [after ssa allocator] ranges [%s] ---------\n", 2967 OS::Print("-- [after ssa allocator] ranges [%s] ---------\n",
2968 function.ToFullyQualifiedCString()); 2968 function.ToFullyQualifiedCString());
2969 PrintLiveRanges(); 2969 PrintLiveRanges();
2970 OS::Print("----------------------------------------------\n"); 2970 OS::Print("----------------------------------------------\n");
2971 2971
2972 OS::Print("-- [after ssa allocator] ir [%s] -------------\n", 2972 OS::Print("-- [after ssa allocator] ir [%s] -------------\n",
2973 function.ToFullyQualifiedCString()); 2973 function.ToFullyQualifiedCString());
2974 FlowGraphPrinter printer(flow_graph_, true); 2974 FlowGraphPrinter printer(flow_graph_, true);
2975 printer.PrintBlocks(); 2975 printer.PrintBlocks();
2976 OS::Print("----------------------------------------------\n"); 2976 OS::Print("----------------------------------------------\n");
2977 } 2977 }
2978 } 2978 }
2979 2979
2980 2980
2981 } // namespace dart 2981 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698