| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 private: | 616 private: |
| 617 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. | 617 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. |
| 618 | 618 |
| 619 static bool ShouldInlineSmiStringHashCode(const ICData& ic_data); |
| 620 |
| 619 void EmitFrameEntry(); | 621 void EmitFrameEntry(); |
| 620 | 622 |
| 621 void AddStaticCallTarget(const Function& function); | 623 void AddStaticCallTarget(const Function& function); |
| 622 | 624 |
| 623 void GenerateDeferredCode(); | 625 void GenerateDeferredCode(); |
| 624 | 626 |
| 625 void EmitInstructionPrologue(Instruction* instr); | 627 void EmitInstructionPrologue(Instruction* instr); |
| 626 void EmitInstructionEpilogue(Instruction* instr); | 628 void EmitInstructionEpilogue(Instruction* instr); |
| 627 | 629 |
| 628 // Emit code to load a Value into register 'dst'. | 630 // Emit code to load a Value into register 'dst'. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 const GrowableArray<const Function*>& inline_id_to_function_; | 820 const GrowableArray<const Function*>& inline_id_to_function_; |
| 819 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; | 821 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; |
| 820 const GrowableArray<intptr_t>& caller_inline_id_; | 822 const GrowableArray<intptr_t>& caller_inline_id_; |
| 821 | 823 |
| 822 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 824 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 823 }; | 825 }; |
| 824 | 826 |
| 825 } // namespace dart | 827 } // namespace dart |
| 826 | 828 |
| 827 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 829 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |