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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 return CatchClauseNode::kInvalidTryIndex; | 443 return CatchClauseNode::kInvalidTryIndex; |
444 } | 444 } |
445 return current_block_->try_index(); | 445 return current_block_->try_index(); |
446 } | 446 } |
447 | 447 |
448 bool may_reoptimize() const { return may_reoptimize_; } | 448 bool may_reoptimize() const { return may_reoptimize_; } |
449 | 449 |
450 // Array/list element address computations. | 450 // Array/list element address computations. |
451 static intptr_t DataOffsetFor(intptr_t cid); | 451 static intptr_t DataOffsetFor(intptr_t cid); |
452 static intptr_t ElementSizeFor(intptr_t cid); | 452 static intptr_t ElementSizeFor(intptr_t cid); |
453 static FieldAddress ElementAddressForIntIndex(intptr_t cid, | 453 static Address ElementAddressForIntIndex(intptr_t cid, |
454 intptr_t index_scale, | 454 intptr_t index_scale, |
455 Register array, | 455 Register array, |
456 intptr_t offset); | 456 intptr_t offset); |
457 static FieldAddress ElementAddressForRegIndex(intptr_t cid, | 457 static Address ElementAddressForRegIndex(intptr_t cid, |
458 intptr_t index_scale, | 458 intptr_t index_scale, |
459 Register array, | 459 Register array, |
460 Register index); | 460 Register index); |
461 static Address ExternalElementAddressForIntIndex(intptr_t index_scale, | 461 static Address ExternalElementAddressForIntIndex(intptr_t index_scale, |
462 Register array, | 462 Register array, |
463 intptr_t offset); | 463 intptr_t offset); |
464 static Address ExternalElementAddressForRegIndex(intptr_t index_scale, | 464 static Address ExternalElementAddressForRegIndex(intptr_t index_scale, |
465 Register array, | 465 Register array, |
466 Register index); | 466 Register index); |
467 | 467 |
468 // Returns 'sorted' array in decreasing count order. | 468 // Returns 'sorted' array in decreasing count order. |
469 static void SortICDataByCount(const ICData& ic_data, | 469 static void SortICDataByCount(const ICData& ic_data, |
470 GrowableArray<CidTarget>* sorted); | 470 GrowableArray<CidTarget>* sorted); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 // that should be used when deoptimizing we store it in this variable. | 608 // that should be used when deoptimizing we store it in this variable. |
609 // In future AddDeoptStub should be moved out of the instruction template. | 609 // In future AddDeoptStub should be moved out of the instruction template. |
610 Environment* pending_deoptimization_env_; | 610 Environment* pending_deoptimization_env_; |
611 | 611 |
612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
613 }; | 613 }; |
614 | 614 |
615 } // namespace dart | 615 } // namespace dart |
616 | 616 |
617 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 617 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |