| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 397 |
| 398 // Returns true if there is a next block after the current one in | 398 // Returns true if there is a next block after the current one in |
| 399 // the block order and if it is the given block. | 399 // the block order and if it is the given block. |
| 400 bool CanFallThroughTo(BlockEntryInstr* block_entry) const; | 400 bool CanFallThroughTo(BlockEntryInstr* block_entry) const; |
| 401 | 401 |
| 402 void AddExceptionHandler(intptr_t try_index, | 402 void AddExceptionHandler(intptr_t try_index, |
| 403 intptr_t outer_try_index, | 403 intptr_t outer_try_index, |
| 404 intptr_t pc_offset, | 404 intptr_t pc_offset, |
| 405 const Array& handler_types, | 405 const Array& handler_types, |
| 406 bool needs_stacktrace); | 406 bool needs_stacktrace); |
| 407 void SetNeedsStacktrace(intptr_t try_index); |
| 407 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 408 void AddCurrentDescriptor(PcDescriptors::Kind kind, |
| 408 intptr_t deopt_id, | 409 intptr_t deopt_id, |
| 409 intptr_t token_pos); | 410 intptr_t token_pos); |
| 410 | 411 |
| 411 void RecordSafepoint(LocationSummary* locs); | 412 void RecordSafepoint(LocationSummary* locs); |
| 412 | 413 |
| 413 Label* AddDeoptStub(intptr_t deopt_id, DeoptReasonId reason); | 414 Label* AddDeoptStub(intptr_t deopt_id, DeoptReasonId reason); |
| 414 | 415 |
| 415 void AddDeoptIndexAtCall(intptr_t deopt_id, intptr_t token_pos); | 416 void AddDeoptIndexAtCall(intptr_t deopt_id, intptr_t token_pos); |
| 416 | 417 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // that should be used when deoptimizing we store it in this variable. | 604 // that should be used when deoptimizing we store it in this variable. |
| 604 // In future AddDeoptStub should be moved out of the instruction template. | 605 // In future AddDeoptStub should be moved out of the instruction template. |
| 605 Environment* pending_deoptimization_env_; | 606 Environment* pending_deoptimization_env_; |
| 606 | 607 |
| 607 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 608 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 608 }; | 609 }; |
| 609 | 610 |
| 610 } // namespace dart | 611 } // namespace dart |
| 611 | 612 |
| 612 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 613 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |