| OLD | NEW |
| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 args.Add(kImmutableArray); | 404 args.Add(kImmutableArray); |
| 405 CheckClassIds(kClassIdReg, args, is_instance_lbl, &unknown); | 405 CheckClassIds(kClassIdReg, args, is_instance_lbl, &unknown); |
| 406 assembler()->Bind(&unknown); | 406 assembler()->Bind(&unknown); |
| 407 } | 407 } |
| 408 | 408 |
| 409 | 409 |
| 410 void FlowGraphCompiler::EmitComment(Instruction* instr) { | 410 void FlowGraphCompiler::EmitComment(Instruction* instr) { |
| 411 char buffer[256]; | 411 char buffer[256]; |
| 412 BufferFormatter f(buffer, sizeof(buffer)); | 412 BufferFormatter f(buffer, sizeof(buffer)); |
| 413 instr->PrintTo(&f); | 413 instr->PrintTo(&f); |
| 414 assembler()->Comment("@%d: %s", instr->cid(), buffer); | 414 assembler()->Comment("%s", buffer); |
| 415 } | 415 } |
| 416 | 416 |
| 417 | 417 |
| 418 void FlowGraphCompiler::EmitLoadIndexedGeneric(LoadIndexedComp* comp) { | 418 void FlowGraphCompiler::EmitLoadIndexedGeneric(LoadIndexedComp* comp) { |
| 419 const String& function_name = | 419 const String& function_name = |
| 420 String::ZoneHandle(Symbols::New(Token::Str(Token::kINDEX))); | 420 String::ZoneHandle(Symbols::New(Token::Str(Token::kINDEX))); |
| 421 | 421 |
| 422 AddCurrentDescriptor(PcDescriptors::kDeopt, | 422 AddCurrentDescriptor(PcDescriptors::kDeopt, |
| 423 comp->cid(), | 423 comp->cid(), |
| 424 comp->token_pos(), | 424 comp->token_pos(), |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 return; | 802 return; |
| 803 } | 803 } |
| 804 } | 804 } |
| 805 | 805 |
| 806 // This move is not blocked. | 806 // This move is not blocked. |
| 807 EmitMove(index); | 807 EmitMove(index); |
| 808 } | 808 } |
| 809 | 809 |
| 810 | 810 |
| 811 } // namespace dart | 811 } // namespace dart |
| OLD | NEW |