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

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

Issue 23190029: Cleanup of deoptimization environment copying functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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_type_propagator.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) 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 6683 matching lines...) Expand 10 before | Expand all | Expand 10 after
6694 intptr_t deopt_id, 6694 intptr_t deopt_id,
6695 const Function& function, 6695 const Function& function,
6696 Environment* outer) 6696 Environment* outer)
6697 : values_(length), 6697 : values_(length),
6698 locations_(NULL), 6698 locations_(NULL),
6699 fixed_parameter_count_(fixed_parameter_count), 6699 fixed_parameter_count_(fixed_parameter_count),
6700 deopt_id_(deopt_id), 6700 deopt_id_(deopt_id),
6701 function_(function), 6701 function_(function),
6702 outer_(outer) { } 6702 outer_(outer) { }
6703 6703
6704 // Deep copy the environment. A 'length' parameter can be given, which 6704 // Deep copy a non-NULL environment. A 'length' parameter can be given,
srdjan 2013/08/22 15:45:31 This may be redundant information as non-NULL is s
Kevin Millikin (Google) 2013/08/26 08:59:11 OK, removed.
6705 // may be less than the environment's length in order to drop values 6705 // which may be less than the environment's length in order to drop values
6706 // (e.g., passed arguments) from the copy. 6706 // (e.g., passed arguments) from the copy.
6707 Environment* DeepCopy() const; 6707 Environment* DeepCopy() const { return DeepCopy(Length()); }
6708 Environment* DeepCopy(intptr_t length) const; 6708 Environment* DeepCopy(intptr_t length) const;
6709 6709
6710 GrowableArray<Value*> values_; 6710 GrowableArray<Value*> values_;
6711 Location* locations_; 6711 Location* locations_;
6712 const intptr_t fixed_parameter_count_; 6712 const intptr_t fixed_parameter_count_;
6713 intptr_t deopt_id_; 6713 intptr_t deopt_id_;
6714 const Function& function_; 6714 const Function& function_;
6715 Environment* outer_; 6715 Environment* outer_;
6716 6716
6717 DISALLOW_COPY_AND_ASSIGN(Environment); 6717 DISALLOW_COPY_AND_ASSIGN(Environment);
(...skipping 30 matching lines...) Expand all
6748 ForwardInstructionIterator* current_iterator_; 6748 ForwardInstructionIterator* current_iterator_;
6749 6749
6750 private: 6750 private:
6751 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6751 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6752 }; 6752 };
6753 6753
6754 6754
6755 } // namespace dart 6755 } // namespace dart
6756 6756
6757 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6757 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698