| 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 3793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3804 private: | 3804 private: |
| 3805 InstanceCallInstr* instance_call_; | 3805 InstanceCallInstr* instance_call_; |
| 3806 | 3806 |
| 3807 DISALLOW_COPY_AND_ASSIGN(SmiToDoubleInstr); | 3807 DISALLOW_COPY_AND_ASSIGN(SmiToDoubleInstr); |
| 3808 }; | 3808 }; |
| 3809 | 3809 |
| 3810 | 3810 |
| 3811 class CheckClassInstr : public TemplateInstruction<1> { | 3811 class CheckClassInstr : public TemplateInstruction<1> { |
| 3812 public: | 3812 public: |
| 3813 CheckClassInstr(Value* value, | 3813 CheckClassInstr(Value* value, |
| 3814 InstanceCallInstr* instance_call, | 3814 intptr_t deopt_id, |
| 3815 const ICData& unary_checks) | 3815 const ICData& unary_checks) |
| 3816 : unary_checks_(unary_checks) { | 3816 : unary_checks_(unary_checks) { |
| 3817 ASSERT(value != NULL); | 3817 ASSERT(value != NULL); |
| 3818 inputs_[0] = value; | 3818 inputs_[0] = value; |
| 3819 deopt_id_ = instance_call->deopt_id(); | 3819 deopt_id_ = deopt_id; |
| 3820 } | 3820 } |
| 3821 | 3821 |
| 3822 DECLARE_INSTRUCTION(CheckClass) | 3822 DECLARE_INSTRUCTION(CheckClass) |
| 3823 virtual RawAbstractType* CompileType() const; | 3823 virtual RawAbstractType* CompileType() const; |
| 3824 | 3824 |
| 3825 virtual intptr_t ArgumentCount() const { return 0; } | 3825 virtual intptr_t ArgumentCount() const { return 0; } |
| 3826 | 3826 |
| 3827 virtual bool CanDeoptimize() const { return true; } | 3827 virtual bool CanDeoptimize() const { return true; } |
| 3828 | 3828 |
| 3829 virtual bool HasSideEffect() const { return false; } | 3829 virtual bool HasSideEffect() const { return false; } |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4124 ForwardInstructionIterator* current_iterator_; | 4124 ForwardInstructionIterator* current_iterator_; |
| 4125 | 4125 |
| 4126 private: | 4126 private: |
| 4127 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4127 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4128 }; | 4128 }; |
| 4129 | 4129 |
| 4130 | 4130 |
| 4131 } // namespace dart | 4131 } // namespace dart |
| 4132 | 4132 |
| 4133 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4133 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |