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

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

Issue 16373003: Reduce inlining threshold as a temporary workaround for crashes (Issue 11048). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 } 1045 }
1046 1046
1047 MoveOperands* AddMove(Location dest, Location src) { 1047 MoveOperands* AddMove(Location dest, Location src) {
1048 MoveOperands* move = new MoveOperands(dest, src); 1048 MoveOperands* move = new MoveOperands(dest, src);
1049 moves_.Add(move); 1049 moves_.Add(move);
1050 return move; 1050 return move;
1051 } 1051 }
1052 1052
1053 MoveOperands* MoveOperandsAt(intptr_t index) const { return moves_[index]; } 1053 MoveOperands* MoveOperandsAt(intptr_t index) const { return moves_[index]; }
1054 1054
1055 void SetSrcSlotAt(intptr_t index, const Location& loc);
1056 void SetDestSlotAt(intptr_t index, const Location& loc);
1057
1058 intptr_t NumMoves() const { return moves_.length(); } 1055 intptr_t NumMoves() const { return moves_.length(); }
1059 1056
1060 virtual void PrintTo(BufferFormatter* f) const; 1057 virtual void PrintTo(BufferFormatter* f) const;
1061 1058
1062 virtual bool MayThrow() const { return false; } 1059 virtual bool MayThrow() const { return false; }
1063 1060
1064 private: 1061 private:
1065 GrowableArray<MoveOperands*> moves_; // Elements cannot be null. 1062 GrowableArray<MoveOperands*> moves_; // Elements cannot be null.
1066 1063
1067 DISALLOW_COPY_AND_ASSIGN(ParallelMoveInstr); 1064 DISALLOW_COPY_AND_ASSIGN(ParallelMoveInstr);
(...skipping 5407 matching lines...) Expand 10 before | Expand all | Expand 10 after
6475 ForwardInstructionIterator* current_iterator_; 6472 ForwardInstructionIterator* current_iterator_;
6476 6473
6477 private: 6474 private:
6478 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6475 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6479 }; 6476 };
6480 6477
6481 6478
6482 } // namespace dart 6479 } // namespace dart
6483 6480
6484 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6481 #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