| 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 4064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4075 kLengthPos = 1 | 4075 kLengthPos = 1 |
| 4076 }; | 4076 }; |
| 4077 | 4077 |
| 4078 DECLARE_INSTRUCTION(CreateArray) | 4078 DECLARE_INSTRUCTION(CreateArray) |
| 4079 virtual CompileType ComputeType() const; | 4079 virtual CompileType ComputeType() const; |
| 4080 | 4080 |
| 4081 virtual intptr_t token_pos() const { return token_pos_; } | 4081 virtual intptr_t token_pos() const { return token_pos_; } |
| 4082 Value* element_type() const { return inputs_[kElementTypePos]; } | 4082 Value* element_type() const { return inputs_[kElementTypePos]; } |
| 4083 Value* num_elements() const { return inputs_[kLengthPos]; } | 4083 Value* num_elements() const { return inputs_[kLengthPos]; } |
| 4084 | 4084 |
| 4085 virtual void PrintOperandsTo(BufferFormatter* f) const; | |
| 4086 | |
| 4087 // Throw needs environment, which is created only if instruction can | 4085 // Throw needs environment, which is created only if instruction can |
| 4088 // deoptimize. | 4086 // deoptimize. |
| 4089 virtual bool CanDeoptimize() const { return MayThrow(); } | 4087 virtual bool CanDeoptimize() const { return MayThrow(); } |
| 4090 | 4088 |
| 4091 virtual EffectSet Effects() const { return EffectSet::None(); } | 4089 virtual EffectSet Effects() const { return EffectSet::None(); } |
| 4092 | 4090 |
| 4093 // OutOfMemoryError can be called. | 4091 // OutOfMemoryError can be called. |
| 4094 virtual bool MayThrow() const { return true; } | 4092 virtual bool MayThrow() const { return true; } |
| 4095 | 4093 |
| 4096 virtual AliasIdentity Identity() const { return identity_; } | 4094 virtual AliasIdentity Identity() const { return identity_; } |
| (...skipping 4044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8141 ForwardInstructionIterator* current_iterator_; | 8139 ForwardInstructionIterator* current_iterator_; |
| 8142 | 8140 |
| 8143 private: | 8141 private: |
| 8144 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 8142 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 8145 }; | 8143 }; |
| 8146 | 8144 |
| 8147 | 8145 |
| 8148 } // namespace dart | 8146 } // namespace dart |
| 8149 | 8147 |
| 8150 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8148 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |