| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 | 411 |
| 412 StaticCallInstr* BuildThrowNoSuchMethodError( | 412 StaticCallInstr* BuildThrowNoSuchMethodError( |
| 413 intptr_t token_pos, | 413 intptr_t token_pos, |
| 414 const Class& function_class, | 414 const Class& function_class, |
| 415 const String& function_name, | 415 const String& function_name, |
| 416 ArgumentListNode* function_arguments, | 416 ArgumentListNode* function_arguments, |
| 417 int invocation_type); | 417 int invocation_type); |
| 418 | 418 |
| 419 void BuildStaticSetter(StaticSetterNode* node, bool result_is_needed); | 419 void BuildStaticSetter(StaticSetterNode* node, bool result_is_needed); |
| 420 Definition* BuildStoreStaticField(StoreStaticFieldNode* node, | 420 Definition* BuildStoreStaticField(StoreStaticFieldNode* node, |
| 421 bool result_is_needed); | 421 bool result_is_needed, |
| 422 intptr_t token_pos); |
| 422 | 423 |
| 423 void BuildClosureCall(ClosureCallNode* node, bool result_needed); | 424 void BuildClosureCall(ClosureCallNode* node, bool result_needed); |
| 424 | 425 |
| 425 Value* BuildNullValue(); | 426 Value* BuildNullValue(); |
| 426 | 427 |
| 427 // Returns true if the run-time type check can be eliminated. | 428 // Returns true if the run-time type check can be eliminated. |
| 428 bool CanSkipTypeCheck(intptr_t token_pos, | 429 bool CanSkipTypeCheck(intptr_t token_pos, |
| 429 Value* value, | 430 Value* value, |
| 430 const AbstractType& dst_type, | 431 const AbstractType& dst_type, |
| 431 const String& dst_name); | 432 const String& dst_name); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 // Output parameters. | 576 // Output parameters. |
| 576 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 577 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 577 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 578 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 578 | 579 |
| 579 intptr_t condition_token_pos_; | 580 intptr_t condition_token_pos_; |
| 580 }; | 581 }; |
| 581 | 582 |
| 582 } // namespace dart | 583 } // namespace dart |
| 583 | 584 |
| 584 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 585 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |