OLD | NEW |
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 RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ |
6 #define RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define RUNTIME_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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 // block is recorded in each entry instruction. Returns true when called the | 1169 // block is recorded in each entry instruction. Returns true when called the |
1170 // first time on this particular block within one graph traversal, and false | 1170 // first time on this particular block within one graph traversal, and false |
1171 // on all successive calls. | 1171 // on all successive calls. |
1172 bool DiscoverBlock( | 1172 bool DiscoverBlock( |
1173 BlockEntryInstr* predecessor, | 1173 BlockEntryInstr* predecessor, |
1174 GrowableArray<BlockEntryInstr*>* preorder, | 1174 GrowableArray<BlockEntryInstr*>* preorder, |
1175 GrowableArray<intptr_t>* parent); | 1175 GrowableArray<intptr_t>* parent); |
1176 | 1176 |
1177 // Perform a depth first search to prune code not reachable from an OSR | 1177 // Perform a depth first search to prune code not reachable from an OSR |
1178 // entry point. | 1178 // entry point. |
1179 bool PruneUnreachable(FlowGraphBuilder* builder, | 1179 bool PruneUnreachable(GraphEntryInstr* graph_entry, |
1180 GraphEntryInstr* graph_entry, | |
1181 Instruction* parent, | 1180 Instruction* parent, |
1182 intptr_t osr_id, | 1181 intptr_t osr_id, |
1183 BitVector* block_marks); | 1182 BitVector* block_marks); |
1184 | 1183 |
1185 virtual intptr_t InputCount() const { return 0; } | 1184 virtual intptr_t InputCount() const { return 0; } |
1186 virtual Value* InputAt(intptr_t i) const { | 1185 virtual Value* InputAt(intptr_t i) const { |
1187 UNREACHABLE(); | 1186 UNREACHABLE(); |
1188 return NULL; | 1187 return NULL; |
1189 } | 1188 } |
1190 | 1189 |
(...skipping 7192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8383 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8382 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
8384 UNIMPLEMENTED(); \ | 8383 UNIMPLEMENTED(); \ |
8385 return NULL; \ | 8384 return NULL; \ |
8386 } \ | 8385 } \ |
8387 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8386 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
8388 | 8387 |
8389 | 8388 |
8390 } // namespace dart | 8389 } // namespace dart |
8391 | 8390 |
8392 #endif // RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 8391 #endif // RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ |
OLD | NEW |