| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 | 184 |
| 185 class SlowPathCode : public ZoneAllocated { | 185 class SlowPathCode : public ZoneAllocated { |
| 186 public: | 186 public: |
| 187 SlowPathCode() : entry_label_(), exit_label_() { } | 187 SlowPathCode() : entry_label_(), exit_label_() { } |
| 188 virtual ~SlowPathCode() { } | 188 virtual ~SlowPathCode() { } |
| 189 | 189 |
| 190 Label* entry_label() { return &entry_label_; } | 190 Label* entry_label() { return &entry_label_; } |
| 191 Label* exit_label() { return &exit_label_; } | 191 Label* exit_label() { return &exit_label_; } |
| 192 | 192 |
| 193 void GenerateCode(FlowGraphCompiler* compiler) { |
| 194 ASSERT(exit_label_.IsBound()); |
| 195 EmitNativeCode(compiler); |
| 196 ASSERT(entry_label_.IsBound()); |
| 197 } |
| 198 |
| 199 private: |
| 193 virtual void EmitNativeCode(FlowGraphCompiler* compiler) = 0; | 200 virtual void EmitNativeCode(FlowGraphCompiler* compiler) = 0; |
| 194 | 201 |
| 195 private: | |
| 196 Label entry_label_; | 202 Label entry_label_; |
| 197 Label exit_label_; | 203 Label exit_label_; |
| 198 | 204 |
| 199 DISALLOW_COPY_AND_ASSIGN(SlowPathCode); | 205 DISALLOW_COPY_AND_ASSIGN(SlowPathCode); |
| 200 }; | 206 }; |
| 201 | 207 |
| 202 | 208 |
| 203 struct CidTarget { | 209 struct CidTarget { |
| 204 intptr_t cid; | 210 intptr_t cid; |
| 205 Function* target; | 211 Function* target; |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 intptr_t lazy_deopt_pc_offset_; | 636 intptr_t lazy_deopt_pc_offset_; |
| 631 | 637 |
| 632 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; | 638 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; |
| 633 | 639 |
| 634 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 640 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 635 }; | 641 }; |
| 636 | 642 |
| 637 } // namespace dart | 643 } // namespace dart |
| 638 | 644 |
| 639 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 645 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |