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

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

Issue 10870100: Environment sets the environment position when copying to maintain the use lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Set the env. Created 8 years, 3 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_optimizer.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 3327 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698