| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 422 |
| 423 intptr_t CurrentTryIndex() const { | 423 intptr_t CurrentTryIndex() const { |
| 424 if (current_block_ == NULL) { | 424 if (current_block_ == NULL) { |
| 425 return CatchClauseNode::kInvalidTryIndex; | 425 return CatchClauseNode::kInvalidTryIndex; |
| 426 } | 426 } |
| 427 return current_block_->try_index(); | 427 return current_block_->try_index(); |
| 428 } | 428 } |
| 429 | 429 |
| 430 bool may_reoptimize() const { return may_reoptimize_; } | 430 bool may_reoptimize() const { return may_reoptimize_; } |
| 431 | 431 |
| 432 static const int kLocalsOffsetFromFP = (-1 * kWordSize); | |
| 433 | |
| 434 static Condition FlipCondition(Condition condition); | 432 static Condition FlipCondition(Condition condition); |
| 435 | 433 |
| 436 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r); | 434 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r); |
| 437 | 435 |
| 438 // Array/list element address computations. | 436 // Array/list element address computations. |
| 439 static intptr_t DataOffsetFor(intptr_t cid); | 437 static intptr_t DataOffsetFor(intptr_t cid); |
| 440 static intptr_t ElementSizeFor(intptr_t cid); | 438 static intptr_t ElementSizeFor(intptr_t cid); |
| 441 static FieldAddress ElementAddressForIntIndex(intptr_t cid, | 439 static FieldAddress ElementAddressForIntIndex(intptr_t cid, |
| 442 intptr_t index_scale, | 440 intptr_t index_scale, |
| 443 Register array, | 441 Register array, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 // that should be used when deoptimizing we store it in this variable. | 579 // that should be used when deoptimizing we store it in this variable. |
| 582 // In future AddDeoptStub should be moved out of the instruction template. | 580 // In future AddDeoptStub should be moved out of the instruction template. |
| 583 Environment* pending_deoptimization_env_; | 581 Environment* pending_deoptimization_env_; |
| 584 | 582 |
| 585 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 583 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 586 }; | 584 }; |
| 587 | 585 |
| 588 } // namespace dart | 586 } // namespace dart |
| 589 | 587 |
| 590 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 588 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |