| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 Environment* deopt_env) | 119 Environment* deopt_env) |
| 120 : pc_offset_(-1), | 120 : pc_offset_(-1), |
| 121 deopt_id_(deopt_id), | 121 deopt_id_(deopt_id), |
| 122 reason_(reason), | 122 reason_(reason), |
| 123 flags_(flags), | 123 flags_(flags), |
| 124 deopt_env_(deopt_env) { | 124 deopt_env_(deopt_env) { |
| 125 ASSERT(deopt_env != NULL); | 125 ASSERT(deopt_env != NULL); |
| 126 } | 126 } |
| 127 virtual ~CompilerDeoptInfo() { } | 127 virtual ~CompilerDeoptInfo() { } |
| 128 | 128 |
| 129 RawDeoptInfo* CreateDeoptInfo(FlowGraphCompiler* compiler, | 129 RawTypedData* CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 130 DeoptInfoBuilder* builder, | 130 DeoptInfoBuilder* builder, |
| 131 const Array& deopt_table); | 131 const Array& deopt_table); |
| 132 | 132 |
| 133 | 133 |
| 134 // No code needs to be generated. | 134 // No code needs to be generated. |
| 135 virtual void GenerateCode(FlowGraphCompiler* compiler, intptr_t stub_ix) {} | 135 virtual void GenerateCode(FlowGraphCompiler* compiler, intptr_t stub_ix) {} |
| 136 | 136 |
| 137 intptr_t pc_offset() const { return pc_offset_; } | 137 intptr_t pc_offset() const { return pc_offset_; } |
| 138 void set_pc_offset(intptr_t offset) { pc_offset_ = offset; } | 138 void set_pc_offset(intptr_t offset) { pc_offset_ = offset; } |
| 139 | 139 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 const Array* inlined_code_intervals_; | 711 const Array* inlined_code_intervals_; |
| 712 const GrowableArray<const Function*>& inline_id_to_function_; | 712 const GrowableArray<const Function*>& inline_id_to_function_; |
| 713 const GrowableArray<intptr_t>& caller_inline_id_; | 713 const GrowableArray<intptr_t>& caller_inline_id_; |
| 714 | 714 |
| 715 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 715 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 716 }; | 716 }; |
| 717 | 717 |
| 718 } // namespace dart | 718 } // namespace dart |
| 719 | 719 |
| 720 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 720 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |