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

Unified Diff: runtime/vm/redundancy_elimination.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/redundancy_elimination.h
diff --git a/runtime/vm/redundancy_elimination.h b/runtime/vm/redundancy_elimination.h
index 8fc6dc4dd00c9609a22e55cb31e5d96d4e527b50..47afe2163c284b17d01b57e46256b9f933c363c4 100644
--- a/runtime/vm/redundancy_elimination.h
+++ b/runtime/vm/redundancy_elimination.h
@@ -15,13 +15,9 @@ class CSEInstructionMap;
class AllocationSinking : public ZoneAllocated {
public:
explicit AllocationSinking(FlowGraph* flow_graph)
- : flow_graph_(flow_graph),
- candidates_(5),
- materializations_(5) { }
+ : flow_graph_(flow_graph), candidates_(5), materializations_(5) {}
- const GrowableArray<Definition*>& candidates() const {
- return candidates_;
- }
+ const GrowableArray<Definition*>& candidates() const { return candidates_; }
// Find the materialization insterted for the given allocation
// at the given exit.
@@ -40,7 +36,7 @@ class AllocationSinking : public ZoneAllocated {
// this object.
class ExitsCollector : public ValueObject {
public:
- ExitsCollector() : exits_(10), worklist_(3) { }
+ ExitsCollector() : exits_(10), worklist_(3) {}
const GrowableArray<Instruction*>& exits() const { return exits_; }
@@ -66,10 +62,9 @@ class AllocationSinking : public ZoneAllocated {
void InsertMaterializations(Definition* alloc);
- void CreateMaterializationAt(
- Instruction* exit,
- Definition* alloc,
- const ZoneGrowableArray<const Object*>& fields);
+ void CreateMaterializationAt(Instruction* exit,
+ Definition* alloc,
+ const ZoneGrowableArray<const Object*>& fields);
void EliminateAllocation(Definition* alloc);
@@ -94,10 +89,9 @@ class DominatorBasedCSE : public AllStatic {
static bool Optimize(FlowGraph* graph);
private:
- static bool OptimizeRecursive(
- FlowGraph* graph,
- BlockEntryInstr* entry,
- CSEInstructionMap* map);
+ static bool OptimizeRecursive(FlowGraph* graph,
+ BlockEntryInstr* entry,
+ CSEInstructionMap* map);
};
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698