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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 NativeFunction native_c_function() const { | 835 NativeFunction native_c_function() const { |
836 return ast_node_.native_c_function(); | 836 return ast_node_.native_c_function(); |
837 } | 837 } |
838 | 838 |
839 intptr_t argument_count() const { return ast_node_.argument_count(); } | 839 intptr_t argument_count() const { return ast_node_.argument_count(); } |
840 | 840 |
841 bool has_optional_parameters() const { | 841 bool has_optional_parameters() const { |
842 return ast_node_.has_optional_parameters(); | 842 return ast_node_.has_optional_parameters(); |
843 } | 843 } |
844 | 844 |
| 845 bool is_native_instance_closure() const { |
| 846 return ast_node_.is_native_instance_closure(); |
| 847 } |
| 848 |
845 virtual void PrintOperandsTo(BufferFormatter* f) const; | 849 virtual void PrintOperandsTo(BufferFormatter* f) const; |
846 | 850 |
847 private: | 851 private: |
848 const NativeBodyNode& ast_node_; | 852 const NativeBodyNode& ast_node_; |
849 const intptr_t try_index_; | 853 const intptr_t try_index_; |
850 | 854 |
851 DISALLOW_COPY_AND_ASSIGN(NativeCallComp); | 855 DISALLOW_COPY_AND_ASSIGN(NativeCallComp); |
852 }; | 856 }; |
853 | 857 |
854 | 858 |
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2420 const GrowableArray<BlockEntryInstr*>& block_order_; | 2424 const GrowableArray<BlockEntryInstr*>& block_order_; |
2421 | 2425 |
2422 private: | 2426 private: |
2423 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 2427 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
2424 }; | 2428 }; |
2425 | 2429 |
2426 | 2430 |
2427 } // namespace dart | 2431 } // namespace dart |
2428 | 2432 |
2429 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 2433 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
OLD | NEW |