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 RUNTIME_VM_FLOW_GRAPH_BUILDER_H_ | 5 #ifndef RUNTIME_VM_FLOW_GRAPH_BUILDER_H_ |
6 #define RUNTIME_VM_FLOW_GRAPH_BUILDER_H_ | 6 #define RUNTIME_VM_FLOW_GRAPH_BUILDER_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 MethodRecognizer::Kind kind, | 309 MethodRecognizer::Kind kind, |
310 intptr_t offset, | 310 intptr_t offset, |
311 const Type& type, | 311 const Type& type, |
312 intptr_t class_id); | 312 intptr_t class_id); |
313 // Assumes setter parameter is named 'value'. Returns null constant. | 313 // Assumes setter parameter is named 'value'. Returns null constant. |
314 ConstantInstr* DoNativeSetterStoreValue(NativeBodyNode* node, | 314 ConstantInstr* DoNativeSetterStoreValue(NativeBodyNode* node, |
315 intptr_t offset, | 315 intptr_t offset, |
316 StoreBarrierType emit_store_barrier); | 316 StoreBarrierType emit_store_barrier); |
317 | 317 |
318 // Helpers for translating parts of the AST. | 318 // Helpers for translating parts of the AST. |
| 319 void BuildPushTypeArguments(const ArgumentListNode& node, |
| 320 ZoneGrowableArray<PushArgumentInstr*>* values); |
319 void BuildPushArguments(const ArgumentListNode& node, | 321 void BuildPushArguments(const ArgumentListNode& node, |
320 ZoneGrowableArray<PushArgumentInstr*>* values); | 322 ZoneGrowableArray<PushArgumentInstr*>* values); |
321 | 323 |
322 // Creates an instantiated type argument vector used in preparation of an | 324 // Creates an instantiated type argument vector used in preparation of an |
323 // allocation call. | 325 // allocation call. |
324 // May be called only if allocating an object of a parameterized class. | 326 // May be called only if allocating an object of a parameterized class. |
325 Value* BuildInstantiatedTypeArguments(TokenPosition token_pos, | 327 Value* BuildInstantiatedTypeArguments(TokenPosition token_pos, |
326 const TypeArguments& type_arguments); | 328 const TypeArguments& type_arguments); |
327 | 329 |
328 Value* BuildInstantiator(TokenPosition token_pos); | 330 Value* BuildInstantiator(TokenPosition token_pos); |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 // Output parameters. | 566 // Output parameters. |
565 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 567 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
566 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 568 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
567 | 569 |
568 TokenPosition condition_token_pos_; | 570 TokenPosition condition_token_pos_; |
569 }; | 571 }; |
570 | 572 |
571 } // namespace dart | 573 } // namespace dart |
572 | 574 |
573 #endif // RUNTIME_VM_FLOW_GRAPH_BUILDER_H_ | 575 #endif // RUNTIME_VM_FLOW_GRAPH_BUILDER_H_ |
OLD | NEW |