| 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 6713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6724 virtual EffectSet Effects() const { return EffectSet::None(); } | 6724 virtual EffectSet Effects() const { return EffectSet::None(); } |
| 6725 virtual EffectSet Dependencies() const { return EffectSet::None(); } | 6725 virtual EffectSet Dependencies() const { return EffectSet::None(); } |
| 6726 virtual bool AttributesEqual(Instruction* other) const { | 6726 virtual bool AttributesEqual(Instruction* other) const { |
| 6727 InvokeMathCFunctionInstr* other_invoke = other->AsInvokeMathCFunction(); | 6727 InvokeMathCFunctionInstr* other_invoke = other->AsInvokeMathCFunction(); |
| 6728 return other_invoke->recognized_kind() == recognized_kind(); | 6728 return other_invoke->recognized_kind() == recognized_kind(); |
| 6729 } | 6729 } |
| 6730 | 6730 |
| 6731 virtual bool MayThrow() const { return false; } | 6731 virtual bool MayThrow() const { return false; } |
| 6732 | 6732 |
| 6733 private: | 6733 private: |
| 6734 static const intptr_t kSavedSpTempIndex = 0; |
| 6735 static const intptr_t kObjectTempIndex = 1; |
| 6736 static const intptr_t kDoubleTempIndex = 2; |
| 6734 virtual void RawSetInputAt(intptr_t i, Value* value) { | 6737 virtual void RawSetInputAt(intptr_t i, Value* value) { |
| 6735 (*inputs_)[i] = value; | 6738 (*inputs_)[i] = value; |
| 6736 } | 6739 } |
| 6737 | 6740 |
| 6738 ZoneGrowableArray<Value*>* inputs_; | 6741 ZoneGrowableArray<Value*>* inputs_; |
| 6739 | 6742 |
| 6740 const MethodRecognizer::Kind recognized_kind_; | 6743 const MethodRecognizer::Kind recognized_kind_; |
| 6741 | 6744 |
| 6742 DISALLOW_COPY_AND_ASSIGN(InvokeMathCFunctionInstr); | 6745 DISALLOW_COPY_AND_ASSIGN(InvokeMathCFunctionInstr); |
| 6743 }; | 6746 }; |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7180 ForwardInstructionIterator* current_iterator_; | 7183 ForwardInstructionIterator* current_iterator_; |
| 7181 | 7184 |
| 7182 private: | 7185 private: |
| 7183 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7186 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7184 }; | 7187 }; |
| 7185 | 7188 |
| 7186 | 7189 |
| 7187 } // namespace dart | 7190 } // namespace dart |
| 7188 | 7191 |
| 7189 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7192 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |