Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: runtime/vm/kernel_to_il.cc

Issue 2891053003: Add support for converted closures with explicit contexts to VM (Closed)
Patch Set: Temporarily disable Run step in closures test suite Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/kernel_to_il.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « runtime/vm/kernel_to_il.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698