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

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

Issue 12518009: Remove virtual functions on class InliningContext. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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_inliner.cc ('k') | no next file » | 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 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 void InsertPhi(intptr_t var_index, intptr_t var_count); 1147 void InsertPhi(intptr_t var_index, intptr_t var_count);
1148 void RemoveDeadPhis(Definition* replacement); 1148 void RemoveDeadPhis(Definition* replacement);
1149 1149
1150 void InsertPhi(PhiInstr* phi); 1150 void InsertPhi(PhiInstr* phi);
1151 1151
1152 virtual void PrintTo(BufferFormatter* f) const; 1152 virtual void PrintTo(BufferFormatter* f) const;
1153 1153
1154 private: 1154 private:
1155 // Classes that have access to predecessors_ when inlining. 1155 // Classes that have access to predecessors_ when inlining.
1156 friend class BlockEntryInstr; 1156 friend class BlockEntryInstr;
1157 friend class ValueInliningContext; 1157 friend class InliningContext;
1158 1158
1159 // Direct access to phis_ in order to resize it due to phi elimination. 1159 // Direct access to phis_ in order to resize it due to phi elimination.
1160 friend class ConstantPropagator; 1160 friend class ConstantPropagator;
1161 1161
1162 virtual void ClearPredecessors() { predecessors_.Clear(); } 1162 virtual void ClearPredecessors() { predecessors_.Clear(); }
1163 virtual void AddPredecessor(BlockEntryInstr* predecessor); 1163 virtual void AddPredecessor(BlockEntryInstr* predecessor);
1164 1164
1165 GrowableArray<BlockEntryInstr*> predecessors_; 1165 GrowableArray<BlockEntryInstr*> predecessors_;
1166 ZoneGrowableArray<PhiInstr*>* phis_; 1166 ZoneGrowableArray<PhiInstr*>* phis_;
1167 1167
(...skipping 3336 matching lines...) Expand 10 before | Expand all | Expand 10 after
4504 ForwardInstructionIterator* current_iterator_; 4504 ForwardInstructionIterator* current_iterator_;
4505 4505
4506 private: 4506 private:
4507 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4507 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4508 }; 4508 };
4509 4509
4510 4510
4511 } // namespace dart 4511 } // namespace dart
4512 4512
4513 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4513 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698