| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 } | 341 } |
| 342 | 342 |
| 343 // Returns a local variable index for a temporary local that is | 343 // Returns a local variable index for a temporary local that is |
| 344 // on top of the current expression stack. | 344 // on top of the current expression stack. |
| 345 intptr_t GetCurrentTempLocalIndex() const; | 345 intptr_t GetCurrentTempLocalIndex() const; |
| 346 | 346 |
| 347 Value* BuildObjectAllocation(ConstructorCallNode* node); | 347 Value* BuildObjectAllocation(ConstructorCallNode* node); |
| 348 void BuildConstructorCall(ConstructorCallNode* node, | 348 void BuildConstructorCall(ConstructorCallNode* node, |
| 349 PushArgumentInstr* alloc_value); | 349 PushArgumentInstr* alloc_value); |
| 350 | 350 |
| 351 void BuildSaveContext(const LocalVariable& variable); | 351 void BuildStoreContext(const LocalVariable& variable); |
| 352 void BuildRestoreContext(const LocalVariable& variable); | 352 void BuildLoadContext(const LocalVariable& variable); |
| 353 | 353 |
| 354 void BuildThrowNode(ThrowNode* node); | 354 void BuildThrowNode(ThrowNode* node); |
| 355 | 355 |
| 356 StaticCallInstr* BuildStaticNoSuchMethodCall( | 356 StaticCallInstr* BuildStaticNoSuchMethodCall( |
| 357 const Class& target_class, | 357 const Class& target_class, |
| 358 AstNode* receiver, | 358 AstNode* receiver, |
| 359 const String& method_name, | 359 const String& method_name, |
| 360 ArgumentListNode* method_arguments, | 360 ArgumentListNode* method_arguments, |
| 361 bool save_last_arg); | 361 bool save_last_arg); |
| 362 | 362 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 // Output parameters. | 517 // Output parameters. |
| 518 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 518 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 519 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 519 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 520 | 520 |
| 521 intptr_t condition_token_pos_; | 521 intptr_t condition_token_pos_; |
| 522 }; | 522 }; |
| 523 | 523 |
| 524 } // namespace dart | 524 } // namespace dart |
| 525 | 525 |
| 526 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 526 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |