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

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

Issue 10830109: Add type propagation phase in optimizing compiler (work in progress). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 args.Add(kImmutableArray); 402 args.Add(kImmutableArray);
403 CheckClassIds(kClassIdReg, args, is_instance_lbl, &unknown); 403 CheckClassIds(kClassIdReg, args, is_instance_lbl, &unknown);
404 assembler()->Bind(&unknown); 404 assembler()->Bind(&unknown);
405 } 405 }
406 406
407 407
408 void FlowGraphCompiler::EmitComment(Instruction* instr) { 408 void FlowGraphCompiler::EmitComment(Instruction* instr) {
409 char buffer[256]; 409 char buffer[256];
410 BufferFormatter f(buffer, sizeof(buffer)); 410 BufferFormatter f(buffer, sizeof(buffer));
411 instr->PrintTo(&f); 411 instr->PrintTo(&f);
412 assembler()->Comment("@%d: %s", instr->cid(), buffer); 412 assembler()->Comment("%s", buffer);
413 } 413 }
414 414
415 415
416 void FlowGraphCompiler::EmitLoadIndexedGeneric(LoadIndexedComp* comp) { 416 void FlowGraphCompiler::EmitLoadIndexedGeneric(LoadIndexedComp* comp) {
417 const String& function_name = 417 const String& function_name =
418 String::ZoneHandle(Symbols::New(Token::Str(Token::kINDEX))); 418 String::ZoneHandle(Symbols::New(Token::Str(Token::kINDEX)));
419 419
420 AddCurrentDescriptor(PcDescriptors::kDeopt, 420 AddCurrentDescriptor(PcDescriptors::kDeopt,
421 comp->cid(), 421 comp->cid(),
422 comp->token_pos(), 422 comp->token_pos(),
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 return; 800 return;
801 } 801 }
802 } 802 }
803 803
804 // This move is not blocked. 804 // This move is not blocked.
805 EmitMove(index); 805 EmitMove(index);
806 } 806 }
807 807
808 808
809 } // namespace dart 809 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698