| 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 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2875 | 2875 |
| 2876 DISALLOW_COPY_AND_ASSIGN(BranchInstr); | 2876 DISALLOW_COPY_AND_ASSIGN(BranchInstr); |
| 2877 }; | 2877 }; |
| 2878 | 2878 |
| 2879 | 2879 |
| 2880 #undef DECLARE_INSTRUCTION | 2880 #undef DECLARE_INSTRUCTION |
| 2881 | 2881 |
| 2882 | 2882 |
| 2883 class Environment : public ZoneAllocated { | 2883 class Environment : public ZoneAllocated { |
| 2884 public: | 2884 public: |
| 2885 // Construct an environment by copying from an array of values. | 2885 // Construct an environment by constructing uses from an array of definitions. |
| 2886 explicit Environment(const GrowableArray<Value*>& values, | 2886 Environment(const GrowableArray<Definition*>& definitions, |
| 2887 intptr_t fixed_parameter_count) | 2887 intptr_t fixed_parameter_count); |
| 2888 : values_(values.length()), | |
| 2889 locations_(NULL), | |
| 2890 fixed_parameter_count_(fixed_parameter_count) { | |
| 2891 values_.AddArray(values); | |
| 2892 } | |
| 2893 | 2888 |
| 2894 void set_locations(Location* locations) { | 2889 void set_locations(Location* locations) { |
| 2895 ASSERT(locations_ == NULL); | 2890 ASSERT(locations_ == NULL); |
| 2896 locations_ = locations; | 2891 locations_ = locations; |
| 2897 } | 2892 } |
| 2898 | 2893 |
| 2899 const GrowableArray<Value*>& values() const { | 2894 const GrowableArray<Value*>& values() const { |
| 2900 return values_; | 2895 return values_; |
| 2901 } | 2896 } |
| 2902 | 2897 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2964 ForwardInstructionIterator* current_iterator_; | 2959 ForwardInstructionIterator* current_iterator_; |
| 2965 | 2960 |
| 2966 private: | 2961 private: |
| 2967 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 2962 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 2968 }; | 2963 }; |
| 2969 | 2964 |
| 2970 | 2965 |
| 2971 } // namespace dart | 2966 } // namespace dart |
| 2972 | 2967 |
| 2973 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 2968 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |