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

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

Issue 263093005: - When requested, always generate code comments. Disassembly (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler.cc ('k') | no next file » | 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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/cha.h" 9 #include "vm/cha.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 set_current_block(entry); 301 set_current_block(entry);
302 302
303 if (WasCompacted(entry)) { 303 if (WasCompacted(entry)) {
304 continue; 304 continue;
305 } 305 }
306 306
307 entry->EmitNativeCode(this); 307 entry->EmitNativeCode(this);
308 // Compile all successors until an exit, branch, or a block entry. 308 // Compile all successors until an exit, branch, or a block entry.
309 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { 309 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) {
310 Instruction* instr = it.Current(); 310 Instruction* instr = it.Current();
311 if (FLAG_code_comments && 311 if (FLAG_code_comments ||
312 (FLAG_disassemble || FLAG_disassemble_optimized)) { 312 FLAG_disassemble ||
313 FLAG_disassemble_optimized) {
313 if (FLAG_source_lines) { 314 if (FLAG_source_lines) {
314 EmitSourceLine(instr); 315 EmitSourceLine(instr);
315 } 316 }
316 EmitComment(instr); 317 EmitComment(instr);
317 } 318 }
318 if (instr->IsParallelMove()) { 319 if (instr->IsParallelMove()) {
319 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove()); 320 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove());
320 } else { 321 } else {
321 EmitInstructionPrologue(instr); 322 EmitInstructionPrologue(instr);
322 ASSERT(pending_deoptimization_env_ == NULL); 323 ASSERT(pending_deoptimization_env_ == NULL);
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 1317
1317 for (int i = 0; i < len; i++) { 1318 for (int i = 0; i < len; i++) {
1318 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), 1319 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i),
1319 &Function::ZoneHandle(ic_data.GetTargetAt(i)), 1320 &Function::ZoneHandle(ic_data.GetTargetAt(i)),
1320 ic_data.GetCountAt(i))); 1321 ic_data.GetCountAt(i)));
1321 } 1322 }
1322 sorted->Sort(HighestCountFirst); 1323 sorted->Sort(HighestCountFirst);
1323 } 1324 }
1324 1325
1325 } // namespace dart 1326 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698