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

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

Issue 1419223003: Re-assign registers on ARM so PP and CODE_REG are below R7 (FP on iOS). (Closed) Base URL: git@github.com:dart-lang/sdk.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 (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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 // FpuTMP is used as scratch by optimized code and parallel move resolver. 110 // FpuTMP is used as scratch by optimized code and parallel move resolver.
111 blocked_fpu_registers_[FpuTMP] = true; 111 blocked_fpu_registers_[FpuTMP] = true;
112 112
113 // Block additional registers needed preserved when generating intrinsics. 113 // Block additional registers needed preserved when generating intrinsics.
114 // TODO(fschneider): Handle saving and restoring these registers when 114 // TODO(fschneider): Handle saving and restoring these registers when
115 // generating intrinsic code. 115 // generating intrinsic code.
116 if (intrinsic_mode) { 116 if (intrinsic_mode) {
117 blocked_cpu_registers_[ARGS_DESC_REG] = true; 117 blocked_cpu_registers_[ARGS_DESC_REG] = true;
118 blocked_cpu_registers_[CODE_REG] = true;
118 } 119 }
119 } 120 }
120 121
121 122
122 static void DeepLiveness(MaterializeObjectInstr* mat, BitVector* live_in) { 123 static void DeepLiveness(MaterializeObjectInstr* mat, BitVector* live_in) {
123 if (mat->was_visited_for_liveness()) { 124 if (mat->was_visited_for_liveness()) {
124 return; 125 return;
125 } 126 }
126 mat->mark_visited_for_liveness(); 127 mat->mark_visited_for_liveness();
127 128
(...skipping 2878 matching lines...) Expand 10 before | Expand all | Expand 10 after
3006 THR_Print("-- [after ssa allocator] ir [%s] -------------\n", 3007 THR_Print("-- [after ssa allocator] ir [%s] -------------\n",
3007 function.ToFullyQualifiedCString()); 3008 function.ToFullyQualifiedCString());
3008 FlowGraphPrinter printer(flow_graph_, true); 3009 FlowGraphPrinter printer(flow_graph_, true);
3009 printer.PrintBlocks(); 3010 printer.PrintBlocks();
3010 THR_Print("----------------------------------------------\n"); 3011 THR_Print("----------------------------------------------\n");
3011 } 3012 }
3012 } 3013 }
3013 3014
3014 3015
3015 } // namespace dart 3016 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698