| 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 void CloseFragment() { exit_ = NULL; } | 389 void CloseFragment() { exit_ = NULL; } |
| 390 | 390 |
| 391 // Returns a local variable index for a temporary local that is | 391 // Returns a local variable index for a temporary local that is |
| 392 // on top of the current expression stack. | 392 // on top of the current expression stack. |
| 393 intptr_t GetCurrentTempLocalIndex() const; | 393 intptr_t GetCurrentTempLocalIndex() const; |
| 394 | 394 |
| 395 Value* BuildObjectAllocation(ConstructorCallNode* node); | 395 Value* BuildObjectAllocation(ConstructorCallNode* node); |
| 396 void BuildConstructorCall(ConstructorCallNode* node, | 396 void BuildConstructorCall(ConstructorCallNode* node, |
| 397 PushArgumentInstr* alloc_value); | 397 PushArgumentInstr* alloc_value); |
| 398 | 398 |
| 399 void BuildSaveContext(const LocalVariable& variable); | 399 void BuildSaveContext(const LocalVariable& variable, |
| 400 void BuildRestoreContext(const LocalVariable& variable); | 400 intptr_t token_pos); |
| 401 void BuildRestoreContext(const LocalVariable& variable, |
| 402 intptr_t token_pos); |
| 401 | 403 |
| 402 Definition* BuildStoreContext(Value* value); | 404 Definition* BuildStoreContext(Value* value, intptr_t token_pos); |
| 403 Definition* BuildCurrentContext(); | 405 Definition* BuildCurrentContext(intptr_t token_pos); |
| 404 | 406 |
| 405 void BuildThrowNode(ThrowNode* node); | 407 void BuildThrowNode(ThrowNode* node); |
| 406 | 408 |
| 407 StaticCallInstr* BuildStaticNoSuchMethodCall( | 409 StaticCallInstr* BuildStaticNoSuchMethodCall( |
| 408 const Class& target_class, | 410 const Class& target_class, |
| 409 AstNode* receiver, | 411 AstNode* receiver, |
| 410 const String& method_name, | 412 const String& method_name, |
| 411 ArgumentListNode* method_arguments, | 413 ArgumentListNode* method_arguments, |
| 412 bool save_last_arg, | 414 bool save_last_arg, |
| 413 bool is_super_invocation); | 415 bool is_super_invocation); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // Output parameters. | 581 // Output parameters. |
| 580 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 582 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 581 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 583 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 582 | 584 |
| 583 intptr_t condition_token_pos_; | 585 intptr_t condition_token_pos_; |
| 584 }; | 586 }; |
| 585 | 587 |
| 586 } // namespace dart | 588 } // namespace dart |
| 587 | 589 |
| 588 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 590 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |