| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 427 |
| 428 const Class& double_class() const { return double_class_; } | 428 const Class& double_class() const { return double_class_; } |
| 429 const Class& float32x4_class() const { return float32x4_class_; } | 429 const Class& float32x4_class() const { return float32x4_class_; } |
| 430 const Class& int32x4_class() const { return int32x4_class_; } | 430 const Class& int32x4_class() const { return int32x4_class_; } |
| 431 | 431 |
| 432 void SaveLiveRegisters(LocationSummary* locs); | 432 void SaveLiveRegisters(LocationSummary* locs); |
| 433 void RestoreLiveRegisters(LocationSummary* locs); | 433 void RestoreLiveRegisters(LocationSummary* locs); |
| 434 | 434 |
| 435 Environment* SlowPathEnvironmentFor(Instruction* instruction); | 435 Environment* SlowPathEnvironmentFor(Instruction* instruction); |
| 436 | 436 |
| 437 // Returns true if the compiled function has a finally clause. | |
| 438 bool HasFinally() const; | |
| 439 | |
| 440 intptr_t CurrentTryIndex() const { | 437 intptr_t CurrentTryIndex() const { |
| 441 if (current_block_ == NULL) { | 438 if (current_block_ == NULL) { |
| 442 return CatchClauseNode::kInvalidTryIndex; | 439 return CatchClauseNode::kInvalidTryIndex; |
| 443 } | 440 } |
| 444 return current_block_->try_index(); | 441 return current_block_->try_index(); |
| 445 } | 442 } |
| 446 | 443 |
| 447 bool may_reoptimize() const { return may_reoptimize_; } | 444 bool may_reoptimize() const { return may_reoptimize_; } |
| 448 | 445 |
| 449 // Array/list element address computations. | 446 // Array/list element address computations. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 // that should be used when deoptimizing we store it in this variable. | 601 // that should be used when deoptimizing we store it in this variable. |
| 605 // In future AddDeoptStub should be moved out of the instruction template. | 602 // In future AddDeoptStub should be moved out of the instruction template. |
| 606 Environment* pending_deoptimization_env_; | 603 Environment* pending_deoptimization_env_; |
| 607 | 604 |
| 608 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 605 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 609 }; | 606 }; |
| 610 | 607 |
| 611 } // namespace dart | 608 } // namespace dart |
| 612 | 609 |
| 613 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 610 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |