Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_BUILDER_H_ | 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
| 6 #define VM_FLOW_GRAPH_BUILDER_H_ | 6 #define VM_FLOW_GRAPH_BUILDER_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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 // The original value is expected to be named with start_index-1, and the | 110 // The original value is expected to be named with start_index-1, and the |
| 111 // result will be named with start_index. | 111 // result will be named with start_index. |
| 112 void BuildIncrOpIncrement(Token::Kind kind, | 112 void BuildIncrOpIncrement(Token::Kind kind, |
| 113 intptr_t node_id, | 113 intptr_t node_id, |
| 114 intptr_t token_index, | 114 intptr_t token_index, |
| 115 int start_index); | 115 int start_index); |
| 116 | 116 |
| 117 void BuildTypeArguments(ConstructorCallNode* node, | 117 void BuildTypeArguments(ConstructorCallNode* node, |
| 118 ZoneGrowableArray<Value*>* args); | 118 ZoneGrowableArray<Value*>* args); |
| 119 | 119 |
| 120 Value* GenerateInstantiatorTypeArguments(intptr_t token_index, | |
|
regis
2012/03/14 18:30:04
GenerateInstantiatorTypeArguments and BuildTypeArg
srdjan
2012/03/14 18:48:34
Added comments.
// Creates type arguments (one
| |
| 121 intptr_t type_arguments); | |
| 122 | |
| 120 void CloseFragment() { exit_ = NULL; } | 123 void CloseFragment() { exit_ = NULL; } |
| 121 intptr_t AllocateTempIndex() { return temp_index_++; } | 124 intptr_t AllocateTempIndex() { return temp_index_++; } |
| 122 | 125 |
| 123 private: | 126 private: |
| 124 // Specify a computation as the final result. Adds a Do instruction to | 127 // Specify a computation as the final result. Adds a Do instruction to |
| 125 // the graph, but normally overridden in subclasses. | 128 // the graph, but normally overridden in subclasses. |
| 126 virtual void ReturnComputation(Computation* computation) { | 129 virtual void ReturnComputation(Computation* computation) { |
| 127 AddInstruction(new DoInstr(computation)); | 130 AddInstruction(new DoInstr(computation)); |
| 128 } | 131 } |
| 129 | 132 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 } | 259 } |
| 257 | 260 |
| 258 // Output parameters. | 261 // Output parameters. |
| 259 BlockEntryInstr** true_successor_address_; | 262 BlockEntryInstr** true_successor_address_; |
| 260 BlockEntryInstr** false_successor_address_; | 263 BlockEntryInstr** false_successor_address_; |
| 261 }; | 264 }; |
| 262 | 265 |
| 263 } // namespace dart | 266 } // namespace dart |
| 264 | 267 |
| 265 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 268 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |