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

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

Issue 14846022: Use the constant pool for all constants, not just null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « no previous file | runtime/vm/flow_graph.cc » ('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_H_ 5 #ifndef VM_FLOW_GRAPH_H_
6 #define VM_FLOW_GRAPH_H_ 6 #define VM_FLOW_GRAPH_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 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 ConstantInstr* constant_null() const { 107 ConstantInstr* constant_null() const {
108 return constant_null_; 108 return constant_null_;
109 } 109 }
110 110
111 intptr_t alloc_ssa_temp_index() { return current_ssa_temp_index_++; } 111 intptr_t alloc_ssa_temp_index() { return current_ssa_temp_index_++; }
112 112
113 intptr_t InstructionCount() const; 113 intptr_t InstructionCount() const;
114 114
115 ConstantInstr* AddConstantToInitialDefinitions(const Object& object); 115 ConstantInstr* GetConstant(const Object& object);
116 void AddToInitialDefinitions(Definition* defn); 116 void AddToInitialDefinitions(Definition* defn);
117 117
118 void InsertBefore(Instruction* next, 118 void InsertBefore(Instruction* next,
119 Instruction* instr, 119 Instruction* instr,
120 Environment* env, 120 Environment* env,
121 Definition::UseKind use_kind); 121 Definition::UseKind use_kind);
122 void InsertAfter(Instruction* prev, 122 void InsertAfter(Instruction* prev,
123 Instruction* instr, 123 Instruction* instr,
124 Environment* env, 124 Environment* env,
125 Definition::UseKind use_kind); 125 Definition::UseKind use_kind);
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // Per block sets of available blocks. Block A is available at the block B if 303 // Per block sets of available blocks. Block A is available at the block B if
304 // and only if A dominates B and all paths from A to B are free of side 304 // and only if A dominates B and all paths from A to B are free of side
305 // effects. 305 // effects.
306 GrowableArray<BitVector*> available_at_; 306 GrowableArray<BitVector*> available_at_;
307 }; 307 };
308 308
309 309
310 } // namespace dart 310 } // namespace dart
311 311
312 #endif // VM_FLOW_GRAPH_H_ 312 #endif // VM_FLOW_GRAPH_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698