OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 #include <set> | 5 #include <set> |
6 | 6 |
7 #include "vm/kernel_to_il.h" | 7 #include "vm/kernel_to_il.h" |
8 | 8 |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 instructions += LoadFunctionTypeArguments(); | 837 instructions += LoadFunctionTypeArguments(); |
838 } else { | 838 } else { |
839 instructions += NullConstant(); | 839 instructions += NullConstant(); |
840 } | 840 } |
841 instructions += InstantiateTypeArguments(type_arguments); | 841 instructions += InstantiateTypeArguments(type_arguments); |
842 } | 842 } |
843 } | 843 } |
844 return instructions; | 844 return instructions; |
845 } | 845 } |
846 | 846 |
847 Fragment FlowGraphBuilder::AllocateContext(int size) { | 847 Fragment FlowGraphBuilder::AllocateContext(intptr_t size) { |
848 AllocateContextInstr* allocate = | 848 AllocateContextInstr* allocate = |
849 new (Z) AllocateContextInstr(TokenPosition::kNoSource, size); | 849 new (Z) AllocateContextInstr(TokenPosition::kNoSource, size); |
850 Push(allocate); | 850 Push(allocate); |
851 return Fragment(allocate); | 851 return Fragment(allocate); |
852 } | 852 } |
853 | 853 |
854 Fragment FlowGraphBuilder::AllocateObject(TokenPosition position, | 854 Fragment FlowGraphBuilder::AllocateObject(TokenPosition position, |
855 const dart::Class& klass, | 855 const dart::Class& klass, |
856 intptr_t argument_count) { | 856 intptr_t argument_count) { |
857 ArgumentArray arguments = GetArguments(argument_count); | 857 ArgumentArray arguments = GetArguments(argument_count); |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 StreamingFlowGraphBuilder streaming_flow_graph_builder( | 2355 StreamingFlowGraphBuilder streaming_flow_graph_builder( |
2356 &helper, zone_, script.kernel_data(), script.kernel_data_size()); | 2356 &helper, zone_, script.kernel_data(), script.kernel_data_size()); |
2357 return streaming_flow_graph_builder.GetLineStartsFor( | 2357 return streaming_flow_graph_builder.GetLineStartsFor( |
2358 script.kernel_script_index()); | 2358 script.kernel_script_index()); |
2359 } | 2359 } |
2360 | 2360 |
2361 } // namespace kernel | 2361 } // namespace kernel |
2362 } // namespace dart | 2362 } // namespace dart |
2363 | 2363 |
2364 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 2364 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
OLD | NEW |