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

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

Issue 2994073003: [kernel] Set kernel_data in ConvertedClosureFunction (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | runtime/vm/object.cc » ('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 "vm/kernel_binary_flowgraph.h" 5 #include "vm/kernel_binary_flowgraph.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/longjump.h" 8 #include "vm/longjump.h"
9 #include "vm/object_store.h" 9 #include "vm/object_store.h"
10 10
(...skipping 3321 matching lines...) Expand 10 before | Expand all | Expand 10 after
3332 // become unreachable after OSR. 3332 // become unreachable after OSR.
3333 if (flow_graph_builder_->osr_id_ != Compiler::kNoOSRDeoptId) { 3333 if (flow_graph_builder_->osr_id_ != Compiler::kNoOSRDeoptId) {
3334 graph_entry->RelinkToOsrEntry(Z, flow_graph_builder_->next_block_id_); 3334 graph_entry->RelinkToOsrEntry(Z, flow_graph_builder_->next_block_id_);
3335 } 3335 }
3336 return new (Z) FlowGraph(*parsed_function(), graph_entry, 3336 return new (Z) FlowGraph(*parsed_function(), graph_entry,
3337 flow_graph_builder_->next_block_id_ - 1); 3337 flow_graph_builder_->next_block_id_ - 1);
3338 } 3338 }
3339 3339
3340 FlowGraph* StreamingFlowGraphBuilder::BuildGraph(intptr_t kernel_offset) { 3340 FlowGraph* StreamingFlowGraphBuilder::BuildGraph(intptr_t kernel_offset) {
3341 const Function& function = parsed_function()->function(); 3341 const Function& function = parsed_function()->function();
3342 TypedData& kernel_data = TypedData::Handle(Z, function.kernel_data());
3343 if (kernel_data.IsNull() && kernel_offset > 0) {
3344 UNREACHABLE();
3345 }
3346 3342
3347 // Setup a [ActiveClassScope] and a [ActiveMemberScope] which will be used 3343 // Setup a [ActiveClassScope] and a [ActiveMemberScope] which will be used
3348 // e.g. for type translation. 3344 // e.g. for type translation.
3349 const dart::Class& klass = 3345 const dart::Class& klass =
3350 dart::Class::Handle(zone_, parsed_function()->function().Owner()); 3346 dart::Class::Handle(zone_, parsed_function()->function().Owner());
3351 3347
3352 Function& outermost_function = Function::Handle(Z); 3348 Function& outermost_function = Function::Handle(Z);
3353 DiscoverEnclosingElements(Z, function, &outermost_function); 3349 DiscoverEnclosingElements(Z, function, &outermost_function);
3354 3350
3355 ActiveClassScope active_class_scope(active_class(), &klass); 3351 ActiveClassScope active_class_scope(active_class(), &klass);
(...skipping 3897 matching lines...) Expand 10 before | Expand all | Expand 10 after
7253 } 7249 }
7254 } 7250 }
7255 7251
7256 return Array::Handle(Array::null()); 7252 return Array::Handle(Array::null());
7257 } 7253 }
7258 7254
7259 } // namespace kernel 7255 } // namespace kernel
7260 } // namespace dart 7256 } // namespace dart
7261 7257
7262 #endif // !defined(DART_PRECOMPILED_RUNTIME) 7258 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698