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

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

Issue 10967007: Inlining functions with control flow. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« runtime/vm/flow_graph.cc ('K') | « runtime/vm/il_printer.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) 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 903
904 void InsertPhi(intptr_t var_index, intptr_t var_count); 904 void InsertPhi(intptr_t var_index, intptr_t var_count);
905 void RemoveDeadPhis(); 905 void RemoveDeadPhis();
906 906
907 intptr_t phi_count() const { return phi_count_; } 907 intptr_t phi_count() const { return phi_count_; }
908 908
909 virtual void PrintTo(BufferFormatter* f) const; 909 virtual void PrintTo(BufferFormatter* f) const;
910 virtual void PrintToVisualizer(BufferFormatter* f) const; 910 virtual void PrintToVisualizer(BufferFormatter* f) const;
911 911
912 private: 912 private:
913 friend class FlowGraph; // Access to predecessors_ when inlining.
913 virtual void ClearPredecessors() { predecessors_.Clear(); } 914 virtual void ClearPredecessors() { predecessors_.Clear(); }
914 virtual void AddPredecessor(BlockEntryInstr* predecessor); 915 virtual void AddPredecessor(BlockEntryInstr* predecessor);
915 916
916 GrowableArray<BlockEntryInstr*> predecessors_; 917 GrowableArray<BlockEntryInstr*> predecessors_;
917 ZoneGrowableArray<PhiInstr*>* phis_; 918 ZoneGrowableArray<PhiInstr*>* phis_;
918 intptr_t phi_count_; 919 intptr_t phi_count_;
919 920
920 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr); 921 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr);
921 }; 922 };
922 923
(...skipping 3022 matching lines...) Expand 10 before | Expand all | Expand 10 after
3945 ForwardInstructionIterator* current_iterator_; 3946 ForwardInstructionIterator* current_iterator_;
3946 3947
3947 private: 3948 private:
3948 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 3949 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
3949 }; 3950 };
3950 3951
3951 3952
3952 } // namespace dart 3953 } // namespace dart
3953 3954
3954 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 3955 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« runtime/vm/flow_graph.cc ('K') | « runtime/vm/il_printer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698