| 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 4055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4066 ZoneGrowableArray<Value*>* values) | 4066 ZoneGrowableArray<Value*>* values) |
| 4067 : cls_(cls), fields_(fields), values_(values), locations_(NULL) { | 4067 : cls_(cls), fields_(fields), values_(values), locations_(NULL) { |
| 4068 ASSERT(fields_.length() == values_->length()); | 4068 ASSERT(fields_.length() == values_->length()); |
| 4069 for (intptr_t i = 0; i < InputCount(); i++) { | 4069 for (intptr_t i = 0; i < InputCount(); i++) { |
| 4070 InputAt(i)->set_instruction(this); | 4070 InputAt(i)->set_instruction(this); |
| 4071 InputAt(i)->set_use_index(i); | 4071 InputAt(i)->set_use_index(i); |
| 4072 } | 4072 } |
| 4073 } | 4073 } |
| 4074 | 4074 |
| 4075 const Class& cls() const { return cls_; } | 4075 const Class& cls() const { return cls_; } |
| 4076 const Field& FieldAt(intptr_t i) const { | 4076 intptr_t FieldOffsetAt(intptr_t i) const { |
| 4077 return *fields_[i]; | 4077 return fields_[i]->Offset(); |
| 4078 } | 4078 } |
| 4079 const Location& LocationAt(intptr_t i) { | 4079 const Location& LocationAt(intptr_t i) { |
| 4080 return locations_[i]; | 4080 return locations_[i]; |
| 4081 } | 4081 } |
| 4082 | 4082 |
| 4083 DECLARE_INSTRUCTION(MaterializeObject) | 4083 DECLARE_INSTRUCTION(MaterializeObject) |
| 4084 virtual void PrintOperandsTo(BufferFormatter* f) const; | 4084 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 4085 | 4085 |
| 4086 virtual intptr_t InputCount() const { | 4086 virtual intptr_t InputCount() const { |
| 4087 return values_->length(); | 4087 return values_->length(); |
| (...skipping 3095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7183 ForwardInstructionIterator* current_iterator_; | 7183 ForwardInstructionIterator* current_iterator_; |
| 7184 | 7184 |
| 7185 private: | 7185 private: |
| 7186 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7186 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7187 }; | 7187 }; |
| 7188 | 7188 |
| 7189 | 7189 |
| 7190 } // namespace dart | 7190 } // namespace dart |
| 7191 | 7191 |
| 7192 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7192 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |