| 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 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 Label* is_not_instance_lbl); | 377 Label* is_not_instance_lbl); |
| 378 void GenerateListTypeCheck(Register kClassIdReg, | 378 void GenerateListTypeCheck(Register kClassIdReg, |
| 379 Label* is_instance_lbl); | 379 Label* is_instance_lbl); |
| 380 | 380 |
| 381 void EmitComment(Instruction* instr); | 381 void EmitComment(Instruction* instr); |
| 382 | 382 |
| 383 bool NeedsEdgeCounter(TargetEntryInstr* block); | 383 bool NeedsEdgeCounter(TargetEntryInstr* block); |
| 384 | 384 |
| 385 void EmitEdgeCounter(); | 385 void EmitEdgeCounter(); |
| 386 | 386 |
| 387 #if defined(TARGET_ARCH_IA32) |
| 388 static int32_t EdgeCounterIncrementSizeInBytes(); |
| 389 #endif // TARGET_ARCH_IA32 |
| 390 |
| 387 void EmitOptimizedInstanceCall(ExternalLabel* target_label, | 391 void EmitOptimizedInstanceCall(ExternalLabel* target_label, |
| 388 const ICData& ic_data, | 392 const ICData& ic_data, |
| 389 intptr_t argument_count, | 393 intptr_t argument_count, |
| 390 intptr_t deopt_id, | 394 intptr_t deopt_id, |
| 391 intptr_t token_pos, | 395 intptr_t token_pos, |
| 392 LocationSummary* locs); | 396 LocationSummary* locs); |
| 393 | 397 |
| 394 void EmitInstanceCall(ExternalLabel* target_label, | 398 void EmitInstanceCall(ExternalLabel* target_label, |
| 395 const ICData& ic_data, | 399 const ICData& ic_data, |
| 396 intptr_t argument_count, | 400 intptr_t argument_count, |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 intptr_t lazy_deopt_pc_offset_; | 670 intptr_t lazy_deopt_pc_offset_; |
| 667 | 671 |
| 668 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; | 672 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; |
| 669 | 673 |
| 670 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 674 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 671 }; | 675 }; |
| 672 | 676 |
| 673 } // namespace dart | 677 } // namespace dart |
| 674 | 678 |
| 675 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 679 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |