| 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 3326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3337 SetInputAt(0, value); | 3337 SetInputAt(0, value); |
| 3338 } | 3338 } |
| 3339 | 3339 |
| 3340 DECLARE_INSTRUCTION(LoadField) | 3340 DECLARE_INSTRUCTION(LoadField) |
| 3341 virtual CompileType ComputeType() const; | 3341 virtual CompileType ComputeType() const; |
| 3342 | 3342 |
| 3343 Value* value() const { return inputs_[0]; } | 3343 Value* value() const { return inputs_[0]; } |
| 3344 intptr_t offset_in_bytes() const { return offset_in_bytes_; } | 3344 intptr_t offset_in_bytes() const { return offset_in_bytes_; } |
| 3345 const AbstractType& type() const { return type_; } | 3345 const AbstractType& type() const { return type_; } |
| 3346 void set_result_cid(intptr_t value) { result_cid_ = value; } | 3346 void set_result_cid(intptr_t value) { result_cid_ = value; } |
| 3347 intptr_t result_cid() const { return result_cid_; } |
| 3347 | 3348 |
| 3348 virtual void PrintOperandsTo(BufferFormatter* f) const; | 3349 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 3349 | 3350 |
| 3350 virtual bool CanDeoptimize() const { return false; } | 3351 virtual bool CanDeoptimize() const { return false; } |
| 3351 | 3352 |
| 3352 virtual bool HasSideEffect() const { return false; } | 3353 virtual bool HasSideEffect() const { return false; } |
| 3353 | 3354 |
| 3354 virtual bool AttributesEqual(Instruction* other) const; | 3355 virtual bool AttributesEqual(Instruction* other) const; |
| 3355 | 3356 |
| 3356 virtual bool AffectedBySideEffect() const { return !immutable_; } | 3357 virtual bool AffectedBySideEffect() const { return !immutable_; } |
| (...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4676 ForwardInstructionIterator* current_iterator_; | 4677 ForwardInstructionIterator* current_iterator_; |
| 4677 | 4678 |
| 4678 private: | 4679 private: |
| 4679 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4680 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4680 }; | 4681 }; |
| 4681 | 4682 |
| 4682 | 4683 |
| 4683 } // namespace dart | 4684 } // namespace dart |
| 4684 | 4685 |
| 4685 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4686 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |