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) || defined(TARGET_ARCH_X64) | 387 #if !defined(TARGET_ARCH_ARM64) && !defined(TARGET_ARCH_MIPS) |
388 static int32_t EdgeCounterIncrementSizeInBytes(); | 388 static int32_t EdgeCounterIncrementSizeInBytes(); |
389 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64 | 389 #endif // !TARGET_ARCH_ARM64 && !TARGET_ARCH_MIPS |
390 | 390 |
391 void EmitOptimizedInstanceCall(ExternalLabel* target_label, | 391 void EmitOptimizedInstanceCall(ExternalLabel* target_label, |
392 const ICData& ic_data, | 392 const ICData& ic_data, |
393 intptr_t argument_count, | 393 intptr_t argument_count, |
394 intptr_t deopt_id, | 394 intptr_t deopt_id, |
395 intptr_t token_pos, | 395 intptr_t token_pos, |
396 LocationSummary* locs); | 396 LocationSummary* locs); |
397 | 397 |
398 void EmitInstanceCall(ExternalLabel* target_label, | 398 void EmitInstanceCall(ExternalLabel* target_label, |
399 const ICData& ic_data, | 399 const ICData& ic_data, |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 intptr_t lazy_deopt_pc_offset_; | 670 intptr_t lazy_deopt_pc_offset_; |
671 | 671 |
672 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; | 672 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; |
673 | 673 |
674 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 674 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
675 }; | 675 }; |
676 | 676 |
677 } // namespace dart | 677 } // namespace dart |
678 | 678 |
679 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 679 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |