| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 if (code_source_map_builder_ == NULL) { | 606 if (code_source_map_builder_ == NULL) { |
| 607 code_source_map_builder_ = new CodeSourceMapBuilder(); | 607 code_source_map_builder_ = new CodeSourceMapBuilder(); |
| 608 } | 608 } |
| 609 ASSERT(code_source_map_builder_ != NULL); | 609 ASSERT(code_source_map_builder_ != NULL); |
| 610 return code_source_map_builder_; | 610 return code_source_map_builder_; |
| 611 } | 611 } |
| 612 | 612 |
| 613 void BeginCodeSourceRange(); | 613 void BeginCodeSourceRange(); |
| 614 bool EndCodeSourceRange(TokenPosition token_pos); | 614 bool EndCodeSourceRange(TokenPosition token_pos); |
| 615 | 615 |
| 616 #if defined(TARGET_ARCH_DBC) |
| 617 void RecordAfterCall(Instruction* instr); |
| 618 #endif |
| 619 |
| 616 private: | 620 private: |
| 617 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. | 621 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. |
| 618 | 622 |
| 619 static bool ShouldInlineSmiStringHashCode(const ICData& ic_data); | 623 static bool ShouldInlineSmiStringHashCode(const ICData& ic_data); |
| 620 | 624 |
| 621 void EmitFrameEntry(); | 625 void EmitFrameEntry(); |
| 622 | 626 |
| 623 void AddStaticCallTarget(const Function& function); | 627 void AddStaticCallTarget(const Function& function); |
| 624 | 628 |
| 625 void GenerateDeferredCode(); | 629 void GenerateDeferredCode(); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 const GrowableArray<const Function*>& inline_id_to_function_; | 824 const GrowableArray<const Function*>& inline_id_to_function_; |
| 821 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; | 825 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; |
| 822 const GrowableArray<intptr_t>& caller_inline_id_; | 826 const GrowableArray<intptr_t>& caller_inline_id_; |
| 823 | 827 |
| 824 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 828 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 825 }; | 829 }; |
| 826 | 830 |
| 827 } // namespace dart | 831 } // namespace dart |
| 828 | 832 |
| 829 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 833 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |