| 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 3836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3847 InstanceCallInstr* instance_call_; | 3847 InstanceCallInstr* instance_call_; |
| 3848 | 3848 |
| 3849 DISALLOW_COPY_AND_ASSIGN(DoubleToIntegerInstr); | 3849 DISALLOW_COPY_AND_ASSIGN(DoubleToIntegerInstr); |
| 3850 }; | 3850 }; |
| 3851 | 3851 |
| 3852 | 3852 |
| 3853 class CheckClassInstr : public TemplateInstruction<1> { | 3853 class CheckClassInstr : public TemplateInstruction<1> { |
| 3854 public: | 3854 public: |
| 3855 CheckClassInstr(Value* value, | 3855 CheckClassInstr(Value* value, |
| 3856 intptr_t deopt_id, | 3856 intptr_t deopt_id, |
| 3857 const ICData& unary_checks) | 3857 const ICData& unary_checks); |
| 3858 : unary_checks_(unary_checks) { | |
| 3859 ASSERT(value != NULL); | |
| 3860 inputs_[0] = value; | |
| 3861 deopt_id_ = deopt_id; | |
| 3862 } | |
| 3863 | 3858 |
| 3864 DECLARE_INSTRUCTION(CheckClass) | 3859 DECLARE_INSTRUCTION(CheckClass) |
| 3865 virtual RawAbstractType* CompileType() const; | 3860 virtual RawAbstractType* CompileType() const; |
| 3866 | 3861 |
| 3867 virtual intptr_t ArgumentCount() const { return 0; } | 3862 virtual intptr_t ArgumentCount() const { return 0; } |
| 3868 | 3863 |
| 3869 virtual bool CanDeoptimize() const { return true; } | 3864 virtual bool CanDeoptimize() const { return true; } |
| 3870 | 3865 |
| 3871 virtual bool HasSideEffect() const { return false; } | 3866 virtual bool HasSideEffect() const { return false; } |
| 3872 | 3867 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4166 ForwardInstructionIterator* current_iterator_; | 4161 ForwardInstructionIterator* current_iterator_; |
| 4167 | 4162 |
| 4168 private: | 4163 private: |
| 4169 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4164 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4170 }; | 4165 }; |
| 4171 | 4166 |
| 4172 | 4167 |
| 4173 } // namespace dart | 4168 } // namespace dart |
| 4174 | 4169 |
| 4175 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4170 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |