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

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

Issue 2994863002: Reapply "Eliminate dependencies on assemblers and code stubs in precompiled runtime." (Closed)
Patch Set: Exclude references to disassembler in precompiled mode Created 3 years, 4 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 | « runtime/vm/ast_transformer.cc ('k') | runtime/vm/branch_optimizer.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 (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 #if !defined(DART_PRECOMPILED_RUNTIME)
6
5 #include "vm/block_scheduler.h" 7 #include "vm/block_scheduler.h"
6 8
7 #include "vm/allocation.h" 9 #include "vm/allocation.h"
8 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 11 #include "vm/compiler.h"
10 #include "vm/flow_graph.h" 12 #include "vm/flow_graph.h"
11 13
12 namespace dart { 14 namespace dart {
13 15
14 static intptr_t GetEdgeCount(const Array& edge_counters, intptr_t edge_id) { 16 static intptr_t GetEdgeCount(const Array& edge_counters, intptr_t edge_id) {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 for (intptr_t i = block_count - 1; i >= 0; --i) { 204 for (intptr_t i = block_count - 1; i >= 0; --i) {
203 if (chains[i]->first->block == flow_graph()->postorder()[i]) { 205 if (chains[i]->first->block == flow_graph()->postorder()[i]) {
204 for (Link* link = chains[i]->first; link != NULL; link = link->next) { 206 for (Link* link = chains[i]->first; link != NULL; link = link->next) {
205 flow_graph()->CodegenBlockOrder(true)->Add(link->block); 207 flow_graph()->CodegenBlockOrder(true)->Add(link->block);
206 } 208 }
207 } 209 }
208 } 210 }
209 } 211 }
210 212
211 } // namespace dart 213 } // namespace dart
214
215 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/ast_transformer.cc ('k') | runtime/vm/branch_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698