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

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

Issue 12340050: Add DISALLOW_COPY_AND_ASSIGN to subclasses of ValueObject and make ValueObject copyable. Base URL: http://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.h ('k') | runtime/vm/flow_graph_compiler.h » ('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) 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_FLOW_GRAPH_ALLOCATOR_H_ 5 #ifndef VM_FLOW_GRAPH_ALLOCATOR_H_
6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ 6 #define VM_FLOW_GRAPH_ALLOCATOR_H_
7 7
8 #include "vm/growable_array.h" 8 #include "vm/growable_array.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 10
(...skipping 14 matching lines...) Expand all
25 phis_(10) { } 25 phis_(10) { }
26 26
27 BitVector* Get(PhiInstr* phi); 27 BitVector* Get(PhiInstr* phi);
28 28
29 private: 29 private:
30 void AddPhi(PhiInstr* phi); 30 void AddPhi(PhiInstr* phi);
31 void Compute(); 31 void Compute();
32 32
33 const FlowGraph& flow_graph_; 33 const FlowGraph& flow_graph_;
34 GrowableArray<PhiInstr*> phis_; 34 GrowableArray<PhiInstr*> phis_;
35
36 DISALLOW_COPY_AND_ASSIGN(ReachingDefs);
35 }; 37 };
36 38
37 39
38 class FlowGraphAllocator : public ValueObject { 40 class FlowGraphAllocator : public ValueObject {
39 public: 41 public:
40 // Number of stack slots needed for a double spill slot. 42 // Number of stack slots needed for a double spill slot.
41 static const intptr_t kDoubleSpillSlotFactor = kDoubleSize / kWordSize; 43 static const intptr_t kDoubleSpillSlotFactor = kDoubleSize / kWordSize;
42 44
43 explicit FlowGraphAllocator(const FlowGraph& flow_graph); 45 explicit FlowGraphAllocator(const FlowGraph& flow_graph);
44 46
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 659
658 AllocationFinger finger_; 660 AllocationFinger finger_;
659 661
660 DISALLOW_COPY_AND_ASSIGN(LiveRange); 662 DISALLOW_COPY_AND_ASSIGN(LiveRange);
661 }; 663 };
662 664
663 665
664 } // namespace dart 666 } // namespace dart
665 667
666 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ 668 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698