| 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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 3520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3531 deopt_id_ = instance_call->deopt_id(); | 3531 deopt_id_ = instance_call->deopt_id(); |
| 3532 } | 3532 } |
| 3533 | 3533 |
| 3534 Value* left() const { return inputs_[0]; } | 3534 Value* left() const { return inputs_[0]; } |
| 3535 Value* right() const { return inputs_[1]; } | 3535 Value* right() const { return inputs_[1]; } |
| 3536 | 3536 |
| 3537 Token::Kind op_kind() const { return op_kind_; } | 3537 Token::Kind op_kind() const { return op_kind_; } |
| 3538 | 3538 |
| 3539 virtual void PrintOperandsTo(BufferFormatter* f) const; | 3539 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 3540 | 3540 |
| 3541 virtual bool CanDeoptimize() const { return false; } | 3541 virtual bool CanDeoptimize() const { |
| 3542 return (op_kind() == Token::kADD) || (op_kind() == Token::kSUB); |
| 3543 } |
| 3542 | 3544 |
| 3543 virtual bool HasSideEffect() const { return false; } | 3545 virtual bool HasSideEffect() const { return false; } |
| 3544 | 3546 |
| 3545 virtual bool AffectedBySideEffect() const { return false; } | 3547 virtual bool AffectedBySideEffect() const { return false; } |
| 3546 | 3548 |
| 3547 virtual bool AttributesEqual(Instruction* other) const { | 3549 virtual bool AttributesEqual(Instruction* other) const { |
| 3548 return op_kind() == other->AsUnboxedMintBinaryOp()->op_kind(); | 3550 return op_kind() == other->AsUnboxedMintBinaryOp()->op_kind(); |
| 3549 } | 3551 } |
| 3550 | 3552 |
| 3551 virtual intptr_t ResultCid() const; | 3553 virtual intptr_t ResultCid() const; |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4101 ForwardInstructionIterator* current_iterator_; | 4103 ForwardInstructionIterator* current_iterator_; |
| 4102 | 4104 |
| 4103 private: | 4105 private: |
| 4104 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4106 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4105 }; | 4107 }; |
| 4106 | 4108 |
| 4107 | 4109 |
| 4108 } // namespace dart | 4110 } // namespace dart |
| 4109 | 4111 |
| 4110 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4112 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |