Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 10857056: Replaced Value by Definition in the renaming environment. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Patch title. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698