| 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 3327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3338 | 3338 |
| 3339 Location* LocationSlotAt(intptr_t ix) const { | 3339 Location* LocationSlotAt(intptr_t ix) const { |
| 3340 ASSERT((ix >= 0) && (ix < values_.length())); | 3340 ASSERT((ix >= 0) && (ix < values_.length())); |
| 3341 return &locations_[ix]; | 3341 return &locations_[ix]; |
| 3342 } | 3342 } |
| 3343 | 3343 |
| 3344 intptr_t fixed_parameter_count() const { | 3344 intptr_t fixed_parameter_count() const { |
| 3345 return fixed_parameter_count_; | 3345 return fixed_parameter_count_; |
| 3346 } | 3346 } |
| 3347 | 3347 |
| 3348 Environment* Copy() const; | 3348 void CopyTo(Instruction* instr) const; |
| 3349 | 3349 |
| 3350 void PrintTo(BufferFormatter* f) const; | 3350 void PrintTo(BufferFormatter* f) const; |
| 3351 | 3351 |
| 3352 private: | 3352 private: |
| 3353 Environment(intptr_t length, intptr_t fixed_parameter_count) | 3353 Environment(intptr_t length, intptr_t fixed_parameter_count) |
| 3354 : values_(length), | 3354 : values_(length), |
| 3355 locations_(NULL), | 3355 locations_(NULL), |
| 3356 fixed_parameter_count_(fixed_parameter_count) { } | 3356 fixed_parameter_count_(fixed_parameter_count) { } |
| 3357 | 3357 |
| 3358 GrowableArray<Value*> values_; | 3358 GrowableArray<Value*> values_; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3398 ForwardInstructionIterator* current_iterator_; | 3398 ForwardInstructionIterator* current_iterator_; |
| 3399 | 3399 |
| 3400 private: | 3400 private: |
| 3401 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3401 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 3402 }; | 3402 }; |
| 3403 | 3403 |
| 3404 | 3404 |
| 3405 } // namespace dart | 3405 } // namespace dart |
| 3406 | 3406 |
| 3407 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3407 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |