| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 4729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4740 MathUnaryInstr(MethodRecognizer::Kind kind, Value* value, intptr_t deopt_id) | 4740 MathUnaryInstr(MethodRecognizer::Kind kind, Value* value, intptr_t deopt_id) |
| 4741 : kind_(kind) { | 4741 : kind_(kind) { |
| 4742 SetInputAt(0, value); | 4742 SetInputAt(0, value); |
| 4743 deopt_id_ = deopt_id; | 4743 deopt_id_ = deopt_id; |
| 4744 } | 4744 } |
| 4745 | 4745 |
| 4746 Value* value() const { return inputs_[0]; } | 4746 Value* value() const { return inputs_[0]; } |
| 4747 MethodRecognizer::Kind kind() const { return kind_; } | 4747 MethodRecognizer::Kind kind() const { return kind_; } |
| 4748 const RuntimeEntry& TargetFunction() const; | 4748 const RuntimeEntry& TargetFunction() const; |
| 4749 | 4749 |
| 4750 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 4751 |
| 4750 virtual bool CanDeoptimize() const { return false; } | 4752 virtual bool CanDeoptimize() const { return false; } |
| 4751 | 4753 |
| 4752 virtual Representation representation() const { | 4754 virtual Representation representation() const { |
| 4753 return kUnboxedDouble; | 4755 return kUnboxedDouble; |
| 4754 } | 4756 } |
| 4755 | 4757 |
| 4756 virtual Representation RequiredInputRepresentation(intptr_t idx) const { | 4758 virtual Representation RequiredInputRepresentation(intptr_t idx) const { |
| 4757 ASSERT(idx == 0); | 4759 ASSERT(idx == 0); |
| 4758 return kUnboxedDouble; | 4760 return kUnboxedDouble; |
| 4759 } | 4761 } |
| (...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6893 ForwardInstructionIterator* current_iterator_; | 6895 ForwardInstructionIterator* current_iterator_; |
| 6894 | 6896 |
| 6895 private: | 6897 private: |
| 6896 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6898 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6897 }; | 6899 }; |
| 6898 | 6900 |
| 6899 | 6901 |
| 6900 } // namespace dart | 6902 } // namespace dart |
| 6901 | 6903 |
| 6902 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6904 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |