| 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 "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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 void AddReturnExit(intptr_t token_pos, Value* value); | 348 void AddReturnExit(intptr_t token_pos, Value* value); |
| 349 | 349 |
| 350 protected: | 350 protected: |
| 351 Definition* BuildStoreTemp(const LocalVariable& local, Value* value); | 351 Definition* BuildStoreTemp(const LocalVariable& local, Value* value); |
| 352 Definition* BuildStoreExprTemp(Value* value); | 352 Definition* BuildStoreExprTemp(Value* value); |
| 353 Definition* BuildLoadExprTemp(); | 353 Definition* BuildLoadExprTemp(); |
| 354 | 354 |
| 355 Definition* BuildStoreLocal(const LocalVariable& local, Value* value); | 355 Definition* BuildStoreLocal(const LocalVariable& local, Value* value); |
| 356 Definition* BuildLoadLocal(const LocalVariable& local); | 356 Definition* BuildLoadLocal(const LocalVariable& local); |
| 357 LoadLocalInstr* BuildLoadThisVar(LocalScope* scope); | 357 LoadLocalInstr* BuildLoadThisVar(LocalScope* scope); |
| 358 LoadFieldInstr* BuildNativeGetter( |
| 359 NativeBodyNode* node, |
| 360 MethodRecognizer::Kind kind, |
| 361 intptr_t offset, |
| 362 const Type& type, |
| 363 intptr_t class_id); |
| 358 | 364 |
| 359 // Helpers for translating parts of the AST. | 365 // Helpers for translating parts of the AST. |
| 360 void BuildPushArguments(const ArgumentListNode& node, | 366 void BuildPushArguments(const ArgumentListNode& node, |
| 361 ZoneGrowableArray<PushArgumentInstr*>* values); | 367 ZoneGrowableArray<PushArgumentInstr*>* values); |
| 362 | 368 |
| 363 // Creates an instantiated type argument vector used in preparation of an | 369 // Creates an instantiated type argument vector used in preparation of an |
| 364 // allocation call. | 370 // allocation call. |
| 365 // May be called only if allocating an object of a parameterized class. | 371 // May be called only if allocating an object of a parameterized class. |
| 366 Value* BuildInstantiatedTypeArguments( | 372 Value* BuildInstantiatedTypeArguments( |
| 367 intptr_t token_pos, | 373 intptr_t token_pos, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 // Output parameters. | 619 // Output parameters. |
| 614 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 620 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 615 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 621 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 616 | 622 |
| 617 intptr_t condition_token_pos_; | 623 intptr_t condition_token_pos_; |
| 618 }; | 624 }; |
| 619 | 625 |
| 620 } // namespace dart | 626 } // namespace dart |
| 621 | 627 |
| 622 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 628 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |