Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/flow_graph_optimizer.h" | 5 #include "vm/flow_graph_optimizer.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/cha.h" | 8 #include "vm/cha.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 if (all_cids_known) { | 220 if (all_cids_known) { |
| 221 const Array& args_desc_array = Array::Handle(Z, | 221 const Array& args_desc_array = Array::Handle(Z, |
| 222 ArgumentsDescriptor::New(call->ArgumentCount(), | 222 ArgumentsDescriptor::New(call->ArgumentCount(), |
| 223 call->argument_names())); | 223 call->argument_names())); |
| 224 ArgumentsDescriptor args_desc(args_desc_array); | 224 ArgumentsDescriptor args_desc(args_desc_array); |
| 225 const Class& receiver_class = Class::Handle(Z, | 225 const Class& receiver_class = Class::Handle(Z, |
| 226 isolate()->class_table()->At(class_ids[0])); | 226 isolate()->class_table()->At(class_ids[0])); |
| 227 if (!receiver_class.is_finalized()) { | |
| 228 // Do not eagerly finalize classes. | |
|
regis
2015/09/25 20:55:24
I do not see how we were finalizing before.
srdjan
2015/09/25 21:15:59
Added to comment:
Callee's receiver class may not
| |
| 229 return false; | |
| 230 } | |
| 227 const Function& function = Function::Handle(Z, | 231 const Function& function = Function::Handle(Z, |
| 228 Resolver::ResolveDynamicForReceiverClass( | 232 Resolver::ResolveDynamicForReceiverClass( |
| 229 receiver_class, | 233 receiver_class, |
| 230 call->function_name(), | 234 call->function_name(), |
| 231 args_desc)); | 235 args_desc)); |
| 232 if (function.IsNull()) { | 236 if (function.IsNull()) { |
| 233 return false; | 237 return false; |
| 234 } | 238 } |
| 235 | 239 |
| 236 // Create new ICData, do not modify the one attached to the instruction | 240 // Create new ICData, do not modify the one attached to the instruction |
| (...skipping 8545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8782 | 8786 |
| 8783 // Insert materializations at environment uses. | 8787 // Insert materializations at environment uses. |
| 8784 for (intptr_t i = 0; i < exits_collector_.exits().length(); i++) { | 8788 for (intptr_t i = 0; i < exits_collector_.exits().length(); i++) { |
| 8785 CreateMaterializationAt( | 8789 CreateMaterializationAt( |
| 8786 exits_collector_.exits()[i], alloc, *slots); | 8790 exits_collector_.exits()[i], alloc, *slots); |
| 8787 } | 8791 } |
| 8788 } | 8792 } |
| 8789 | 8793 |
| 8790 | 8794 |
| 8791 } // namespace dart | 8795 } // namespace dart |
| OLD | NEW |