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

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

Issue 10979078: Revert several inlining related changes. (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
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | tests/language/deopt_inlined_function_lazy_test.dart » ('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 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.
914 virtual void ClearPredecessors() { predecessors_.Clear(); } 913 virtual void ClearPredecessors() { predecessors_.Clear(); }
915 virtual void AddPredecessor(BlockEntryInstr* predecessor); 914 virtual void AddPredecessor(BlockEntryInstr* predecessor);
916 915
917 GrowableArray<BlockEntryInstr*> predecessors_; 916 GrowableArray<BlockEntryInstr*> predecessors_;
918 ZoneGrowableArray<PhiInstr*>* phis_; 917 ZoneGrowableArray<PhiInstr*>* phis_;
919 intptr_t phi_count_; 918 intptr_t phi_count_;
920 919
921 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr); 920 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr);
922 }; 921 };
923 922
(...skipping 3042 matching lines...) Expand 10 before | Expand all | Expand 10 after
3966 ForwardInstructionIterator* current_iterator_; 3965 ForwardInstructionIterator* current_iterator_;
3967 3966
3968 private: 3967 private:
3969 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 3968 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
3970 }; 3969 };
3971 3970
3972 3971
3973 } // namespace dart 3972 } // namespace dart
3974 3973
3975 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 3974 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | tests/language/deopt_inlined_function_lazy_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698